StupidBeauty
Read times:534Posted at:Fri Jan 6 04:39:50 2012
- no title specified

转载:SQL表格連接 (Join)

使用表格连接来同时查询两个及以上数量的表。

http://www.1keydata.com/tw/sql/sqljoins.html

亮点:

SELECT A1.region_name REGION, SUM(A2.Sales) SALES
FROM Geography A1, Store_Information A2
WHERE A1.store_name = A2.store_name
GROUP BY A1.region_name

結果 :

REGION

SALES

East

$700

West

$2050

Your opinions
Your name:Email:Website url:Opinion content:
- no title specified

HxLauncher: Launch Android applications by voice commands