COURSE OUTLINE UCLA EXTENSI ON MGMNT X 414.61 DEPARTMENT OF ENGINEERING, I NFORMATION SYSTEMS & TECHNICAL M ANAGEMENT Course Number & Title: Server Course Author(s): Author(s) Affiliation: Part I - Introduction to Structured Query language (SQL) using SQL Richard Patlan Capital Programs, UCLA Database Design & Website Development Phone: 310-206-5908 626-221-8435 Fax: E-Mail: rpatlan@capnet.ucla.edu COURSE CATALOG DESCRIPTION : This hands on course covers the fundamentals of Structured Query Language (SQL). SQL is an ANSI (American National Standards Institute) standard computer language for accessing and manipulating database systems. SQL works with database programs like MS Access, DB2, Informix, MS SQL Server, Oracle, Sybase, etc. Designed for indivduals new to SQL, the course begins with an overview of SQL and how SQL statements are used to retrieve and update data in a database. Students will start by creating basic select statments and progress into the more intermediate features of SQL. This will include using keywords such as SELECT, UPDATE, DELETE, INSERT, WHERE, and others. In addition, course will cover basic table joins, sub-queries, if statements, cast and covert statments and much more. The queries presented will use Microsoft SQL Server PREREQUISITE: THIS COURSE IS FOR THOSE INDIVIDUALS WITH LITTLE OR NO SQL EXPERIENCE. BASIC KNOWLODGE OF WINDOWS SOFTWARE IS RECOMMENDED. Using Structured Query Language(SQL) Page 0 of 9
COURSE GOALS AND OBJECTIVES: History of Structures Query Language Understand and use Data Manipulation Language Understand and use Data Definition Language Introduction of basic SQL Language COURSE M AJOR TOPI CS: Overview of Structured Query Language (SQL): History of SQL and the American National Standards Institute (ANSI); SQL Database Tables: Understanding Relational Database Management Systems; Creating tables, coulums and rows; SQL Data Manipulation Language (DML): Used to retrieve and update the contents of a database; Data Definition Language (DDL): Used to create database objects such as tables, indexes, etc. SQL Queries: Using SQL syntax to excute quereies; and getting and using data result sets; RECOMMENDED READINGS: Course Text(s): Handouts: Files Book Scripts for Sample Database Adventureworks database Project (Pick one) Project 1 - Team Functionality Requirements Project 2 - Student Course Functionality Requirements GRADING: BIO Class Particiaption: Quizes Test: Project: 20 points 80 points 200 points 300 points 400 points Introduction to SQL Page 1 of 9
Hello and welcome to the class: I m looking forward to the class and working with you on learning basic Structured Query Language (SQL). My name is Richard Patlan. I will be teaching the Introduction to Structured Query Language (SQL) course online. I received a bachelor of arts in Public Administration from CUS Fresno and a master s degree in Urban Planning from UCLA. I have worked in the Information Technology area for the last 17 years. I currently work for Capital Programs at UCLA as a DBA/Programmer Analyst. I maintain three production SQL servers and two development SQL servers. I am also responsible for database design and development. In addition, I am responsible for the design and development of our four department websites. You can reach me by phone or email. Syllabus Outline Week by Learning Topics Week 1 Install and Introduction to SQL Server Management Studio(SSMS). Setup databases Week 2 - Overview of Understanding Basic SQL L Week 3 - Understand Filtering, Calculated fields and System Functions Week 4 - Summaring and Grouping Data; and Using Subqueries Week 5 - Table JOINS and Combining Queries Week 6 - Inserting, Updating and Deleting Data Week 7- Creating TABLES and VIEWS Week 8 - Stored Procedures and Transaction Processing Week 9 - Using Cursors and creating Triggers and Indexs; Begin Final Project Week 10 - Final Project Introduction to SQL UCLA Extension, MGMNT X 414.61 2
Course Calendar Mon Tue Wed Thurs Fri Sat Sun Week 1 Module 0: Exercises; DUE Week 2 Module 1: Exercises; DUE: Week 3 Module 2: Exercises; DUE: Week 4 Module 3: Exercises; DUE: Week 5 Module 4: Exercises; DUE: Week 6 Module 5: Exercises; DUE: Week 7 Module 6: Exercises; DUE: Week 8 Module 7: Exercises; DUE: Week 9 Module 8: Exercises; ; Work on Final Project Week 10 Work on Final Project DUE: Final Project Introduction to SQL Page 3 of 9
Module 0 - Intoduction to SQL Server Management Studio Introduction: The goal of this week is to Introduce SQL Server Management Studio(SSMS) and have you create the book sample database. Also, please read and complete Lecture and Exercise on SSMS. Lecture: Review Lecture Module 0 Complete Exercise for Module 0 Complete Exercises Create Book Smaple Database (Do Not Turn IN) Module 0 - Using_SQL_Lecture_SSMS Module 0 - SQLClass_Exercises_SSMS Module 0 - CreateBookSampleDatabase_Exercises Module 1 - Overview of Understanding Basic SQL Introduction: The goal of this unit is to give you a basic understanding of Structured Query Language definition and its basic syntax. Lecture: Review Lecture Module 1 Complete Exercises for Module 1 (Do Not Turn IN) Complete Module 1 Reading: Chapter 1,2,3 & 4 Module 1_Using_SQL_Lecture Module 1_SQLClass_Practice_Exercises Introduction to SQL UCLA Extension, MGMNT X 414.61 4
Module 2 - Understand Filtering, Calculated fields and System Functions Introduction: The goal of this unit is to give you a basic understanding of Data Manipulation Language using basic SQL syntax Lecture: Review Lecture for Lecture 2 Complete Exercises for Module 2 (Do Not Turn IN) Complete Module 2 Reading: Chapter 5,6,7,8 Module 2_Using_SQL_Lecture Module 2_SQLClass_Practice_Exercises Module 3 - Summaring and Grouping Data; and Using Subqueries Introduction: The goal of this unit is to give you a basic understanding of queries, sub-queries and table joins Lecture: Review Lecture for Module 3 Complete Exercises for Module 3 (Do Not Turn IN) Complete Module 3 Reading: Chapter 9,10 & 11 Module 3_Using_SQL_Lecture Module 3_SQLClass_Practice_Exercises Introduction to SQL Page 5 of 9
Module 4 - Table JOINS and Combining Queries Introduction: The goal of this unit is to give you a basic understanding of how to use table JOINa and combine SELECT statements Lecture: Review Lecture for Module 4 Complete Exercises for Module 4 (Do Not Turn IN) Complete Module 4 Reading: Chapter 12, 13 & 14 Module 4_Using_SQL_Lecture Module 4_SQLClass_Practice_Exercises Module 5 Inserting, Updating and Deleting Data Introduction: The goal of this unit is to give you a basic understanding of inserting, retrieving, updating & deleting data Lecture: Review Lecture for Module 5 Complete Exercises for Module 5 (Do Not Turn IN) Complete Module 5 Reading: Chapter 15, 16 Module 5_Using_SQL_Lecture Module 5_SQLClass_Practice_Exercises Introduction to SQL UCLA Extension, MGMNT X 414.61 6
Module 6 Creating TABLES and VIEWS Introduction: The goal of this unit is to give you a basic understanding how to create base TABELS and VIEWS Lecture: Review Lecture for Module 6 Complete Exercises for Module 6 (Do Not Turn IN) Complete Module 6 Reading: Chapter 17 & 18 Module 6_Using_SQL_Lecture Module 6_SQLClass_Practice_Exercises Module 7 Stored Procedures and Transaction Processing Introduction: The goal of this unit is to give you a basic understanding and using stored procedures. We will also cover basic understanding of managing transactions Lecture: Review Lecture for Module 7 Complete Exercises for Module 7 (Do Not Turn IN) Complete Module 7 Reading: Chapter 19, 20 Module 7_Using_SQL_Lecture Module 7_SQLClass_Practice_Exercises Introduction to SQL Page 7 of 9
Module 8 Using Cursors and creating Triggers and Indexs Introduction: The goal of this unit is to give you a basic understanding and using cursors as well as using loop statements. We will also cover basic understanding of constriants Lecture: Review Lecture for Module 8 Complete Exercises for Module 8 (Do Not Turn IN) Complete Module 8 Reading: Chapter 21, 22 Module 8_Using_SQL_Lecture Module 8_SQLClass_Practice_Exercises Module 9 Final Project Introduction: The goal of this unit is to allow you to complete the FINAL Project Module 10 Final Project Introduction: The goal of this unit is to allow you to complete the FINAL Project Introduction to SQL UCLA Extension, MGMNT X 414.61 8