Assignment 2
Assignment 2
USE Assignment_2;
-- 3. Select only the ‘first_name’ and ‘last_name’ columns from the customer
table
-- 4. Select those records where ‘first_name’ starts with “G” and city is ‘San
Jose’.
SELECT *
FROM Customer
WHERE First_Name LIKE 'G%'
AND
C_City= 'San Jose';
SELECT *
FROM Customer
WHERE C_Email LIKE '%gmail%';
-- 6. Select those records where the ‘last_name’ doesn't end with “A”.
SELECT *
FROM Customer
WHERE Last_Name NOT LIKE '%a';