You are on page 1of 8

1.

SELECT

- List all record of table by using SELECT statement

- List three column: CustomerID, CustomerName, Address, City from Customers table

2. WHERE
- List all customers from the country ‘Germany’ in the customer table (using WHERE clause)

- List all customers from the PostalCode ‘52066’ in the customer table (using WHERE

clause)

- List all customers from CustomerId = 20 in the customer table (using WHERE clause)
- List all products from Price > 20 in the Product table (using WHERE clause)

- List all products from Price > 20 and < 30 in the Product table (using WHERE clause)
- List all products from Price > 20 and < 30 in the Product table (using WHERE clause and

BETWEEN)

3. AND OR NOT

- List all customers in the Customer table has City in London and Country in UK
- List all customers in the Customer table has City in London and Berlin (Using OR statement)

- List all customer in Customer table has City not in Lodon.


- List all customer in Customer table: Country is Germany and City is Leipzig or Stuttgart (

USING AND and OR saatement)

4. INSERT, UPDATE

- INSERT one customer into Customer table


- UPDATE customers who has City is Portland and Country is USA, set Contact name is Your

name ( for example, Contact name is Thanh Do), City = Ha noi, PostalCode = 20000

5. DELETE

- Delete one record CustomerID = 45


- Delete one record Country = USA

- Delete the customers in Question 4 (delete a record you INSERT, delete records you just

updated in question 4)

You might also like