Professional Documents
Culture Documents
Assignment # 01
The purpose of this assignment is to understand following SQL queries syntax and the purpose.
You have to make a database of your choice in Access or SQL Server and run the following SQL
queries on it. The output of this assignment is a document containing the SQL queries plus the
screen shots of the output tables.
1. Select
The SELECT statement is used to select data from a database.
2. Insert
The INSERT INTO statement is used to insert new records in a table.
3. Update
The UPDATE statement is used to modify the existing records in a table.
4. Delete
The DELETE statement is used to delete existing records in a table.
5. Distinct
The SELECT DISTINCT statement is used to return only distinct (different) values.
6. Where clause
The WHERE clause is used to filter records.
7. AND/OR
The AND and OR operators are used to filter records based on more than one condition:
8. IN
The IN operator allows to specify multiple values in a WHERE clause.
9. ALIAS
SQL aliases are used to give a table, or a column in a table, a temporary name.
10. BETWEEN
The BETWEEN operator selects values within a given range.
11. LIKE
The LIKE operator is used in a WHERE clause to search for a specified pattern in a column.
13. ORDER BY
The ORDER BY keyword is used to sort the result-set in ascending or descending order.
14. GROUP BY
The GROUP BY statement groups rows that have the same values into summary rows