Lab 6
Lab 6
Section B
Lab Report # 06
Muhammad Jahangir
21-cs-089
Basit Ali
21-cs-104
Muhammad Alrayan
21-cs-107
Instructor: Fatima Rauf
Task 1
Download and Install Oracle Database
Download Oracle data base forom official website of Oracle
https://www.oracle.com/pk/java/technologies/downloads/
Following these steps to install Oracle Database
Click Next
Creating Table
Result
Inserting Data into Table
Result
Explanation
1 We start by selecting the database inventory_system using the USE statement.
2 We create a table called shop with the following columns:
• Special_Offer_id (an integer) as the primary key with auto-increment, which
means it will automatically generate unique values.
• ETL_source (a string with a maximum length of 30 characters) for the source of
the data.
• Offer_name (a string with a maximum length of 50 characters) for the name of
the special offer.
• DiscountPct (a decimal number with 4 total digits and 2 decimal places) to store
the discount percentage.
• Type (a string with a maximum length of 50 characters) for the type of offer.
• Category (a string with a maximum length of 50 characters) for the category of
the offer.
3 We insert sample data into the shop table using INSERT INTO statements. This data
represents various special offers, their details, discount percentages, offer types, and
categories.
Conclusion
In conclusion, we are established a database to manage special offers in an inventory system.
This database allows you to store and track information about different types of special offers,
making it useful for managing promotions, discounts, and inventory-related activities in a retail
or sales environment.