What Is A Databasesql
What Is A Databasesql
What Is A Databasesql
UPDATE Customer
SET ContactPerson = ‘Marie Almazora’
WHERE CustomerID = 4
6.) Record Updating Problem
• Write the SQL statement to edit the record below such that new values are assigned to two of the fields in the
record
UPDATE Customer
SET CompanyName = ‘Uy Industries’, Address = ‘Quezon City’
WHERE CustomerID = 3
7.) Record Updating Problem
• Write the SQL statement to edit the record below such that new values are assigned to three of the fields in the
record
UPDATE Customer
SET CompanyName = ‘Starks Industries’, Address = ‘Malibu’, ContactPerson = ‘Tony Stark’
WHERE CustomerID = 2
8.) Record Selection Problem
• Write the SQL statement to retrieve all records from the “Customer” table, but show only the company names
from the table
SELECT CompanyName FROM Customer
9.) Record Selection Problem
• Write the SQL statement to retrieve all records from the “Customer” table, but show only the company names
and contact person from the table
SELECT CompanyName, ContactPerson FROM Customer
10.) Record Selection Problem
• Write the SQL statement to retrieve all records from the “Customer” table, but show only the customer id,
company names and address from the table
SELECT CustomerID, CompanyName, Address FROM Customer
11.) Record Selection Problem
• Write the SQL statement to retrieve all records and fields from the “Customer” table
SELECT * FROM Customer
12.) Record Deleting Problem
• Write the SQL statement to delete the record below. Use the primary key as the criteria for deleting records
DELETE FROM Customer
WHERE CustomerID = 4
13.) Record Deleting Problem
• Write the SQL statement to delete the record below. Use the primary key as the criteria for deleting records