討論串[SQL ] 關於select資料
共 3 篇文章
首頁
上一頁
1
下一頁
尾頁

推噓1(1推 0噓 0→)留言1則,0人參與, 最新作者decadance (世界盡頭小酒館)時間17年前 (2008/11/22 03:16), 編輯資訊
0
0
0
內容預覽:
測試環境:SQL Server 2008. select avg(p_speed) as avg_speed,avg(p_time) as avg_time from. (. select (speed1+speed2)/2 as p_speed,(t2-t1) as p_time from. (.
(還有295個字)

推噓1(1推 0噓 0→)留言1則,0人參與, 最新作者grence (多想兩分鐘 = =")時間17年前 (2008/11/21 11:59), 編輯資訊
0
0
0
內容預覽:
結果的表看不懂怎麼算. 看到「先相減」…猜測是這樣. declare @t table(name int, place int, speed float,[time] float). insert @t values (1,0,32,12). insert @t values (2,0,25,14)
(還有843個字)

推噓1(1推 0噓 1→)留言2則,0人參與, 最新作者mijinu (不要查我)時間17年前 (2008/11/21 04:45), 編輯資訊
0
0
0
內容預覽:
作業系統MS-SQL 2005 版本9.00.1399. 我有一個資料表長這樣. name place speed time. 1 0 32 12. 2 0 25 14. 3 0 21 15. 4 0 22 17. 5 0 23 18. 1 1 44 50. 2 1 56 68. 3 1 45 85
(還有221個字)
首頁
上一頁
1
下一頁
尾頁