Docsity

Database Assignment #03: Write an SQL command, Assignments of Database Management Systems (DBMS)

Toggle sidebar
bg1
Database Systems Page 1 of 1
NOTE: Attempt all questions.
Question 1 (SQL) :
a) Write an SQL command to Delete the record of the Customers belonging to Mexico.
b) In the Customer table given above the country name of the Customer “Alfreds Futterkiste” has been
inserted wrong. Write an SQL command to change it to “UK”.
pf2

Partial preview of the text

Download Database Assignment #03: Write an SQL command and more Assignments Database Management Systems (DBMS) in PDF only on Docsity!

Database Systems Page 1 of 1 NOTE: Attempt all questions. Question 1 (SQL) : a) Write an SQL command to Delete the record of the Customers belonging to Mexico. b) In the Customer table given above the country name of the Customer “Alfreds Futterkiste” has been inserted wrong. Write an SQL command to change it to “UK”.

Database Systems Page 2 of 1

Solution:

a) Write an SQL command to Delete the record of the Customers belonging to Mexico. Answer: DELETE FROM Customer WHERE country='mexico'; b) In the Customer table given above the country name of the Customer “Alfreds Futterkiste” has been inserted wrong. Write an SQL command to change it to “UK”. Answer: UPDATE Customers SET country = ‘UK’ WHERE CustomerName = ‘Alfreds Futterkiste