SQL Day-1 Exercise
SQL Day-1 Exercise
https://www.w3schools.com/sql/trysql.asp?filename=trysql_op_in
The tables and the data can be referred to from the ‘Your Database’ on the right side by clicking on the table
the following sheets for each table using SQL Command:
Provide your answers adjascent to the question statements
Submission format - Upload this excel with Proper naming convention
Questions
1. Select the records from Customers table where Customer Id is in between 30 and 35.
2. Select the City from Customers Table where PostalCode is NULL.
3. Update the City in Customers table to México O.F. where value is México D.F.
4. Select the CustomerName from Customers Table where CustomerName starts with 'La'.
5. Select the CustomerName from Customer whose ContactName starts with 'Ana'.
Questions
1. Insert an entry in Categories table with values '9', 'Fruit', 'Fruit'
2. Insert an entry in Categories table with values '10', 'Vegetables', 'Vegetables, Beans, and Legumes'2.
3. Select the records from Categories table where CategoryName does not have the letter 'o'.
4. Select the CategoryName from Categories whose description has 'ales'.
5. Update the Description to 'Milk, Yoghurt and, Cheese' in Categories table where CategoryName is 'Dairy Products'.
Questions
1. Display EmployeeID, LastName, FirstName and BirthDate from Employees table in ascending order of BirthDate.
2. Select records of Employees from Employees table whose BirthDate is in July.
3. Select records of Employees from Employees table whose Description has the word 'promoted'.
4. Display the record of the youngest employee.
5. Display FirstName, LastName of Employees from Employees table whose last name has letter 'k' and first name does not ha
order of BirthDate.