CST1340 - Week 3 - GOALs
CST1340 - Week 3 - GOALs
Individual Task
Examine the following relation which are part of a database for a company
selling horse accessories. The products sold by the company are stored in
Warehouses.
Product
Product
No Description Price Warehouse No
(PK)
P001 Riding Hat £50 W010
P002 Jodhpurs £20 W020
P003 Back Support £60 W015
P004 Riding Boots £100 W010
P005 Jacket £150 W025
The code to create the above table is given in the Product.sql file. Download
the file and execute it.
I3.2. Discuss, using examples, the difference between DDL and DML.
DDL is data definition language. DML is data manipulation language. DDL eg:
the database and DML eg: SELECT, UPDATE, DELETE, INSERT is used to insert,
I3.7. Write a SQL query to “List the product number, description and price of each
product”.
If there are multiple products with the same description and price, only one of them will
appear in the result. This query focuses on distinct combinations of description and price,
so you may not get all products with unique descriptions; instead, you'll get unique
For GOALs I3.6 to I3.10, the entry into your portfolio MUST contain the SQL code and a
screenshot of the resultant table after the code is run.