20.07.2013 Views

Beginning SQL

Beginning SQL

Beginning SQL

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

MemberDetails table, the columns FirstName, LastName, Street, City, State, and ZipCode contain all the<br />

information you need. So the SELECT statement begins with the following:<br />

SELECT FirstName, LastName, Street, City, State, ZipCode<br />

FROM MemberDetails<br />

As it stands, that statement returns all the records, but now add a WHERE clause to select only those<br />

records where the joining date falls between January 1, 2005, and January 31, 2005. You need to check the<br />

DateOfJoining column to see if the value is greater than January 1 but less than or equal to January 31:<br />

WHERE DateOfJoining >= ‘2005-01-01’ And DateOfJoining

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!