From: Josh Berkus <josh@agliodbs.com>
To: dejauser2001@yahoo.co.uk
To: pgsql-sql@postgresql.org
Subject: Re: Need help with a college SQL exam question...
Date: Mon, 03 Dec 2001 11:13:15 -0800
Message-ID: <web-519065@davinci.ethosmedia.com> (raw)
In-Reply-To: <383ef96c.0111290754.4ab26b07@posting.google.com>
"dejauser":
> Its coming close to my January examinations, and
> while revising I got stuck in the follwing question.
> I literally spent hours trying to solve it but I
> just can't :(
hmmm ... I don't think it's according to the honor code to ask us to
help with your exams. ;-)
> And the question is;
> Using SQL (using SELECT, FROM, WHERE, GROUP BY, COUNT(*), etc..)
> write a query
> to list the names of customers who have borrowed cars made by every
> maker.
It's doable. Just think "nested subselects" and heavy use of the HAVING
clause. They're also screwing with you by providing an irrelevant table
(shop) and not providing a relevant table (makers). If I was the
professor, I'd give the question writer a D+ for database design ...
-Josh
______AGLIO DATABASE SOLUTIONS___________________________
Josh Berkus
Complete information technology josh@agliodbs.com
and data management solutions (415) 565-7293
for law firms, small businesses fax 621-2533
and non-profit organizations. San Francisco
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: josh@agliodbs.com, dejauser2001@yahoo.co.uk
Subject: Re: Need help with a college SQL exam question...
In-Reply-To: <web-519065@davinci.ethosmedia.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox