In this MS SQL Database project I am creating an Automobile Shop Management System database. On this Database project I have tried to apply all the functions of MS SQL.
The content of this file divided into 9 sections
- SECTION 01: Created a Database Name [ASMSDB]
- SECTION 02: Created Appropriate Tables For The Database
- SECTION 03: Apply Some Modifying Statement (ALTER, ADD, DELET, UPDATE)
- SECTION 04: Created Some Clustered & Non-Clustered Index
- SECTION 05: CREATING VIEWS
- SECTION 06: STORE PROCEDURE (INSERT, DELETE, UPDATE)
- SECTION 07: CREATING FUNCTION (Scalar Value, Table Value )
- SECTION 08: CREATING TRIGGER (FOR TRIGGER, INSTEAD OF TRIGGER )
- SECTION 09: CREATING TRANSACTION
- SECTION 01: INSERTING DATA INTO TABLE (Normal Insert Into)
- SECTION 02: INSERTING DATA INTO TABLE (Through Store Procedure)
- SECTION 03: TEST (View, Trigger, Function, Transaction)
- SECTION 04: Query to retrieve data from database
- Find out the customer whos company name IS NULL.
- Use SPACE() Find Out The Customer (Full Name) As 'Name'and Their Mobile number Where CustomerType_ID = 1
- Find total number of employee who works in Operation Department
- Sort Employee Name ascending & descending order
- Sort Employee Name by an expression USE LEN()
- Sort by ordinal positions of columns
- select the OFFSET 10 ROWS
- select the OFFSET 0 ROWS
- Find Out The customers from invoice table who have a Payment Due
- Write a Join Query To find out the employee Details who work in Marketing Department
- Write a query Using Like Operator
- Write a query Using NOT Like Operator
- Write a query Using GROUP BY clause and aggregate functions
- Write a query Using GROUP BY clause with the MIN and MAX functions
- Write a query Using GROUP BY clause with the AVG() function
- Write Sub Queary to find out the customer whos Type_ID =2
- Write a query Using RollUp
- Write a query Using CUBE
- Write a CTE
Feel free to download this database project and modify or use it of your own way.