[Database class] Correction database hw3 part 2
Paul S. Wang
pwang at cs.kent.edu
Tue Feb 8 23:55:38 EST 2011
Kevin and database class,
Right. There is a typo in the homework, even thought it really
does not affect the query.
The question should read "before Fall 2009" instead of "before Spring 2009".
I am sending this msg to the whole class and I am correcting the
homework online as well.
Paul
On Tue, Feb 08, 2011 at 11:23:46PM -0500, Kevin Donovan wrote:
> In-Reply-To: <20110208155007.GA16313 at cs.kent.edu>
> Date: Tue, 8 Feb 2011 23:23:46 -0500
> Subject: Re: [Database class] LIMIT row count info
> From: Kevin Donovan <kdonova1 at kent.edu>
> To: pwang at cs.kent.edu
> X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.3 (mscan1.vs.cs.kent.edu [131.123.39.204]); Tue, 08 Feb 2011 23:23:54 -0500 (EST)
> X-Virus-Scanned: Maia Mailguard 1.0.2a
>
> I have a question in regards to the homework. Specifically this question
>
> Find the IDS and names of all students who have not taken any course
> offering before Spring 2009.
>
> If I understand the question correctly you are asking for any student who
> has not taken a class before spring 2009. which in the case of the sample
> database would be all the students.
>
> On Tue, Feb 8, 2011 at 10:50 AM, Paul S. Wang <pwang at cs.kent.edu> wrote:
>
> > Dear database class,
> >
> > There was a question about row counts starting from 1 or 0.
> > For MySQL it starts from 1. And I believe that is in general
> > true for SQL.
> >
> > Thus,
> >
> > SELECT * FROM course LIMIT 1 , 1
> >
> > gives the 1st row.
> >
> > Paul
> > _______________________________________________
> > Dbclass mailing list
> > Dbclass at listmail.cs.kent.edu
> > https://listmail.cs.kent.edu/mailman/listinfo/dbclass
> >
--
==============================================================================
Paul S. Wang Email: pwang at cs.kent.edu
Director of Research, ICM/Kent Tel: (330) 672-9051
Dept. of Computer Science, Kent State U. FAX: (330) 672-2725
Kent, Ohio, USA 44242-0001 http://www.cs.kent.edu/~pwang/
Institute for Computational Email: icm at mcs.kent.edu
Mathematics (ICM) http://icm.mcs.kent.edu/
==============================================================================
More information about the Dbclass
mailing list