
After this lecture you will know the four big SQL statements that are not involved in administrative aspects of a relational database. Additionally, you will see how what we are doing in SQL statements is what we do in Microsoft Access without SQL statements. Additionally, you will be exposed to some free software that will make your first database creation a lot easier.
Here we will show how to use IDEs to create databases and a table both with and without SQL. The CREATE TABLE SQL command is not one of the big four statements because most of the time the database and tables are already set up for you. However it is good to understand CREATE TABLE so when you are in a position where the database does not allow you to create a database and table through the menus, you can do it in SQL.
Learn the basics of a SELECT statement, the statement pretty much everybody will have the ability to perform. It reads data from the database but does not change the contents of the database.
Learn how to qualify what data you read so you get exactly the data you want.
Use the BETWEEN clause to qualify what data you want.
Use the LIKE clause to qualify what data you want.
Use a sub SELECT to qualify what data you want.
This lecture shows how to use the functions available to get information from fields on the table.
This shows how to use aggregate functions like SUM and AVERAGE to get information from many rows at the same time from the table.
This shows how to use even more special techniques to get information.
The good news is that you already know the most important part of a DELETE statement, how to qualify what you want to delete.
Learn some techniques to be safe when you are deleting information from the database.
Just like the DELETE statement you already know the most important part, how to qualify what data you are updating.
Insert a single row into the table by listing fields and values, using unquoted numbers and quoted strings, with the primary key kept unique.
Learn how relational databases organize data into tables and fields, using normalization and joins for multi-table queries, and master the four SQL statements—select, insert, update, delete.
In this course we first get to understand how relational databases work. Relational databases are the backbone of how data is stored in the corporate world. Once we understand that, we focus on the four main SQL statements a business user and/or application programmer are likely to use. These four statements are SELECT(read data from the tables), INSERT(add row(s) to a single table), DELETE(delete rows from a single table), and UPDATE(change data in column(s) for selected records of a selected table). To do this we go into a number of related topics such as JOINs, VIEWs, functions, derived fields and more. The goal of the course is not just for you to learn the syntax of SQL statements. The goal of this course is for you to understand how databases are organized, the logic of them, the bigger picture of what 'relational' means, as well as how you can manipulate the data in them. In the course we will primarily use SQL Server, but reference Access and Excel a lot as most people without experience writing SQL will be more familiar with the concepts using these applications. What you know in Excel is relevant to databases. Functions are relevant. Constructing a formula is relevant. By the end of the class you will be very knowledgeable about relational databases and how to manipulate data using SQL.