intro to sql
DESCRIPTION
This is an Ebook on an introduction to SQLTRANSCRIPT
SQLHttp://iwt.bz
Structured
Query
Language
ID Publication Issue Date
1 XML 2011
2 RelationalAlgebra
2011
Table: ebooks
SELECTStatements
SELECT PublicationFROM ebooks
SELECT ID, Publications, Issue DateFROM ebooks
SELECT *FROM ebooks
The asterisk will select all columns.
WHEREStatements
Operator Values= Equal
<> Not Equal
> Greater Than
< Less Than
>= Or Equal
<= Less than or equal
BETWEEN Between an Inclusive Value
LIKE Searches for patterns
IN Knowing the exact value you want to get from a
column.
SELECT PublicationFROM ebooksWHERE Issue Date='2011'
Operator Value
AND&OROperators
The AND operator displays a record if both the frst condition and the second condition is true.
The OR operator displays a record if either the frst condition or the second condition is true.
SELECT publicationsFROM ebooksWHERE publications='XML'AND date='2011'
The ORDER BY keyword is used to sort the result set.
SELECT *FROM ebooksORDER BY dates ASC
Http://IWT.bz