Royal University of Law and Economics
Royal University of Law and Economics
Royal University of Law and Economics
1. Introduction
1.1. About the project
2. How to install SQL sever 2019
2.1. Download SQL Server 2019
2.2. Install SQL Server 2019 developer edition
2.3. Install Microsoft SQL Server Management Studio
3. How to install Visual studio 2022
3.1. A
3.2. B
3.3. C
4. Project Plane Sale management system
4.1. a
4.2. b
5. Create Database and Table in SQL Sever
5.1. Create Database
5.2. Create Table
a. Table Customer
b. Table Products
c. Table Sale Order Items
d. Table Purchases
e. Table Sale Orders
f. Table Staff
g. Table Sale Reports
6. C# form
6.1.
7. Conclusion
Introduction
1. About the project
How to
Install
SQL SEVER 2019
https://www.microsoft.com/en-us/sql-server/sql-server-downloads
1. The downloader will ask you to select the installation type, choose the
Download Media option. This option allows you to download the setup
files first and install the SQL Server later.
2. Specify the folder for storing the installation files, then click the
Download button:
3. The downloader will start downloading the installation files. It’ll take a
while.
4. Once the download completes, open the folder that stores the
downloaded file:
5. Right-click the iso file and select the Mount option to mount the iso
file:
6. Open the installation folder and click the setup.exe file to launch the
installer:
2. Install SQL Server 2019 developer edition
1. After double click setup.exe, you’ll see the following window; select
the installation option on the left:
2. Click the first link to launch a wizard to install SQL Server 2019:
3. Specify the edition that you want to install, select Developer edition,
and click the Next button.
4. Select the “I accept the license terms.” and click the Next button:
7. Select the features that you want to install. For learning purposes, you
need the Database Engine Services; check the checkbox and click the
Next button to continue:
8. Provide the instance ID of the SQL Server and click the Next button:
https://learn.microsoft.com/en-us/sql/ssms/download-sql-server-
management-studio-ssms?view=sql-server-ver16
2. Wait for a few minutes while the installer sets up the software:
3. Once setup is completed, click the Close button:
How to
install
Visual studio 2022
CREATE DATABASE
AND
TABLE IN SQL SEVER
1. Create Database
2. Create Table
a. Table Customer
b. Table Products
c. Table Sale Order Items
d. Table Purchases
e. Table Sale Orders
f. Table Staff
g. Table Sale Reports
1. Creating the Database:
Create database Sale_Management_System;
Using Sale_Management_System;
2. Creating Tables:
a. customer:
show code:
-- Customers Table
Address VARCHAR(255)
);
b. products:
show code:
-- Products Table
CREATE TABLE Product (
c. sale_order_items:
show code:
-- SalesOrderItems Table
Order_ID INT ,
Ord_ID INT,
Pro_ID INT,
Quantity INT,
Price DECIMAL(10, 2),
);
d. purchases:
Stores purchase history for products:
show code:
-- Purchases Table
Pro_ID INT ,
PurchaseDate DATE,
Quantity INT,
);
e. sale_orders:
Stores sale order information:
Show code:
-- SalesOrders Table
Cus_ID INT,
St_ID INT,
OrderDate DATE,
);
f. staff:
show code:
-- Staffs Table
);
g. sale_report:
show code:
-- SaleReports Table
CREATE TABLE SaleReports (
Ord_ID INT,