Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

Seatwork

Given the CUSTOMER Table below

WRITE SQL statements for the following requirements and write your answer in the box provided

(1) select the "CustomerName", "City", and "Country" columns from the "Customers" table:

SELECT CustomerName, City, Country FROM Customers;

(2) select only the DISTINCT values from the "Country" column in the "Customers" table

SELECT DISTINCT Country FROM Customers;

(3) select all the customers from "Mexico"

SELECT * FROM Customers


WHERE Country = 'Mexico';LECT DISTINCT Country FROM Customers;
(4) Select all records where the City column has the value "Berlin"

SELECT * FROM Customers


WHERE CouSELECT * FROM Customer
WHERE City = ‘Berlin’ ntry
= 'Mexico';LECT DISTINCT Country FROM Customers;

(5) Select all records where the City column has the value 'Berlin' and the PostalCode column has
the value 12209.

SELECT * FROM Customer


WHERE City = ‘Berlin’
AND PotalCode = 12209;

You might also like