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 83 other people reading this forum.


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

Login to reply

👍?
helpful
9:56pm Tue 27th Aug, Jichunyang L.

Hi,

The GROUP BY statement in SQL is used to arrange identical data into groups. This statement is often used with aggregate functions (like COUNT, SUM, MAX, MIN, AVG) to group the result-set by one or more columns. Here’s what happens when you use GROUP BY:

Grouping Data: GROUP BY enables you to combine rows that have the same values in specified columns into summary rows, like gathering all the entries from different employees who work in the same department.

Multiple Columns: You can group by more than one column. For instance, if you group by both department and job title, the resulting summary rows represent unique combinations of department and job title.

GROUP BY gathers rows into groups and aggregates their other column values. HAVING then allows you to apply conditions to these groups.

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