0
category table
-----------------------
catid | catname
-------------------------
Deal table
------------------------
dealid | name | catid |
-----------------------
Cement Table
-----------------------
cid | cname | catid
-----------------------
ordertable
---------------------
oid | oname | catid
---------------------
上面的三個表使用我想要得到CATI的總數和使用順序通過desc clause.how寫入SQL查詢?如何獲得三個表中的類別數?
the result like this way
catid catcount catname
-----------------------
1 20 xxx
2 19 YYY
請出示你要拿出結果的樣品。 – 2012-08-11 11:05:21