0% found this document useful (0 votes)
17 views

Task 1 - Introduction and Previews - Transcript

This document is an introduction to an advanced SQL class. The instructor, Harrison Kong, welcomes students and provides an overview of what will be covered in the class, including server functions, stored functions, stored procedures, triggers, and common table expressions (CTE), including recursive CTE. Examples are given of database tables that were modified from previous classes to include additional columns and relationships, such as items that are bundles containing other items, to demonstrate more complex queries that will be written using CTE.

Uploaded by

vietpenta1312
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
17 views

Task 1 - Introduction and Previews - Transcript

This document is an introduction to an advanced SQL class. The instructor, Harrison Kong, welcomes students and provides an overview of what will be covered in the class, including server functions, stored functions, stored procedures, triggers, and common table expressions (CTE), including recursive CTE. Examples are given of database tables that were modified from previous classes to include additional columns and relationships, such as items that are bundles containing other items, to demonstrate more complex queries that will be written using CTE.

Uploaded by

vietpenta1312
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 3

Hello and welcome to this class : Advanced Relational Database

and SQL
I'm your instructor Harrison Kong.
So this course is designed as a continuation of two of my
other classes: introduction to Relational database and SQL
an intermediate relational database and SQL
In those courses, we covered many basic and intermediate topics.
If you have not taken them, I would strongly recommend
that you take them first.
You will find the links to them in the supplemental materials
section under resources like you see here on the screen.
Also you'll find many, many useful website links
there as well.
And in case this is your first time taking a class with us, let
me give you a quick introduction of how the user interface
works here.
Since we will not be doing any coding in this task, now
would be a really good time to try these features.
If you would like.
You are on the Rhyme platform which gives you a cloud desktop
on the ... left side of your screen so you
can follow along as I type and perform tasks.
And on the right side you will see my instruction video, you
can pause the video to catch up.
You can also rewind or adjust the playback speed by clicking
on where it says 1X
You can make my side of the screen bigger by dragging
on the three vertical dots on the dividing line and dragging
it left and right.
Finally, you can also click anywhere on my side of the screen
and drag it to see what is out of the viewing area.
In this class, we will be doing most of our work in MySQL
Workbench and the relational database that we will be using
is MySQL from Oracle and everything is already
installed for you to start learning right away.
I just want to cover a few points here.
SQL does vary slightly between ... among database
vendors like MSAccess or Oracle.
and MySQL, but most of what we learn here would be
industry standard.
Also, a lot of what we will be doing today will require you to
have a database administrator privilege in real life, but
today you will have it. Some of the commands we will be using
are very powerful and can wipe out your database without
warning If you're not careful. In real life, they usually done
in a test environment before rolling out to the production
environment.
So please make sure you follow my instruction closely.
And lastly, we have limited time here in these classes, so it
is not possible to cover every topic if there are any subjects
that you would like to learn more, but they're not here,
please feel free to email me or email us so we can
incorporate them into future classes.
So let's take a quick look at what we will be building today.
So if you click on chrome.
If this is not your current screen, just click on Chrome down
here. And look at this Web interface that we used in the last
two classes... last class, actually.
So if you look at inventory, we have added a new column.
It's going to take a few seconds because this is the first
time we run it.
You can see we added a new column for quality on hand...
Sorry, "quantity on hand".
So this is the number of items that we have, ... on hand, ...
and then if you go to MySQL Workbench here to click on
this little icon,
that looks like a dolphin.
If this is not active on your screen, you initially you will
see this screen here.
Just just click on this local instance my sequel 80 then
it will just connect you to the database.
Also, it opens up all the workbooks that we will be using in
this class.
Ah, but I just want to show you.
... if you do right click here to refresh all and then
expand world_peace.
It should show you all the tables.
Just go ahead and select customer and then click on this little
lightning icon.
I want you to see that we added a column.
called "credit_limit" for of our customers, so we will be
using that in a task in just a few minutes.
So go ahead and close this tab.
... and this one also let's go ahead and look at ...
merchandise_item
So if you come down here and just click on this icon. I want you
show to show you that we have added other than the quantity
on hand, we also added a bundle
ID so there's some circular relationship going on here.
This item here is a bundle, and it contains some subitems
that are also in this table.
So there are levels of relationship going on here.
So let me show you how what it looks like.
So if we go back to the website, ... go back to the main Manu
and go to Offerings. Just look at ... let's scroll back up a little
bit. So if you look at this example here, Asian Bundle, you
expand that you will see that there are three subitems, but
this subitem, Japanese Bundle itself.
It also has subitems.
So if you opened that, there are levels of, ... of complexity
So we have bundles that in bundles, but these are all just
items in the same table.
So there is a kind of like ... recursive relationship, and we
will learn how to generate this query using common table
expression in this class.
So just want to show you what we will be covering in this
class. So let's go over here.
I'm going to going to disable your screen temporarily, so
we'll be covering server functions, stored functions stored
procedures and triggers.
So those are actually entities that get stored in the
database.
Common table expression is not an entity, but it just a
syntax that we use in SQL, So we will be covering
that and also the recursive version of common table
expression that we use to generate that report that we just
saw. So that's what we will be learning today.
I will see in the next task and we will start learning server
functions.
See you there!

You might also like