It's UWAweek 47

help1402

This forum is provided to promote discussion amongst students enrolled in CITS1402 Relational Database Management Systems.

Please consider offering answers and suggestions to help other students! And if you fix a problem by following a suggestion here, it would be great if other interested students could see a short "Great, fixed it!"  followup message.

How do I ask a good question?
Displaying selected article
Showing 1 of 684 articles.
Currently 135 other people reading this forum.


 UWA week 35 (2nd semester, week 6) ↓
SVG not supported

Login to reply

👍?
helpful
3:33pm Wed 28th Aug, ANONYMOUS

Hello, While I was preparing for the mid-term exam, in one of the slides I found the statement: If SELECT list includes an aggregate function and there is no GROUP BY clause, SELECT list cannot reference a column out with an aggregate function. For example, the following is illegal: SELECT staffNo, COUNT(salary) FROM Staff; However, in the subsequent slides, I see these statements as examples of using the aggregate functions (couple of examples below): SELECT COUNT(*) AS myCount FROM PropertyForRent WHERE rent > 350; SELECT COUNT(staffNo) AS myCount, SUM(salary) AS mySum FROM Staff WHERE position = ‘Manager’; What I mean to say is that according to the first statement, aren't these examples illegal as well? They don't have the HAVING clause, but WHERE clauses instead. Thanks in advance!

The University of Western Australia

Computer Science and Software Engineering

CRICOS Code: 00126G
Written by [email protected]
Powered by history
Feedback always welcome - it makes our software better!
Last modified  8:08AM Aug 25 2024
Privacy policy