A complete repository of SQL solutions for **DBMS-I Lab Exercises** with a focus on relational database management using Microsoft SQL Server (MSSQL). Perfect for students and professionals aiming to master SQL and database design.
- Introduction
- Features
- Technologies Used
- File Structure
- Getting Started
- Usage
- Contributing
- License
- Contact
Welcome to the DBMS-I Lab Repository! This project contains practical SQL query solutions to various lab exercises designed to strengthen your knowledge of relational databases using Microsoft SQL Server (MSSQL).
- 📚 Comprehensive Lab Exercises: Includes detailed solutions to SQL problems.
- 🔍 Wide Coverage of Concepts: From basic queries to advanced joins, subqueries, and aggregate functions.
- 🎓 Student-Friendly: Tailored for academic labs and assignments.
- 📈 Real-World Scenarios: Designed to help you apply SQL to practical use cases.
- 💡 MSSQL-Specific Syntax: Queries optimized for Microsoft SQL Server.
This repository utilizes the following:
- Microsoft SQL Server (MSSQL): For database creation and query execution.
- SQL Server Management Studio (SSMS): As the primary interface for writing and executing SQL scripts.
Here's how the repository is organized:
DBMS-I/
├── README.md # Project Documentation
├── SQLQuery Lab 1.sql # Lab 1 solutions
├── SQLQuery Lab 2.sql # Lab 2 solutions
├── SQLQuery Lab 3.sql # Lab 3 solutions
├── SQLQuery Lab 4.sql # Lab 4 solutions
├── SQLQuery Lab 5.sql # Lab 5 solutions
├── SQLQuery Lab 7.sql # Lab 7 solutions
├── SQLQuery Lab 8.sql # Lab 8 solutions
├── SQLQuery Lab 9.sql # Lab 9 solutions
├── SQLQuery Lab 10.sql # Lab 10 solutions
├── SQLQuery Lab 11.sql # Lab 11 solutions
├── SQLQuery Lab 12.sql # Lab 12 solutions
└── try.sql # Experimental queries
Before you begin, ensure you have:
- Microsoft SQL Server (2019 or later) installed and running.
- SQL Server Management Studio (SSMS) installed for executing SQL scripts.
- Basic knowledge of SQL to understand and execute the scripts.
-
🔄 Clone the Repository:
git clone https://github.com/jaypatel342005/Database-Management-System---I.git
-
📂 Navigate to the Project Directory:
cd DBMS-I -
💻 Open SQL Files: Open
.sqlfiles (e.g.,SQLQuery Lab 1.sql) using SQL Server Management Studio.
-
🗃️ Create a Database: Use the following SQL command to create a database:
CREATE DATABASE DBMS_Labs; GO
-
📂 Switch to the Database:
USE DBMS_Labs; GO
-
📥 Execute SQL Files:
- Open a
.sqlfile in SSMS. - Execute the script to create tables, insert data, and run the queries.
- Open a
-
🔎 Modify and Experiment:
- Test new queries.
- Customize table designs or modify existing queries for better understanding.
Contributions are welcome to make this project even better! Here's how you can contribute:
-
🍴 Fork the Repository:
- Click on the "Fork" button on the top-right corner of this repository.
-
🌿 Create a Branch:
git checkout -b feature/YourFeature
-
✏️ Make Your Changes and Commit:
git commit -m "Add YourFeature" -
🔼 Push to the Branch:
git push origin feature/YourFeature
-
🔄 Open a Pull Request:
- Go to your forked repository.
- Click on "Compare & Pull Request".
This repository is licensed under the MIT License. See the LICENSE file for details.
For queries or feedback:
Made with ❤️ by Jay Patel
- Better Structure: Ensured a clean and readable hierarchy.
- Error-Free Commands: Fixed SQL syntax and adjusted for clarity.
- Clear Usage Instructions: Added steps for easier understanding.
- Consistency: Maintained uniformity in formatting and styles.