开发者

mysql syntax query

开发者 https://www.devze.com 2023-04-03 01:50 出处:网络
This code won\'t compile开发者_高级运维, or whatever it is that the magical sql server does. Could someone point out the error please. And ya, this is hw but the assignment is sql-version agnostic so

This code won't compile开发者_高级运维, or whatever it is that the magical sql server does. Could someone point out the error please. And ya, this is hw but the assignment is sql-version agnostic so it really doesn't matter. Thanks.

SELECT courseNo, section,
SELECT (
  count( * )
  FROM registration, students
 WHERE registration.idno = students.idno
)
FROM registration, students;


SELECT courseNo, section, count(*) as [count]
FROM registration, students 
WHERE registration.idno = students.idno 
group by courseNo,section
0

精彩评论

暂无评论...
验证码 换一张
取 消