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)
8 views
database
database
Uploaded by
yogeshwarghade143
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 now
Download
Save database For Later
Download
Save
Save database For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
0 ratings
0% found this document useful (0 votes)
8 views
database
database
Uploaded by
yogeshwarghade143
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 now
Download
Save database For Later
Carousel Previous
Carousel Next
Save
Save database For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
Download now
Download
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
Project Orders (SQLite & MYSQL)
PDF
8% (13)
Project Orders (SQLite & MYSQL)
6 pages
Business Analysis Report: SQL Lite and Mysql Project
PDF
76% (21)
Business Analysis Report: SQL Lite and Mysql Project
11 pages
This Study Resource Was: SQL Project
PDF
67% (3)
This Study Resource Was: SQL Project
9 pages
Project: Animesh Halder
PDF
67% (3)
Project: Animesh Halder
12 pages
Project Instructions 2
PDF
No ratings yet
Project Instructions 2
5 pages
Advanced Database Concepts4a-Create Database Business
PDF
No ratings yet
Advanced Database Concepts4a-Create Database Business
2 pages
Tables
PDF
No ratings yet
Tables
27 pages
Biydaalt
PDF
No ratings yet
Biydaalt
4 pages
Blink Basket
PDF
No ratings yet
Blink Basket
8 pages
DWH Detailedproject
PDF
No ratings yet
DWH Detailedproject
17 pages
Final Project
PDF
No ratings yet
Final Project
3 pages
Message
PDF
No ratings yet
Message
7 pages
PostgreSQL Q&A
PDF
No ratings yet
PostgreSQL Q&A
2 pages
INSERTMachingaBusinessOIT138
PDF
No ratings yet
INSERTMachingaBusinessOIT138
4 pages
2023kucp1088 Q1
PDF
No ratings yet
2023kucp1088 Q1
4 pages
���+ᮧ�����+����+������
PDF
No ratings yet
���+ᮧ�����+����+������
4 pages
SQL Project Module 7
PDF
No ratings yet
SQL Project Module 7
14 pages
Lenovo
PDF
No ratings yet
Lenovo
49 pages
DBMS Project
PDF
No ratings yet
DBMS Project
4 pages
1 Eje
PDF
No ratings yet
1 Eje
3 pages
Data 4 Table
PDF
No ratings yet
Data 4 Table
2 pages
Tables for Assignment 2
PDF
No ratings yet
Tables for Assignment 2
3 pages
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
Dba Course Project
PDF
No ratings yet
Dba Course Project
31 pages
Stock
PDF
No ratings yet
Stock
4 pages
SQL Questions
PDF
No ratings yet
SQL Questions
7 pages
Business Report - Suchita - Bhovar - SQL
PDF
No ratings yet
Business Report - Suchita - Bhovar - SQL
17 pages
Mysql Inventory Database
PDF
No ratings yet
Mysql Inventory Database
15 pages
DOC-20230522-WA0001.(1)(1)(1)(1)
PDF
No ratings yet
DOC-20230522-WA0001.(1)(1)(1)(1)
4 pages
Lab Tasks-13 (1)
PDF
No ratings yet
Lab Tasks-13 (1)
7 pages
Dbms Group CIA 3
PDF
No ratings yet
Dbms Group CIA 3
4 pages
Project Instructions 2 PDF
PDF
No ratings yet
Project Instructions 2 PDF
5 pages
Prog 2
PDF
No ratings yet
Prog 2
5 pages
SQL Project
PDF
No ratings yet
SQL Project
4 pages
QueriesSQL
PDF
No ratings yet
QueriesSQL
21 pages
Tugas Basis Data Lanjut
PDF
No ratings yet
Tugas Basis Data Lanjut
8 pages
Sandhya Assignment SQL
PDF
No ratings yet
Sandhya Assignment SQL
16 pages
Chapter 9-11 Informatic Practices Xii Web
PDF
No ratings yet
Chapter 9-11 Informatic Practices Xii Web
104 pages
CHAPTER 9-11 INFORMATIC PRACTICES XII WEB
PDF
No ratings yet
CHAPTER 9-11 INFORMATIC PRACTICES XII WEB
104 pages
E farm dbms
PDF
No ratings yet
E farm dbms
39 pages
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
Anitaprasad_sql_11_08_2024_report
PDF
No ratings yet
Anitaprasad_sql_11_08_2024_report
14 pages
Mysql
PDF
No ratings yet
Mysql
7 pages
SQL Project Tarun Dhiman Jan C 2022
PDF
100% (2)
SQL Project Tarun Dhiman Jan C 2022
14 pages
Based On Business Rules in Case Study
PDF
No ratings yet
Based On Business Rules in Case Study
6 pages
SQL PDF
PDF
No ratings yet
SQL PDF
15 pages
Create DB Store
PDF
No ratings yet
Create DB Store
3 pages
Advanced_SQL_Assignment_with_Tables
PDF
No ratings yet
Advanced_SQL_Assignment_with_Tables
5 pages
DBMS practical practice
PDF
No ratings yet
DBMS practical practice
34 pages
SQL Project
PDF
No ratings yet
SQL Project
15 pages
E-Store Databse Shema
PDF
No ratings yet
E-Store Databse Shema
2 pages
Practical 3
PDF
No ratings yet
Practical 3
14 pages
Project Instructions
PDF
No ratings yet
Project Instructions
5 pages
DBMS Product
PDF
No ratings yet
DBMS Product
1 page
SQL Report: (A Report On SQL Queries Based On Transactional Processing Systems)
PDF
No ratings yet
SQL Report: (A Report On SQL Queries Based On Transactional Processing Systems)
11 pages
Database Assignmnet
PDF
No ratings yet
Database Assignmnet
26 pages
CBSE Class 12 Informatic Practices Databases and SQL
PDF
No ratings yet
CBSE Class 12 Informatic Practices Databases and SQL
45 pages
23110030_AIG2_ASSIGNMENT1
PDF
No ratings yet
23110030_AIG2_ASSIGNMENT1
6 pages
Moons Rising
From Everand
Moons Rising
Blythe Ayne
No ratings yet
No Ph.D. Game Design With Three.js
From Everand
No Ph.D. Game Design With Three.js
Nikiforos Kontopoulos
No ratings yet
hr interview question
PDF
No ratings yet
hr interview question
1 page
PSG Sample SRS
PDF
No ratings yet
PSG Sample SRS
93 pages
Agile Interview Questions
PDF
No ratings yet
Agile Interview Questions
19 pages
Interview Questions
PDF
No ratings yet
Interview Questions
7 pages
CS Project
PDF
No ratings yet
CS Project
33 pages
(English) IBRUP-Weekly HSE Review Summary 2024-01-13 19
PDF
No ratings yet
(English) IBRUP-Weekly HSE Review Summary 2024-01-13 19
2 pages
Water Cooled Manual IOM120229 1.10
PDF
100% (1)
Water Cooled Manual IOM120229 1.10
76 pages
Dd322091013a PDF
PDF
No ratings yet
Dd322091013a PDF
593 pages
8155 Static Ram With I/O Ports and Timer
PDF
No ratings yet
8155 Static Ram With I/O Ports and Timer
59 pages
Sit1503 Unit2
PDF
No ratings yet
Sit1503 Unit2
63 pages
Bugreport Bali POAS29.550 132 5 2023 10 07 23 57 05 Dumpstate - Log 6124
PDF
No ratings yet
Bugreport Bali POAS29.550 132 5 2023 10 07 23 57 05 Dumpstate - Log 6124
23 pages
Solar Power Plant - KT - Arau - 20150420
PDF
No ratings yet
Solar Power Plant - KT - Arau - 20150420
42 pages
Creatrix Campus GDPR - V1
PDF
No ratings yet
Creatrix Campus GDPR - V1
7 pages
SONY NWZ X1000 Service Manual
PDF
No ratings yet
SONY NWZ X1000 Service Manual
34 pages
Study Novels Online - A Brand New Strategy To Study Books
PDF
No ratings yet
Study Novels Online - A Brand New Strategy To Study Books
3 pages
Paramount Maths Volume-1 InHindi PDF
PDF
100% (1)
Paramount Maths Volume-1 InHindi PDF
238 pages
GSM Network Basics: Wcdma Technology
PDF
No ratings yet
GSM Network Basics: Wcdma Technology
2 pages
EDS800 Series Servie Manua V3.0 PDF
PDF
No ratings yet
EDS800 Series Servie Manua V3.0 PDF
140 pages
Attachments: C9 Sub-Base Fuel Tank Base
PDF
No ratings yet
Attachments: C9 Sub-Base Fuel Tank Base
2 pages
Circuits, Devices and Applications 3
PDF
No ratings yet
Circuits, Devices and Applications 3
24 pages
COBIT 2019 Executive Summary_v1.1
PDF
No ratings yet
COBIT 2019 Executive Summary_v1.1
49 pages
Topic 01 Introduction To Python
PDF
No ratings yet
Topic 01 Introduction To Python
40 pages
Grid & Sub Station
PDF
No ratings yet
Grid & Sub Station
39 pages
IT 313 Object Oriented Programming
PDF
No ratings yet
IT 313 Object Oriented Programming
6 pages
Thermostats
PDF
No ratings yet
Thermostats
10 pages
ESQUEMA ELECTRICO c9 PDF
PDF
No ratings yet
ESQUEMA ELECTRICO c9 PDF
2 pages
Retail Supply Chain Management Demo
PDF
No ratings yet
Retail Supply Chain Management Demo
30 pages
InRouter305 User Manual V1.0
PDF
No ratings yet
InRouter305 User Manual V1.0
74 pages
Z8E AMD A3 Platform Block Diagram: Power Solution
PDF
100% (2)
Z8E AMD A3 Platform Block Diagram: Power Solution
44 pages
TDA1553Q
PDF
No ratings yet
TDA1553Q
10 pages
Trifft Zu PDF - PDF
PDF
No ratings yet
Trifft Zu PDF - PDF
9 pages
11.AWS Key Management Service
PDF
No ratings yet
11.AWS Key Management Service
8 pages
CISCO ASA - DNS Doctoring
PDF
No ratings yet
CISCO ASA - DNS Doctoring
6 pages
v2 Whitehat JR Sales Pitch Vfinal India PDF
PDF
No ratings yet
v2 Whitehat JR Sales Pitch Vfinal India PDF
16 pages