看板
[ Database ]
討論串[SQL ] 關於一個子查詢
共 2 篇文章
首頁
上一頁
1
下一頁
尾頁
內容預覽:
基本上,越內層的括號會越先處理,而你的子查詢與後來的select MAX()是在同一階,. 所以會說是無效物件。. 解決方式有兩個:. A)先將第一個子查詢的資料以 select ... into #A from ... 句型匯到 #A 暫存表,. 然後再從暫存表 #A 挑出資料. B)應用 Com
(還有363個字)
內容預覽:
大家好. 我是使用sql server 2008. 想請問一個sql如下. select "team name". from (select player.[Team Name] ,SUM (cast(H as int)) as total from Score. inner join Player
(還有612個字)
首頁
上一頁
1
下一頁
尾頁