dbTalk Databases Forums  

[Info-Ingres] mixing 'group by' and 'order by' clauses

comp.databases.ingres comp.databases.ingres


Discuss [Info-Ingres] mixing 'group by' and 'order by' clauses in the comp.databases.ingres forum.



Reply
 
Thread Tools Display Modes
  #11  
Old   
Ingres Forums
 
Posts: n/a

Default Re: [Info-Ingres] mixing 'group by' and 'order by' clauses - 07-29-2009 , 02:00 AM






it's a way of proving that the sql can't be correct.

if you have a very simple data basis and a (short) sequence of sql
keywords, it should be easy to give an expected result if the sequence
of sql keywords forms a valid select statement. If you can't determine
an expected result, the sequence of keywords is very unlikely to be a
valid statement.

If someone turns up with an expected result, although the sequence of
keywords isn't a valid statement, you get a clue about how that person
misinterprets the keywords. It will be easier then to explain where he
or she is thinking wrongly.

Asking for the expected result is something I regularly use in SQL
classes and it proves to be a strong method. A student is forced to
think about the meaning of the "statement" and (after a "why?") forced
to explain his/her interpretation of SQL keywords.

Ronald


--
rjeninga

Reply With Quote
  #12  
Old   
On net
 
Posts: n/a

Default Re: [Info-Ingres] mixing 'group by' and 'order by' clauses - 07-29-2009 , 03:30 AM






Ingres Forums wrote:
Quote:
it's a way of proving that the sql can't be correct.

if you have a very simple data basis and a (short) sequence of sql
keywords, it should be easy to give an expected result if the sequence
of sql keywords forms a valid select statement. If you can't determine
an expected result, the sequence of keywords is very unlikely to be a
valid statement.

If someone turns up with an expected result, although the sequence of
keywords isn't a valid statement, you get a clue about how that person
misinterprets the keywords. It will be easier then to explain where he
or she is thinking wrongly.

Asking for the expected result is something I regularly use in SQL
classes and it proves to be a strong method. A student is forced to
think about the meaning of the "statement" and (after a "why?") forced
to explain his/her interpretation of SQL keywords.

Ronald
I can see how that might work for a classroom situation - I'm not sure
your intention came across well in a newsgroup though (well it didn't
for me).

Reply With Quote
  #13  
Old   
Hopgood, Ian
 
Posts: n/a

Default [Info-Ingres] (no subject) - 07-29-2009 , 05:19 AM



http://www.theregister.co.uk/2009/07...datawarehouse/

__________________________________________________ ______
This e-mail is confidential and intended solely for the use of the individual(s) to whom it is addressed. If you are not the intended recipient, be advised that you have received this e-mail in error and that any use, dissemination, forwarding, printing, copying of, or any action taken in reliance upon it, is strictly prohibited and may be illegal.
Catlin Underwriting Agencies Limited, Catlin Insurance Company (UK) Ltd. and Catlin (Wellington) Underwriting Agencies Limited are authorised and regulated by the Financial Services Authority.
The registered office of Catlin Underwriting Agencies Limited (incorporated and registered in England and Wales with company number 1815126) and Catlin Insurance Company (UK) Ltd. (incorporated and registered in England and Wales with company number 5328622 ) is 6th Floor, 3 Minster Court, Mincing Lane, London EC3R 7DD.

Catlin Risk Solutions Limited is an Appointed Representative of Catlin Underwriting Agencies Limited.
__________________________________________________ ______

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.