Open navigation menu
Close suggestions
Search
Search
en
Change Language
Upload
Sign in
Sign in
Download free for days
0 ratings
0% found this document useful (0 votes)
21 views
3 pages
Database
database
Uploaded by
yogeshwarghade143
AI-enhanced title
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here
.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
Download
Save
Save database For Later
Share
0%
0% found this document useful, undefined
0%
, undefined
Print
Embed
Report
0 ratings
0% found this document useful (0 votes)
21 views
3 pages
Database
database
Uploaded by
yogeshwarghade143
AI-enhanced title
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here
.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
Carousel Previous
Carousel Next
Download
Save
Save database For Later
Share
0%
0% found this document useful, undefined
0%
, undefined
Print
Embed
Report
Download
Save database For Later
You are on page 1
/ 3
Search
Fullscreen
CREATE TABLE Products (
ProductID INT PRIMARY KEY,
ProductName VARCHAR(255),
Category VARCHAR(100),
Price DECIMAL(10, 2)
);
CREATE TABLE ProductDetails (
ProductDetailID INT PRIMARY KEY,
ProductID INT,
Description TEXT,
Manufacturer VARCHAR(255),
Stock INT,
FOREIGN KEY (ProductID) REFERENCES Products(ProductID)
);
CREATE TABLE Customers (
CustomerID INT PRIMARY KEY,
CustomerName VARCHAR(255),
Email VARCHAR(255),
Phone VARCHAR(20),
Address TEXT
);
CREATE TABLE Orders (
OrderID INT PRIMARY KEY,
CustomerID INT,
OrderDate DATE,
OrderStatus VARCHAR(20),
FOREIGN KEY (CustomerID) REFERENCES Customers(CustomerID)
);
CREATE TABLE OrderDetails (
OrderDetailID INT PRIMARY KEY,
OrderID INT,
ProductID INT,
Quantity INT,
Price DECIMAL(10, 2),
FOREIGN KEY (OrderID) REFERENCES Orders(OrderID),
FOREIGN KEY (ProductID) REFERENCES Products(ProductID)
);
INSERT INTO Products (ProductID, ProductName, Category, Price) VALUES
(1001, 'Laptop', 'Electronics', 999.99),
(1002, 'Smartphone', 'Electronics', 599.99),
(1003, 'Book', 'Books', 19.99),
(1004, 'Headphones', 'Electronics', 49.99),
(1005, 'Desk Lamp', 'Home', 29.99),
(1006, 'Monitor', 'Electronics', 199.99),
(1007, 'Keyboard', 'Electronics', 49.99),
(1008, 'Mouse', 'Electronics', 25.99),
(1009, 'Printer', 'Electronics', 149.99),
(1010, 'Camera', 'Electronics', 499.99);
INSERT INTO ProductDetails (ProductDetailID, ProductID, Description, Manufacturer,
Stock) VALUES
(1, 1001, 'High-performance laptop with 16GB RAM', 'Brand A', 50),
(2, 1002, 'Latest smartphone with advanced features', 'Brand B', 150),
(3, 1003, 'Bestselling fiction novel', 'Publisher C', 200),
(4, 1004, 'Noise-cancelling over-ear headphones', 'Brand D', 75),
(5, 1005, 'Adjustable LED desk lamp', 'Brand E', 120),
(6, 1006, '24-inch HD monitor', 'Brand F', 80),
(7, 1007, 'Mechanical keyboard with RGB lighting', 'Brand G', 60),
(8, 1008, 'Wireless mouse with ergonomic design', 'Brand H', 90),
(9, 1009, 'All-in-one printer with WiFi', 'Brand I', 40),
(10, 1010, 'Digital SLR camera with 24MP sensor', 'Brand J', 30);
INSERT INTO Customers (CustomerID, CustomerName, Email, Phone, Address) VALUES
(101, 'Alice Johnson', '
[email protected]
', '123-456-7890', '123 Maple Street'),
(102, 'Bob Smith', '
[email protected]
', '987-654-3210', '456 Oak Avenue'),
(103, 'Carol White', '
[email protected]
', '555-666-7777', '789 Pine Road'),
(104, 'David Brown', '
[email protected]
', '444-555-6666', '101 Elm Boulevard'),
(105, 'Eve Black', '
[email protected]
', '333-444-5555', '202 Birch Lane'),
(106, 'Frank Green', '
[email protected]
', '222-333-4444', '303 Cedar Court'),
(107, 'Grace Blue', '
[email protected]
', '111-222-3333', '404 Walnut Way'),
(108, 'Hank Red', '
[email protected]
', '777-888-9999', '505 Spruce Street'),
(109, 'Ivy Yellow', '
[email protected]
', '666-777-8888', '606 Fir Avenue'),
(110, 'Jack Purple', '
[email protected]
', '555-444-3333', '707 Pine Boulevard');
INSERT INTO Orders (OrderID, CustomerID, OrderDate, OrderStatus) VALUES
(1, 101, '2023-01-01', 'Shipped'),
(2, 102, '2023-01-02', 'Processing'),
(3, 103, '2023-01-03', 'Delivered'),
(4, 104, '2023-01-04', 'Cancelled'),
(5, 105, '2023-01-05', 'Shipped'),
(6, 106, '2023-01-06', 'Processing'),
(7, 107, '2023-01-07', 'Delivered'),
(8, 108, '2023-01-08', 'Cancelled'),
(9, 109, '2023-01-09', 'Shipped'),
(10, 110, '2023-01-10', 'Processing'),
(11, 101, '2023-01-11', 'Delivered'),
(12, 102, '2023-01-12', 'Cancelled'),
(13, 103, '2023-01-13', 'Shipped'),
(14, 104, '2023-01-14', 'Processing'),
(15, 105, '2023-01-15', 'Delivered'),
(16, 106, '2023-01-16', 'Cancelled'),
(17, 107, '2023-01-17', 'Shipped'),
(18, 108, '2023-01-18', 'Processing'),
(19, 109, '2023-01-19', 'Delivered'),
(20, 110, '2023-01-20', 'Cancelled'),
(21, 101, '2023-01-21', 'Shipped'),
(22, 102, '2023-01-22', 'Processing'),
(23, 103, '2023-01-23', 'Delivered'),
(24, 104, '2023-01-24', 'Cancelled'),
(25, 105, '2023-01-25', 'Shipped'),
(26, 106, '2023-01-26', 'Processing'),
(27, 107, '2023-01-27', 'Delivered'),
(28, 108, '2023-01-28', 'Cancelled'),
(29, 109, '2023-01-29', 'Shipped'),
(30, 110, '2023-01-30', 'Processing');
INSERT INTO OrderDetails (OrderDetailID, OrderID, ProductID, Quantity, Price)
VALUES
(1, 1, 1001, 1, 999.99),
(2, 1, 1003, 2, 19.99),
(3, 2, 1002, 1, 599.99),
(4, 3, 1004, 3, 49.99),
(5, 4, 1005, 1, 29.99),
(6, 5, 1006, 2, 199.99),
(7, 6, 1007, 3, 49.99),
(8, 7, 1008, 4, 25.99),
(9, 8, 1009, 1, 149.99),
(10, 9, 1010, 2, 499.99),
(11, 10, 1001, 1, 999.99),
(12, 11, 1002, 1, 599.99),
(13, 12, 1003, 2, 19.99),
(14, 13, 1004, 3, 49.99),
(15, 14, 1005, 1, 29.99),
(16, 15, 1006, 2, 199.99),
(17, 16, 1007, 3, 49.99),
(18, 17, 1008, 4, 25.99),
(19, 18, 1009, 1, 149.99),
(20, 19, 1010, 2, 499.99),
(21, 20, 1001, 1, 999.99),
(22, 21, 1002, 1, 599.99),
(23, 22, 1003, 2, 19)
You might also like
LM3886 Gain Clone Amplifier DIY From XY
PDF
100% (1)
LM3886 Gain Clone Amplifier DIY From XY
26 pages
SQL Project Module 7
PDF
No ratings yet
SQL Project Module 7
14 pages
SQL Project
PDF
No ratings yet
SQL Project
15 pages
Chapter 9-11 Informatic Practices Xii Web
PDF
No ratings yet
Chapter 9-11 Informatic Practices Xii Web
104 pages
Caravaggio in Binary
PDF
100% (1)
Caravaggio in Binary
20 pages
Projection
PDF
No ratings yet
Projection
38 pages
This Study Resource Was: SQL Project
PDF
67% (3)
This Study Resource Was: SQL Project
9 pages
MCUXSDKGSUG
PDF
No ratings yet
MCUXSDKGSUG
76 pages
Furniture Store SQL Project Documentation
PDF
No ratings yet
Furniture Store SQL Project Documentation
12 pages
E Farm Dbms
PDF
No ratings yet
E Farm Dbms
39 pages
PSG Sample SRS
PDF
No ratings yet
PSG Sample SRS
93 pages
DBMS Practical Practice
PDF
No ratings yet
DBMS Practical Practice
34 pages
Nvidia Gpu 25
PDF
No ratings yet
Nvidia Gpu 25
15 pages
Electronic Gaming Monthly Issue 116 (March 1999)
PDF
No ratings yet
Electronic Gaming Monthly Issue 116 (March 1999)
161 pages
Project of SQL Completed On 22nd May 2025
PDF
No ratings yet
Project of SQL Completed On 22nd May 2025
6 pages
Project: Animesh Halder
PDF
67% (3)
Project: Animesh Halder
12 pages
SQL Query Sample
PDF
No ratings yet
SQL Query Sample
6 pages
Codificacion de Base de Datos de Ezekiel
PDF
No ratings yet
Codificacion de Base de Datos de Ezekiel
6 pages
DBMS (Unit 1)
PDF
No ratings yet
DBMS (Unit 1)
28 pages
2table Insert
PDF
No ratings yet
2table Insert
9 pages
Dba Course Project
PDF
No ratings yet
Dba Course Project
31 pages
Agile Interview Questions
PDF
No ratings yet
Agile Interview Questions
19 pages
Lab Tasks-13
PDF
No ratings yet
Lab Tasks-13
7 pages
Scripts
PDF
No ratings yet
Scripts
9 pages
SQL Questions
PDF
No ratings yet
SQL Questions
7 pages
Tugas Basis Data Lanjut
PDF
No ratings yet
Tugas Basis Data Lanjut
8 pages
SQL Project
PDF
No ratings yet
SQL Project
4 pages
Tables For Assignment 2
PDF
No ratings yet
Tables For Assignment 2
3 pages
CAPSTONE PROJECT MID (Recovered)
PDF
No ratings yet
CAPSTONE PROJECT MID (Recovered)
8 pages
AppTokenGen JCCV12.1
PDF
No ratings yet
AppTokenGen JCCV12.1
13 pages
INSERTMachinga Business OIT138
PDF
No ratings yet
INSERTMachinga Business OIT138
4 pages
Python Harvard RegularExpressions
PDF
No ratings yet
Python Harvard RegularExpressions
20 pages
SQL Project Tarun Dhiman Jan C 2022
PDF
100% (2)
SQL Project Tarun Dhiman Jan C 2022
14 pages
BNSAT SKILLS Training Hours, Narrative, List of Trainees
PDF
No ratings yet
BNSAT SKILLS Training Hours, Narrative, List of Trainees
6 pages
Queries SQL
PDF
No ratings yet
Queries SQL
21 pages
April Assignment
PDF
No ratings yet
April Assignment
7 pages
User Manual Webcam Pc293 en 031108
PDF
No ratings yet
User Manual Webcam Pc293 en 031108
5 pages
Tables
PDF
No ratings yet
Tables
27 pages
Anitaprasad SQL 11 08 2024 Report
PDF
No ratings yet
Anitaprasad SQL 11 08 2024 Report
14 pages
���+ᮧ�����+����+������
PDF
No ratings yet
���+ᮧ�����+����+������
4 pages
Assignment SQL Joins
PDF
No ratings yet
Assignment SQL Joins
4 pages
16.4.7 Steps and Commands
PDF
No ratings yet
16.4.7 Steps and Commands
4 pages
Attention: Please Read This Manual Prior To Installing and Operating Your Door. Recheck Your Work Before Operation
PDF
No ratings yet
Attention: Please Read This Manual Prior To Installing and Operating Your Door. Recheck Your Work Before Operation
28 pages
Mobile Educational Applications For Children. What Educators and Parents Need To Know
PDF
No ratings yet
Mobile Educational Applications For Children. What Educators and Parents Need To Know
23 pages
Admission Application Instruction en
PDF
No ratings yet
Admission Application Instruction en
30 pages
CE Setting Out
PDF
No ratings yet
CE Setting Out
32 pages
Create DB Store
PDF
No ratings yet
Create DB Store
3 pages
Interview Questions
PDF
No ratings yet
Interview Questions
7 pages
DWH Detailedproject
PDF
No ratings yet
DWH Detailedproject
17 pages
Business Report - Suchita - Bhovar - SQL
PDF
No ratings yet
Business Report - Suchita - Bhovar - SQL
17 pages
Lec 32 Create Table
PDF
No ratings yet
Lec 32 Create Table
1 page
Wa0001.
PDF
No ratings yet
Wa0001.
4 pages
Advanced SQL Assignment With Tables
PDF
No ratings yet
Advanced SQL Assignment With Tables
5 pages
2023kucp1088 Q1
PDF
No ratings yet
2023kucp1088 Q1
4 pages
分析建模技術的革新 Abaqus一條龍
PDF
No ratings yet
分析建模技術的革新 Abaqus一條龍
5 pages
Dbms Group CIA 3
PDF
No ratings yet
Dbms Group CIA 3
4 pages
Biydaalt
PDF
No ratings yet
Biydaalt
4 pages
Lenovo
PDF
No ratings yet
Lenovo
49 pages
Magic 8 Ball
PDF
No ratings yet
Magic 8 Ball
22 pages
Chapter 9-11 Informatic Practices Xii Web
PDF
No ratings yet
Chapter 9-11 Informatic Practices Xii Web
104 pages
Data 4 Table
PDF
No ratings yet
Data 4 Table
2 pages
Mysql
PDF
No ratings yet
Mysql
7 pages
Prog 2
PDF
No ratings yet
Prog 2
5 pages
On-Line Construction of Suffix Trees
PDF
No ratings yet
On-Line Construction of Suffix Trees
18 pages
Final Project
PDF
No ratings yet
Final Project
3 pages
Proviz RTX Mobile Line Card
PDF
No ratings yet
Proviz RTX Mobile Line Card
1 page
Stamps/Mti Manual: Version 3.3B1
PDF
No ratings yet
Stamps/Mti Manual: Version 3.3B1
36 pages
Advanced Database Concepts4a-Create Database Business
PDF
No ratings yet
Advanced Database Concepts4a-Create Database Business
2 pages
Blink Basket
PDF
No ratings yet
Blink Basket
8 pages
PostgreSQL Q&A
PDF
No ratings yet
PostgreSQL Q&A
2 pages
SQL PDF
PDF
No ratings yet
SQL PDF
15 pages
Business Analysis Report: SQL Lite and Mysql Project
PDF
76% (21)
Business Analysis Report: SQL Lite and Mysql Project
11 pages
Based On Business Rules in Case Study
PDF
No ratings yet
Based On Business Rules in Case Study
6 pages
Shear Building - Seismic
PDF
100% (1)
Shear Building - Seismic
13 pages
HR Interview Question
PDF
No ratings yet
HR Interview Question
1 page
Insert Into Values (&, ,, ,) : '&distributor - Name' '&contact - Person' '&contact - Phone' '&contact - Email'
PDF
No ratings yet
Insert Into Values (&, ,, ,) : '&distributor - Name' '&contact - Person' '&contact - Phone' '&contact - Email'
12 pages
DBMS Project
PDF
No ratings yet
DBMS Project
4 pages
1 Eje
PDF
No ratings yet
1 Eje
3 pages
Toshiba Satellite C55 - B5299 User Guide PDF
PDF
No ratings yet
Toshiba Satellite C55 - B5299 User Guide PDF
170 pages
Sandhya Assignment SQL
PDF
No ratings yet
Sandhya Assignment SQL
16 pages
Mysql Inventory Database
PDF
No ratings yet
Mysql Inventory Database
15 pages
Stock
PDF
No ratings yet
Stock
4 pages
Project Instructions 2 PDF
PDF
No ratings yet
Project Instructions 2 PDF
5 pages
CCTV: A Boon To The New Millenium: La Union National High School City of San Fernando SY: 2012-2013
PDF
No ratings yet
CCTV: A Boon To The New Millenium: La Union National High School City of San Fernando SY: 2012-2013
15 pages
Are Smart Sensors Needed in Your Industrial Machines - Sensors Content From Machine Design
PDF
No ratings yet
Are Smart Sensors Needed in Your Industrial Machines - Sensors Content From Machine Design
4 pages
V Guard Dealer Price List 01.03.2019
PDF
No ratings yet
V Guard Dealer Price List 01.03.2019
1 page
NOT Null, NOT Null, Null, NOT Null, Null, NOT Null, Null, NOT Null, NOT Null
PDF
No ratings yet
NOT Null, NOT Null, Null, NOT Null, Null, NOT Null, Null, NOT Null, NOT Null
5 pages
Project Instructions 2
PDF
No ratings yet
Project Instructions 2
5 pages
SMS Gateway Interface
PDF
No ratings yet
SMS Gateway Interface
4 pages
The Three-Wire Quarter-Bridge Circuit
PDF
No ratings yet
The Three-Wire Quarter-Bridge Circuit
4 pages
No Ph.D. Game Design With Three.js
From Everand
No Ph.D. Game Design With Three.js
Nikiforos Kontopoulos
No ratings yet
Heavy Weather
From Everand
Heavy Weather
Ness Lobo
No ratings yet
Moons Rising
From Everand
Moons Rising
Blythe Ayne
No ratings yet