0% found this document useful (0 votes)
10 views9 pages

Lab 6

1. The document details the steps to install Oracle Database, create a database, and a table to store information about special offers like name, discount percentage, type, and category. 2. It creates a table called "shop" with columns for an ID, data source, offer name, discount percentage, type, and category then inserts sample data. 3. In conclusion, the database allows tracking of special offer information to manage promotions and discounts for inventory in a retail environment.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views9 pages

Lab 6

1. The document details the steps to install Oracle Database, create a database, and a table to store information about special offers like name, discount percentage, type, and category. 2. It creates a table called "shop" with columns for an ID, data source, offer name, discount percentage, type, and category then inserts sample data. 3. In conclusion, the database allows tracking of special offer information to manage promotions and discounts for inventory in a retail environment.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 9

Department of Computer Science HITEC University,

Taxila BS Computer Science Program (Batch 2021)

CS-304: Database Systems


Lab Folder
Fall 2023

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

Accept license agreement and Click Next


Select the Direction where We want to Install and Click Next

Enter password and Click Next


Click on Install

Wait for Installation to Complete


Click Finish
Task 2
Creating Database

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.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy