SQL Http://iwt.bz
Structured Query Language
Table: ebooks
ID Publication
Issue Date
1
XML
2011
2
Relational
2011
Algebra
SELECT Statements
SELECT Publication FROM ebooks SELECT ID, Publications, Issue Date FROM ebooks SELECT * FROM ebooks The asterisk will select all columns.
WHERE
Statements
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 Publication FROM ebooks WHERE Issue Date='2011'
Operator Value
AND &
OR
Operators
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 publications FROM ebooks WHERE publications='XML' AND date='2011'
The ORDER BY keyword is used to sort the result set.
SELECT * FROM ebooks ORDER BY dates ASC
Http://IWT.bz