SQL Fundamentals is a foundational course focused on learning the basics of SQL through the T-SQL dialect used in Microsoft SQL Server. The course includes:
- Core SQL syntax and concepts
- Basic data manipulation (CRUD operations)
- Table creation and relational database design
- Practical work with real SQL queries and structures
- Task 1: Created a database named
MyDB. - Task 2: Defined and created three tables:
- Stores employee names and phone numbers
- Contains salary information and job titles
- Includes marital status, date of birth, and place of residence
- Task 1: Created a database named
HomeWorkwith aProducttable. Defined columns:ProductId,Name,ProductNumber,Cost,Count,SellStartDate. Populated the table with 10 sample records. - Task 2:
- Selected products with a quantity greater than 59
- Selected products priced above $3 and available since
20/08/2011
- Task 3: Increased the price of Sviatoch Chocolate by $0.25
- Task 1: Created a database with a maximum size of 100 MB and expected usage around 30 MB. Configured all necessary parameters. The transaction log was assigned to a separate physical disk (if available).
- Task 2: Designed a database for a wholesale warehouse with entities including suppliers, staff, and regular customers. Table fields were determined based on logical data modeling.
- Task 2: Created a database with a maximum size of 100 MB, with expected usage around 30 MB. Configured all required settings. The transaction log was placed on a separate physical disk (if available).
- Task 3: Normalized the provided table to eliminate redundancy and ensure database normalization principles.
- Task 1: Created a database named
MyJoinsDB. - Task 2: Created three tables:
- Stores employee names and phone numbers
- Contains salary information and job titles (e.g., general director, manager, worker)
- Includes marital status, date of birth, and place of residence
- Task 3: Performed JOIN operations to:
- Retrieve employee contact data (phone numbers, place of residence)
- Get birth dates and phone numbers of unmarried employees
- Get birth dates and phone numbers of all managers
- Task 1: Created a database named
MyJoinsDB. - Task 2: Created three tables:
- Stores employee names and phone numbers
- Contains salary information and job titles (e.g., general director, manager, worker)
- Includes marital status, date of birth, and place of residence
- Task 3: Used nested queries to:
- Retrieve employee contact data (phone numbers, place of residence)
- Get birth dates and phone numbers of unmarried employees
- Get birth dates and phone numbers of all managers
- Task 1: Reviewed existing indexes in the
MyJoinsDBdatabase created in previous lessons. - Task 2: Designed custom indexes for the previously created tables, providing justification for their necessity.
- Task 3: Created views for the following:
- Employee contact data (phone numbers, place of residence)
- Birth dates and phone numbers of unmarried employees
- Birth dates and phone numbers of all managers
- Task 4: Created a new database named
MyFunkDB. - Task 5: Created three tables:
- Stores employee names and phone numbers
- Contains salary information and job titles (e.g., general director, manager, worker)
- Includes marital status, date of birth, and place of residence
- Task 6: Developed stored procedures and functions to:
- Retrieve contact data of employees
- Get birth dates and phone numbers of unmarried employees
- Get birth dates and phone numbers of managers
- Open the
.sqlfile in SQL Server Management Studio (SSMS) or any compatible SQL editor. - Execute the queries step-by-step to:
- Create databases
- Create and populate tables
- Run SELECT, UPDATE, and other operations
- SQL Server installed (any edition)
- Basic understanding of SQL
- SQL client such as SSMS or Azure Data Studio
This project is licensed under the MIT License.