討論串[SQL ] NVL 相關疑難一問
共 2 篇文章
首頁
上一頁
1
下一頁
尾頁

推噓1(1推 0噓 1→)留言2則,0人參與, 最新作者hukhuk (ken)時間14年前 (2012/03/03 20:12), 編輯資訊
0
0
0
內容預覽:
SELECT if(car is null ,0,count(*)) as item_count ,carname as car. from tb left outer join ta on tb.carname = ta.car. group by carname;. --. 發信站: 批踢踢

推噓0(0推 0噓 2→)留言2則,0人參與, 最新作者Sampras (Pete)時間14年前 (2012/03/03 16:50), 編輯資訊
0
0
0
內容預覽:
table a:. item car. ------------. itm1 crA. itm2 crC. itm3 crA. itm4 crD. ------------. table b:. carname brand. --------------. crA BMW. crB Benz. cr
(還有392個字)
首頁
上一頁
1
下一頁
尾頁