/[cvs.andrew.net.au]/uni/COMP2400/q6.sql
ViewVC logotype

Contents of /uni/COMP2400/q6.sql

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations)
Wed Aug 11 01:30:29 2004 UTC (18 years, 4 months ago) by apollock
Branch: MAIN
Changes since 1.2: +2 -0 lines
Working properly

1 -- I have read the ANU Code on "Academic Honesty in Learning and Teaching",
2 -- and I declare that, except where appropriately attributed, the content
3 -- of the file I have submitted for this assignment is entirely my own
4 -- work. It has not been produced, in whole or in part, by another person.
5 -- (signed) Andrew Pollock 4137129
6
7 -- Find the couple(s) with the most children
8
9 TTITLE "COMP2400: Assignment 1: Question 6"
10
11 SELECT motherid, fatherid
12 FROM parents
13 GROUP BY motherid, fatherid
14 HAVING COUNT(personid) = (SELECT MAX(COUNT(personid))
15 FROM parents
16 GROUP BY motherid, fatherid);
17
18 EXIT;

  ViewVC Help
Powered by ViewVC 1.1.22