討論串[SQL ] 請問有沒有SQL語法可表達這種查詢結果
共 3 篇文章
首頁
上一頁
1
下一頁
尾頁

推噓1(1推 0噓 0→)留言1則,0人參與, 最新作者diamondking (迷惘)時間17年前 (2008/05/21 20:13), 編輯資訊
0
0
0
內容預覽:
直接幫你改語法吧(沒看你的邏輯):. select A.kind_name,B.tqty,B.amt. from. (select table1.code,table2.kind_name. from table1,table2 where. table1.kind_no=table2.kind_n
(還有75個字)

推噓0(0推 0噓 0→)留言0則,0人參與, 最新作者erho (ptt訪客)時間17年前 (2008/05/21 16:27), 編輯資訊
0
0
0
內容預覽:
可是我參考我以前的發文我還是寫不出來. 我的想法是. 先寫成2個語法. 分類. select table1.code,table2.kind_name. from table1,table2 where. table1.kind_no=table2.kind_no;. 統計. select tabl
(還有396個字)

推噓1(1推 0噓 0→)留言1則,0人參與, 最新作者erho (ptt訪客)時間17年前 (2008/05/20 17:32), 編輯資訊
0
0
0
內容預覽:
資料庫是oracle. 有3個table. table1. ------. code(pk) 產品代碼. name 產品名稱. kind_no 該產品分類代碼. table2. ------. kind_no(pk) 分類代碼. kind_name 分類名稱. table3. ------. seq
(還有22個字)
首頁
上一頁
1
下一頁
尾頁