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

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”.

Typology: Assignments

2020/2021

Available from 11/03/2021

razaroghani
razaroghani 🇵🇰

4.5

(4)

151 documents

1 / 2

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

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