Professional Documents
Culture Documents
Objectives
To Implement Data Manipulation Language (DML):
Data Manipulation Language (DML) statements are used for managing data within schema
objects.
INSERT - insert data into a table
UPDATE - updates existing data within a table
DELETE - deletes all records from a table, the space for the records Remain
Task 1 30 Minutes
Write a SQL statement to create a simple table country including columns
Country_id
Country_name
Region_id.
1. Write a SQL statement to insert a record into the table countries against each columns.
2. Write a SQL statement to insert one row into the table countries against the column country_id
and country_name.
3. Write a SQL statement to insert NULL values against region_id column for a row of countries
table.
4. Write a SQL statement to insert 3 rows by a single insert statement.
5. Insert 10 Rows at least in table country.
-- Task 1 :
Task 2 30 Minutes
Write a SQL statement to create a simple table countries including columns where job_id should be
unique
JOB_ID,
JOB_TITLE
SALARY
1. Write a SQL statement to insert one row in jobs table to ensure that no duplicate value will be
entered in the job_id column
2. Insert 2 rows in table Jobs
Task 3 30 Minutes
In this exercise, you will practice updating and deleting records.
-- Task 3 :
Task 4 30 Minutes
Create a table order with the given columns
FirstName
Title
City
PostalCode
Country
HomePhone
OrderID
ProductID
UnitPrice
Quantity
Discount
Max Obtained
Task Comments(if any)
Marks Marks
1. 10
2. 10
3. 10
4. 10
Total 40 Signature
Note : Attempt all tasks and get them checked by your Lab. Instructor