查看完整版本: [-- 【求助】请教请教 --]

【 浮游城 - Castle in the Sky | 开放邀请注册,PS|SS|WII|DC下载研究中心 】 -> 【 电脑全方位 | Computer All Round 】 -> 【求助】请教请教 [打印本页] 登录 -> 注册 -> 回复主题 -> 发表主题

蛮蛮 2007-05-23 11:45

这里有份题目````

请懂语言的高手帮忙```

这贴发在这里应该合适吧```

Taburiss 2007-05-24 11:18
其他的麻烦,写写SQL~
不一定对哦~~自己验证吧~

4-1
DELETE FROM book
WHERE date BETWEEN '1998-01-01' AND '1998-12-31'

4-2
SELECT SUM(amount)
FROM book
WHERE date BETWEEN '1998-01-01' AND '1998-12-31'

4-3
SELECT COUNT(1)
FROM book
WHERE date BETWEEN '1998-01-01' AND '1998-12-31'


5-1
SELECT A.Name, B.grade
FROM Table1 A LEFT JOIN Table2 B ON (A.Id = B.Id)
WHERE A.age = '22'
AND B.Course = '语文'

5-2
SELECT Course, AVG(grade)
FROM Table2
GROUP BY Course


查看完整版本: [-- 【求助】请教请教 --] [-- top --]


Powered by PHPWind Code © 2003-08 PHPWind
Gzip enabled

You can contact us