|
Livestream Link for Office Hours |
Livestream Office Hours Spring 2022: Sunday 7:00pm-10:00pm, Monday and Wednesday 5:15pm-6:15pm or by appointment I will not be in Zoom outside of class and office hours. If you select the link and I am not in Zoom yet, you will be placed into a waiting room. Please be patient and wait for office hours or class to begin. |
|
Week 15: IT Specialist 201 Database certification exam (4/26-5/5) |
Video: Certification Test Preparation |
|
|
IT Specialist 201 Database Exam Information and Resources |
Video: Certification Test Preparation |
|
|
IT Specialist Database exam objectives |
|
|
Handout: SQL Quick Reference |
|
|
Handout: SQL Operators (summary) |
|
|
Handout: SQL Server Functions (summary) |
|
|
SQL Server Glossary of Terminology (from Microsoft's website) |
|
|
SQL Server Cheatsheet |
|
|
Basic SQL Cheatsheet |
NOTE: This is a webp file that you can download and view in your browser. |
|
SQL Commands Cheatsheet |
NOTE: This is a webp file that you can download and view in your browser. |
|
1. Database Design |
1.1 Given a scenario, design tables for storing data
• Identify entities, rows/records, columns/fields
1.2 Given a scenario, identify the appropriate primary key
• Primary key, composite/compound key
1.3 Given a scenario, choose data types to meet requirements
• Definition and importance of data types; how data types affect storage
requirements; data types for storing text, numbers, dates and times, and
Boolean values
1.4 Given a scenario, design relationships between tables
• How to establish relationships using primary and foreign keys, entityrelationship diagrams (ERDs), referential integrity
1.5 Normalize a database
• Reasons for normalization, how to normalize a database to third normal
form (3NF)
1.6 Given a scenario, identify data protection measures
• Backups, restore, principle of least privilege , GRANT, WITH GRANT
OPTION, REVOKE, purpose of roles
|
|
2. Database Object Management using DDL |
2.1 Construct and analyze queries that create, alter, and drop tables
• Create, alter, and drop tables by using proper ANSI SQL syntax; NULL and
NOT NULL
2.2 Construct and analyze queries that create, alter, and drop views
• Create, alter, and drop views by using proper ANSI SQL syntax; purpose of
views
2.3 Construct and analyze stored procedures and functions
• Input and output parameters, return values, purpose of stored procedures
2.4 Given a scenario, choose between clustered and non-clustered
indexes
• When to use clustered vs. non-clustered indexes, syntax for creating
indexes
|
|
Clustered and Nonclustered Indexes |
|
|
Heaps - tables without clustered indexes |
|
|
Create Unique Indexes |
|
|
Create Filtered Indexes |
|
|
3. Data Retrieval |
3.1 Construct and analyze queries that select data
• INNER JOIN, LEFT JOIN, RIGHT JOIN, CROSS JOIN (Cartesian product),
and FULL OUTER JOIN; self joins; combine result sets by using UNION and
INTERSECT; DISTINCT; column alias; computed columns 3.2 Construct and analyze queries that sort and filter data
• ORDER BY, WHERE, LIKE, BETWEEN, AND, OR, NOT, TOP (LIMIT), IN, NOT
IN, ANY, ALL, NULL, NOT NULL, comparison operators 3.3 Construct and analyze queries that aggregate data
• GROUP BY, HAVING, MIN, MAX, COUNT, AVG (AVERAGE), SUM
|
|
4. Data Manipulation using DML |
4.1 Construct and analyze INSERT statements
• INSERT INTO SELECT, INSERT INTO VALUES 4.2 Construct and analyze UPDATE statements
• Update data in a single table 4.3 Construct and analyze DELETE statements
• Delete data from a single table
|
|
5. Troubleshooting |
5.1 Troubleshoot data object management query failures
• Syntax and runtime errors
5.2 Troubleshoot data retrieval query failures
• Syntax and runtime errors
5.3 Troubleshoot data manipulation query failures
• Syntax and runtime errors
|
|
Understanding SQL Server Backup and Restore (youtube video) |
|
|
SQL Server Part 3 - System Databases, Backing Up and Restoring (WiseOwl Youtube Video) |
|
|
SQL Server Part 4 - Databases, Logins, Users, Roles and Schemas (Wise Owl Youtube Video) |
|
|
SQL Server Part 5 - Basic Table Design, Data Types and Constraints (Wise Owl Youtube Video) |
|
|
SQL Server Part 6 - Designing and Creating a Relational Database (Wise Owl Youtube Video) |
|
|
SQL Server Programming Part 1 - Stored Procedure Basics (Wise Owl Youtube Video) |
|
|
SQL Server Programming Part 2 - Stored Procedure Parameters (Wise Owl Youtube Video) |
|
|
SQL Server Programming Part 3 - Variables (Wise Owl Youtube Video) |
|
|
SQL Server Programming Part 4 - Output Parameters & Return Values (Wise Owl Youtube Video) |
|
|
SQL Server Programming Part 5 - IF Statements (Wise Owl Youtube Video) |
|
|
SQL Server Programming Part 6 - WHILE Loops (Wise Owl Youtube Video) |
|
|
SQL Server Programming Part 7 - User Defined Functions (Wise Owl Youtube Video) |
|
|
SQL Server Programming Part 8 - Temporary Tables (Wise Owl Youtube Video) |
|
|
SQL Server Programming Part 9 - Table Variables (Wise Owl Youtube Video) |
|
|
SQL Server Programming Part 13 - Dynamic SQL (Wise Owl Youtube Video) |
|
|
SQL Server Programming Part 14 - Transactions (Wise Owl Youtube Video) |
|
|
SQL Server Programming Part 15 - DML Triggers (Wise Owl Youtube Video) |
|
|
SQL Server Programming Part 16 - DDL Triggers (Wise Owl Youtube Video) |
|
|
DDL Commands In SQL |
|
|
Michael Fudge - Part 1: Create Table (DDL) and Insert Data (DML) |
|
|
Michael Fudge - Part 2: ALTER TABLE and add CONSTRAINTS |
This video is part two of a four-part series on SQL Data Definition and Data Manipulation commands. In this video we focus on the ALTER TABLE statement, using it to and remove columns, and various table-based constraints like CHECK, UNIQUE and the tricky FOREIGN KEY. |
|
Michael Fudge Part 3: Alter table (DDL), Insert, Update and Delete data (DML) |
This video is part three of a four-part series on SQL Data Definition and Data Manipulation commands. In this video we focus on the 4 statements that make up the data management / CRUD operations: INSERT, SELECT, UPDATE and DELETE. In addition we continue to improve the SQL script for our fictitious company, Spiffy Lube. NOTE: The video shows how to remove constraints in order to update tables |
|
SQL Server Queries Part 5 - CASE Expressions (Wise Owl Youtube video) |
|
|
SQL Server Queries Part 6 - JOINS (Inner and Outer Joins) Wise Owl Youtube Video |
|
|
SQL Server Queries Part 7 - Using Functions in Queries (Wise Owl Youtube Video) |
|
|
SQL Server Part 7 - Computed Columns (Wise Owl Youtube Video) |
|
|
SQL Server Queries Part 8 - Text Calculations (Wise Owl Youtube Video) |
|
|
SQL Server Queries Part 9 - Date Calculations (Wise Owl Youtube Video) |
|
|
SQL Server Queries Part 10 - GROUP BY and HAVING (Wise Owl Youtube Video) |
|
|
SQL Server Queries Part 11 - Subqueries (Wise Owl Youtube Video) |
|
|
SQL Server Queries Part 12 - Correlated Subqueries (Wise Owl Youtube Video) |
|
|
SQL Server UNION Query Example (youtube video) |
|
|
SQL UNION, INTERSECT, EXCEPT (youtube video) |
|
|
Michael Fudge - Part 1: Create Table (DDL) and Insert Data (DML) |
|
|
Michael Fudge Part 3: Alter table (DDL), Insert, Update and Delete data (DML) |
This video is part three of a four-part series on SQL Data Definition and Data Manipulation commands. In this video we focus on the 4 statements that make up the data management / CRUD operations: INSERT, SELECT, UPDATE and DELETE. In addition we continue to improve the SQL script for our fictitious company, Spiffy Lube. NOTE: The video shows how to remove constraints in order to update tables |
|
How to Solve SQL Problems |
|
|
Week 14(4/24-5/7): Project Showcase Peer Review, GitHub and ePortfolio |
Video: Week 14 Overview |
|
|
Directions for ePortfolio |
NOTE: If you have a current LinkedIn profile, you do NOT need to create a new one. Just add a link to your final project repository as indicated in the instructions. |
|
Week 13(4/17-4/24) Chapter 16 Transaction Processing, Chapter 17 Database Security and Term Project Showcase |
Video: Week 13 Overview |
|
|
Lecture/Demo: Chapter 16: How to Manage Transactions and Locking |
|
|
Chapter 16 Textbook Assignment Directions |
|
|
Lecture/Demo: Chapter 17: How to Manage Database Security |
|
|
Chapter 17: Textbook Assignment Directions |
|
|
Term Project Showcase Directions |
|
|
Chapter 16 slides |
|
|
Chapter 16 Exercise Solutions |
|
|
Chapter 17 slides |
|
|
Chapter 17 Exercise Solutions |
|
|
Week 12 (4/10-4/17): Chapter 15 - Coding Procedures, Functions and Triggers |
Video: Week 12 Overview |
|
|
Lecture/Demo: Chapter 15 How to code stored procedures, functions and triggers |
|
|
Textbook Assignment Directions |
|
|
Final Project Milestone #3 Lab Assignment |
Section #3 of milestone #3 |
|
Choice between SPs, Functions, Views, and Triggers |
Choice between SPs, Functions, Views, and Triggers |
|
SQL Server Programming Part 1 - Stored Procedure Basics (Wise Owl Youtube Video) |
|
|
SQL Server Programming Part 2 - Stored Procedure Parameters (Wise Owl Youtube Video) |
|
|
SQL Server Programming Part 7 - User Defined Functions (Wise Owl Youtube Video) |
|
|
SQL Server Programming Part 15 - DML Triggers (Wise Owl Youtube Video) |
|
|
SQL Server Programming Part 16 - DDL Triggers (Wise Owl Youtube Video) |
|
|
Creating simple stored procedures |
|
|
Simple Insert, Update and Delete Trigger Tutorial |
|
|
SQL file that creates the db and tables for the trigger exercise |
|
|
Murach Chapter 15 slides |
|
|
Chapter 15 Exercise Solutions |
|
|
Week 11 (4/3-4/10): Chapter 14 - Coding Scripts |
Video: Week 11 Overview |
|
|
Lecture/Demo: Chapter 14 How to Code Scripts |
|
|
Chapter 14 Textbook Assignment Directions |
|
|
Chapter 14 Lab Assignment |
|
|
SQL Server Programming Part 3 - Variables (Wise Owl Youtube Video) |
|
|
SQL Server Programming Part 5 - IF Statements (Wise Owl Youtube Video) |
|
|
SQL Server Programming Part 6 - WHILE Loops (Wise Owl Youtube Video) |
|
|
SQL Server Programming Part 8 - Temporary Tables (Wise Owl Youtube Video) |
|
|
SQL Server Programming Part 9 - Table Variables (Wise Owl Youtube Video) |
|
|
SQL Server Programming Part 11 - Common Table Expressions (CTEs) (Wise Owl Youtube Video) |
|
|
SQL Server Programming Part 12 - Cursors (Wise Owl Youtube Video) |
|
|
Murach Chapter 14 slides |
|
|
Chapter 14 Exercise Solutions |
|
|
Week 10 (3/20-3/27): Chapter 13 - Views and Chapter 9 Functions |
Video: Week 10 Overview |
|
|
Lecture/Demo: Chapter 9 How to Work with Functions |
|
|
Chapter 9 Textbook Assignment Directions |
|
|
Wages script (need for textbook assignment) |
|
|
Chapter 9 Lab Assignment Directions |
|
|
Lecture/Demo: Chapter 13 How to Work with Views |
|
|
Chapter 13 Textbook Assignment Directions |
|
|
Final Project Milestone #3 Directions - Creating Views |
This is section #2 of milestone #3. |
|
Youtube Video: SQL Server Queries Part 7 - Using Functions in Queries (Wise Owl Tutorials) |
|
|
Youtube Video: SQL Server Queries Part 5 - CASE Expressions (Wise Owl Tutorials) |
|
|
Murach Chapter 9 slides |
|
|
SQL Server Developers Factsheet |
|
|
SQL Server Functions - cheat sheet |
|
|
SQL Server Date time Function Cheat Sheet |
|
|
Chapter 09 Exercise Solutions |
|
|
Creating Views |
|
|
Murach Chapter 13 slides |
|
|
Chapter 13 Exercise Solutions |
|
|
Week 9 (3/13-3/20): Chapter 6 Subqueries |
Video: Week 9 Overview |
|
|
Lecture/Demo: Chapter 6 How to Code Subqueries |
|
|
Textbook Assignment Directions |
|
|
Lab Assignment Directions |
IMPORTANT: Task #3 is the only one that requires subqueries! The rest of the assignment is a review of information we have covered throughout the semester! PLEASE READ: After you create the testcorp database, when you query the Order table, you will need to put it in brackets to use the table because SSMS thinks it is a keyword. Use [Order] when you refer to the table and everything should work fine. Example: SELECT * FROM [Order] |
|
Chapter 6 slides |
|
|
Chapter 06 Textbook Examples |
|
|
SQL Server Queries Part 11 - Subqueries (Wise Owl Youtube Video) |
|
|
Week 8(3/6-3/13): Chapter 5: Summary Queries |
Video: Week 8 Overview |
|
|
Lecture/Demo: Chapter 5 Aggregate (Summary) Queries |
|
|
Chapter 5 Textbook Assignment Directions |
|
|
Final Project Milestone #3 Directions - Aggregate Functions |
Milestone #3 has 3 different sections. This is section #1. |
|
Ch 5 Jeopardy (optional) |
Play the game and test your knowledge |
|
SQL Server Extensions (Extra Credit Assignment) |
|
|
Murach Chapter 5 slides (abridged) |
|
|
Chapter 05 Textbook Examples |
|
|
Youtube Video: SQL Server Queries Part 10 - GROUP BY and HAVING (WIseOwl Tutorials) |
|
|
Youtube Video: SQL Aggregation queries using Group By, Sum, Count and Having |
|
|
SQL Server Queries Part 10 - GROUP BY and HAVING (Wise Owl Youtube Video) (copy) |
|
|
SQL Server Queries Part 12 - Correlated Subqueries (Wise Owl Youtube Video) (copy) |
|
|
Week 7 (2/27-3/6): Chapter 7 - Inserting, Updating and Deleting Data and Term Project Milestone #2 |
Video: Week 7 Overview |
|
|
Lecture/Demo: Chapter 7 Inserting, Updating and Deleting Data |
|
|
Textbook Assignment Directions |
|
|
Final Project Milestone #2 Directions - Adding Data to Tables |
|
|
Term Project Mini-Showcase 1 Directions |
|
|
Murach Chapter 7 slides |
|
|
Chapter 07 Textbook Examples |
|
|
Week 6 (2/20-2/27): Chapter 11 - Creating tables using SQL and Chapter 12: Creating tables using SSMS |
Video: Week 6 Overview |
|
|
Lecture/Demo: Chapter 11 Creating a Database and its' Tables using SQL |
|
|
Textbook Assignment Directions - Chapter 11 |
|
|
Lecture/Demo: Chapter 12 Creating a Database and its' Tables using SSMS |
|
|
Textbook Assignment Directions - Chapter 12 |
|
|
Final Project Milestone #2 Directions - Creating tables and constraints (not due until 3/6) |
Make sure you have gotten feedback on final project milestone #1 and incorporated any changes into your tables BEFORE you begin working on milestone #2! |
|
Tutorial on constraints |
|
|
SQL Server Part 5 - Basic Table Design, Data Types and Constraints (Wise Own Youtube Video) |
|
|
SQL Server Part 6 - Designing and Creating a Relational Database (Wise Own Youtube Video) |
|
|
Murach Chapter 11 slides |
|
|
Chapter 11 Exercise Solutions |
|
|
Murach Chapter 12 slides |
|
|
Chapter 12 Exercise Solutions |
|
|
Week 5(2/13-2/20) Database Design Lab for Term Project Milestone: Database Design |
Video: Week 5 Overview |
|
|
Final Project Milestone #1 Directions |
|
|
Week 4 (2/6-2/13): Chapter 8 - Data Types and Chapter 10: Database Design |
Video: Week 4 Overview |
|
|
Lecture/Demo: Chapter 8 |
|
|
Lecture/Demo: Chapter 10 Database Design |
|
|
Chapter 10 Textbook Assignment Directions |
|
|
Functional Dependency in DBMS |
|
|
Database Normalization and Primary Keys |
|
|
Chapter 8 Terms |
|
|
Murach Chapter 8 slides |
|
|
Chapter 08 Textbook Examples |
|
|
A Simple Guide to Five Normal Forms in Relational Database Theory |
|
|
Normalization Exercise |
|
|
Murach Chapter 10 slides |
|
|
Chapter 10 Exercise Solutions |
|
|
Week 3 (1/30-2/6): Chapter 4-Retrieving Data from Multiple Tables |
Video: Week 3 Overview |
|
|
Lecture/Demo: Chapter 4 Key Points |
|
|
Chapter 4 Textbook Assignment Directions |
|
|
Chapter 4 Lab Assignment Directions |
|
|
Chapter 4 terms |
|
|
Murach Chapter 4 slides |
|
|
Youtube Video: SQL SERVER UNION QUERY EXAMPLE |
|
|
Youtube Video: SQL UNION, INTERSECT, EXCEPT |
|
|
Youtube Video: SQL Server Queries Part 1 - Writing Basic Queries (from WiseOwl) |
|
|
Youtube Video: SQL Server Queries Part 6 - JOINS (Inner and Outer Joins) (from WiseOwl) |
|
|
Youtube Video: SQL Server Queries Part 2 - ORDER BY (Sorting in Queries) (from WiseOwl) |
|
|
Youtube Video: SQL Server Queries Part 3 - WHERE (Criteria in Queries) (from WiseOwl) |
|
|
Youtube Video: SQL Server Queries Part 4 - Calculated Columns in Queries (from WiseOwl) |
|
|
Week 2 (1/23-1/30): Chapter 2- Using SSMS & Chapter 3 - Retrieving data from a single table |
Video: Week 2 Overview |
|
|
Lecture/Demo: Chapter 2 Key Points |
|
|
Chapter 2 Textbook Assignment Directions |
|
|
Filegroup backup and restores |
|
|
Lecture/Demo: Chapter 3 Key Points |
|
|
Chapter 3 Textbook Assignment Directions |
|
|
SQL LIKE Operator |
|
|
SQL Wildcard Characters |
|
|
Chapter 2 terms |
|
|
Murach Chapter 2 slides |
|
|
Chapter 3 terms |
|
|
Murach Chapter 3 slides |
|
|
With Ties Information |
With ties looks for values that match the last item in the list and displays them. It makes the most sense for rankings. For example, if you wanted to know the top 5 GPAs in a graduating class, you would want to know if other students had the same GPA as the 5th student (they should all have the 5th rank). It should be noted that SQL uses the column specified in the ORDER BY clause to determine which rows have "tie" values. |
|
w3schools SQL Tutorial |
Topics: - SQL Home
- SQL Intro
- SQL Syntax
- SQL Select
- SQL Select Distinct
- SQL Where
- SQL And, Or, Not
- SQL Order By
- SQL Select Top
- SQL Like
- SQL In
- SQL Between
|
|
Week 1 (1/14-1/23): Course Information, Chapter 1- Intro to Relational DB & SQL |
Video: Course Overview |
|
|
Instructor Welcome Message |
|
|
Course Syllabus |
|
|
College Syllabus |
|
|
Course Assignment Schedule |
Please print for future reference |
|
Campus Safety Video |
|
|
Lecture/Demo: Chapter 1 Key Points |
|
|
1. Link to SQL Server Developer Edition Download |
|
|
2. Link to SSMS download |
|
|
3. Murach database download |
|
|
4. Northwind and Pub database download |
|
|
5. Link to WorldWide Importer database download |
|
|
Chapter 1 Terms |
|
|
Chapter 1 terms |
|
|
Murach Chapter 1 slides |
|
|
OPTIONAL: Database Resources and Software |
Murach Textbook Website |
|
|
eBook: MS SQL Server (tutorialspoint) |
|
|
eBook: Introducing Microsoft SQL Server 2016 |
|
|
Handout: SQL Quick Reference |
|
|
Handout: SQL Server Functions |
|
|
Handout: SQL Operators |
|
|
Handout: SQL Server Data Types |
|
|
Steve Stedman SQL JOIN Posters |
|
|
Murach database download |
|
|
Northwind & Pub sample databases |
|
|
WorldWideImporters Full OLTP Database |
Be sure to download the OLTP version of this database backup and - for easiest access - to your SSMS backup folder. If you are unsure where this is, simply start to do a database restore (right-click Databases in SSMS Object Explorer) to find the correct folder. Save the backup there and SSMS will not have a problem with access. |
|
World Wide Importers sample database |
|
|
SQL Server Developer and Express Downloads |
|
|
Download SSMS |
|
|
Microsoft Imagine NMC Web Store |
|
|
Free Code Format - Code Conversion Utility |
|
|
LucidChart |
|
|
Get a Free LucidChart Account |
Follow the instructions on this page to obtain a free LucidChart Educational Account. |
|
Draw.io online charting tool |
|
|
Office 365 Download Site |
Microsoft Corporation offers a free copy of MS Office 365 for students. This includes Word, Excel, PowerPoint and Access. This is an excellent opportunity for students! |
|
FreeDataGenerator.com |
|
|
GenerateData.com |
|