SQL Level 2 (Advanced Querying)

Course Length: 6hrs (1 Day)

In today's competitive environment, information is one of the most important factors in determining the success of an organization. If you are able to manage and retrieve information efficiently, you can streamline the organization's processes and give it a competitive edge. As the organization grows, you will need to handle large amounts of data. Under such circumstances, you might need to query multiple tables simultaneously and with increasing frequency. You must step up the speed of generating query output to cope with the increasing demands of data storage, management, and retrieval.

Learning Objectives:
In this course, you will work with advanced queries to manipulate and index tables. You will also create transactions so that you can choose to save or cancel the data entry process. You will:

- Use subqueries to generate query output.
- Manipulate table data by inserting and updating records in a table and deleting records from a table.
- Manipulate the table structure.
- Create views, manipulate data through views, modify the view structure, and drop views.
- Create indexes on table columns and drop inefficient indexes.
- Mark the beginning of a transaction, roll back a transaction, and commit a transaction.

Target Student:
Students should have basic computer skills, SQL skills, and be familiar with concepts related to database structure and terminology.

Course Outline:
Section 1: Using Subqueries to Perform Advanced Querying

Search Based on Unknown Values
Compare a Value with Unknown Values
Search Based on the Existence of Records
Generate Output Using Correlated Subqueries
Filter Grouped Data Within Subqueries
Perform Multiple-Level Subqueries

Section 2: Manipulating Table Data
Insert Data
Modify and Delete Data

Section 3: Manipulating the Table Structure
Create a Table
Create a Table with Constraints
Modify a Table's Structure
Back Up Tables
Delete Tables

Section 4: Working with Views
Create a View
Manipulate Data in Views
Create Aliases
Modify and Delete Views

Section 5: Indexing Data
Create Indexes
Drop Indexes

Section 6: Managing Transactions

Create Transactions
Commit Transactions