dbTalk Databases Forums  

Advanced(?) query question

comp.databases.theory comp.databases.theory


Discuss Advanced(?) query question in the comp.databases.theory forum.



Reply
 
Thread Tools Display Modes
  #11  
Old   
Anders Steinlein
 
Posts: n/a

Default Re: Advanced(?) query question - 09-19-2003 , 01:20 PM






In article <ZWuab.6834$nU6.1269431 (AT) twister (DOT) nyc.rr.com>, jag (AT) acm (DOT) org
says...
Quote:
SELECT CNT.country_id
FROM Countries AS CNT
INNER JOIN
Cities AS CIT
ON CNT.country_id = CIT.country_id
WHERE CNT.password IS NULL
GROUP BY CNT.country_id
HAVING COUNT(*) <= 10
Thanks, it worked out great. Maybe about time to brush up on the GROUP BY
/ HAVING clauses. =)

\Anders


Reply With Quote
  #12  
Old   
Bob Badour
 
Posts: n/a

Default Re: Advanced(?) query question - 09-19-2003 , 01:39 PM






"Anders Steinlein" <dinhelt (AT) online (DOT) noSPAM> wrote

Quote:
In article <W_wab.235$9e2.21597243 (AT) mantis (DOT) golden.net>, bbadour (AT) golden (DOT) net
says...

SELECT CNT.country_id
FROM Countries AS CNT
INNER JOIN
Cities AS CIT
ON CNT.country_id = CIT.country_id
WHERE CNT.password IS NULL
GROUP BY CNT.country_id
HAVING COUNT(*) <= 10

John,

Do you complete your kids' homework for them too?

Oh, ok, so you just assume this was a homework assignment? Why? Cause no,
it is not a homework assignment, but part of a project for my own
company. Sure, I may not be an expert in SQL, but that shouldn't
automatically translate to it being a homework assignment, should it?
With all due respect, Anders, it matters little to me whether it is homework
for a school assignment or homework necessary for you to understand how to
perform your job.

I know those who provided cookbook recipes for you to follow did you no
favours.




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.