Re: A SQL Question

From: Ana C. Dent <anacedent_at_hotmail.com>
Date: Wed, 14 Jan 2004 18:03:43 -0800
Message-ID: <4ymNb.1651$AA6.259_at_fed1read03>


Telus wrote:
> A SQL question
>
> Hi Everybody,
> Imagine I have a file with 7 records
> and two fields with these data:
>
> Record1--Field1=1--Field2=10:45pm
> Record2--Field1=1--Field2=10:46pm
> Record3--Field1=2--Field2=10:47pm
> Record4--Field1=2--Field2=10:48pm
> Record5--Field1=2--Field2=10:49pm
> Record6--Field1=1--Field2=10:50pm
> Record7--Field1=1--Field2=10:51pm
>
> How can I write a SQL to give me
> Records 2,5 and 7, fields 1 and 2?

For what school, course & instructor was this homework assigned? Based upon what criteria/logic are records 2,5,7 the "correct" answer?

Does the answer change (if so to what?) & why for the following records:

Record1--Field1=1--Field2=10:51pm
Record2--Field1=1--Field2=10:50pm
Record3--Field1=1--Field2=10:46pm
Record4--Field1=1--Field2=10:45pm
Record5--Field1=2--Field2=10:49pm
Record6--Field1=2--Field2=10:47pm
Record7--Field1=2--Field2=10:48pm
Received on Thu Jan 15 2004 - 03:03:43 CET

Original text of this message