N207 Data Analysis using Spreadsheets

advertisement
N100 Introduction to Computers and Computing
In class Lab: Databases
1. Go to the following web page, http://www.w3schools.com/sql/default.asp
2. Read the following from the SQL Basic:






SQL Intro
An introduction to SQL.
SQL SELECT
The SELECT statement is used to select data from a data.
SQL DISTINCT
The DISTINCT keyword can be used to return only distinct (different) values
SQL WHERE
The WHERE clause is used to extract only those records that fulfill a specified
criterion.
SQL AND & OR
The AND & OR operators are used to filter records based on more than one
condition
SQL ORDER BY
The ORDER BY keyword is used to sort the result.
3. From the SQL Advanced, read the following:






SQL LIKE
The LIKE operator is used in a WHERE clause to search for a specified pattern in
a column
SQL IN
The IN operator allows you to specify multiple values in a WHERE clause.
SQL BETWEEN
The BETWEEN operator is used in a WHERE clause to select a range of data
between two values.
SQL INSERT
The INSERT INTO statement is used to insert new records in a table
SQL UPDATE
The UPDATE statement is used to update records in a table.
SQL DELETE
The DELETE statement is used to delete records in a table
4. Take the SQL Quiz Test. It is a paper based and will be handed out in class. It is 20
questions.
Download