this video is going to guide you through the hands-on project for our database class the deliverables for this project they're going to be basically what you see here first we're going to create some new tables for patient visits to our database right now up to this point did not include any of the tables that we had diagrams for patient visits early on in one of the earlier projects we're going to add a dyad those tables to our database diagram and create the foreign key relationships it's going to connect it to the rest of our tables
then we're going to create some stored procedures that are going to allow inserts into those tables rather than users inserting the data directly we're going to have some test data that we're going to use to insert some data that we can play with and we're going to use indexes with that test data so we're going to learn a little bit about indexes in this project we're going to add a column to the patient table that's going to store the date modified and then we're going to write a trigger that inserts the modified date anytime somebody
doesn't update on that table so if they change something about the patient it'll put a new date in there and then finally we have some reports that our users are going to need that we're going to create some views for those reports so that the users can see some standard data in their database so let's get started so the first thing we need to do is create our two tables so we're going to right click on tables click on new table and you're going to fill this in with some columns so your columns are going
to look like this so we have about seven columns here just note that we are not going or we are not going to allow Knolls on any of our columns except for the doctor note so we're going to allow knowles on doctor notes but none of the other columns and be sure to use the same data types that i used here as well so pause the video and create this you know and put these fields in but do not save it yet we have one more step we have to do before you save this so
go ahead and put these columns in and then come back to the video and we'll do one more step okay the next step we have to create our keys so to do that to create our keys we are going to have to highlight two of these fields so normally we would right-click and just hit set primary and that would set our primary key but we don't want to do that for for this thing because we want our primary key based on our database diagram we did in an earlier project to be a composite of both
of these so we're going to create a composite key so you have to hold down the shift key and select both at the same time so when we select both at the same time you can right click set primary so now that you have these two set as primary you'll be able to hit ctrl s to save the table you're going to get a dialog box that's going to ask you for the name of the table you can see I've already created mine over here it's going to be patient visits and the other table will
be patient visit symptoms which we're going to I'm going to show you here in just a second so this is our patient visits table pause the video create your primary keys then come back and we'll create the other table so our other table we're gonna I'm going to just going to show you what it looks like here so here is my patient visit symptoms it has the patient key in the visit date these are also going to be primary keys so we're going to do the same procedure we did before you'll highlight both right click
set primary I'm going to save mine by hitting ctrl s when you do that it's going to ask you for the name of the table and again it's going to patient visit symptoms as you can see over here so go ahead and do that and then come back to the video next we have to create our database diagram not create but edit our database diagram so you're going to click on database diagrams open up the database diagram we created previously so here's my database diagram notice we don't have our other tables in the diagram so
we have to add those tables and create the relationships so I'm going to right click and I'm going to click add table and I'm just going to click add for both of these tables when I do that you'll see them appear over here we're going to want to move these around so it's a little bit easier to work with it in his diagram so in my case I've moved mine to the left of the patient dropped patients if you've been following along your diagram probably looks similar to this so I moved mine over here to
the left hand side alright so now we have to create our relationship so first I'm going to relay patient to patient visits on the patient key so I'm going to click and drag this field so make sure your primary key table is set to patient and patient key and then your foreign key table is patient visits patient key so they're both connected on the patient key field I'm going to click OK I'm going to click OK again and it creates our relationship we have to do the same thing between patient visits and patient visit symptoms
so again I'm going to click and drag from patient visits the patient visit symptoms now if you recall we want to use two fields so we have two fields that are the primary key in both of these tables it's not enough for us to use just the patient key to join these two or two to create that relationship because symptoms only relate to a single visit and the only thing that defines a visit uniquely is both the visit date and the patient key together so we have to make sure that we select patient visit on
both sides I'm sorry the visit date on both sides of this relationship so these would be connected based on on those fields so I'm going to click OK and you should do the same one thing we're going to want to do here and we've done this before but before you click OK here I'm going to switch the enforce foreign key constraint let's switch that to an O and the reason we're not going to enforce that is because this is going to be a one-to-one relationship meaning that they both have to exist in each of these
tables but that causes an insert anomaly in the fact that if we try to insert a patient visit for which we don't have a symptom yet it's not going to allow us to insert and likewise you can insert an a symptom unless we have a visit so we have to turn off the enforcement of that firing key constraint to allow us to insert one at a time so set that to no and you're going to click OK it'll create the relationship and you'll see that we have the key on both sides meaning it's a one-to-one
relationship which we've done before we did that with drought the patient and group assignments one thing also that we need to do here well one thing I want to show you if you forgot to click that button you could also right-click go to properties and you could set that option over here as well so if you forgot to do it it's ok you can do it over here later on if you don't when you right-click if you don't have the option to show the properties in some versions of management studio if you just click on
a relationship this window will automatically appear on the right-hand side now when you're done with this window you can always close it in some versions of management studio this is the first deliverable for our project what I'd like you to do is we're going to take a screenshot of this but before you take a screenshot bring up a your notepad in windows type your name so that when you take the screenshot we can do both and the way you take a screenshot of both is you can use the screen snipping tool if you're using VMware
you can use the screen snipping tool on the host but really you can take a screenshot of the entire VM if you're not using VMware and you're doing this on your regular computer the screen snipping tool is a great tool to do that I'll show you right now when I click on the screen snipping tool down here at the bottom and this is included with Microsoft Office I click new I draw a box around what I want to save and it becomes an image and I can save it and this is going to be the
first liberal that you're going to submit with the project all of these deliverables can be in one Word document you don't have to submit them separately although you can zip them up and submit them as a zip file as well so when you've completed the database diagram be sure to close it and make sure you save it when you close it if it asks you to save it next we're going to discuss store procedures but before we do that I'm going to demonstrate why it's important to use things like stored procedures for database security to
demonstrate this I've created a simple application that works with our our database with our westlake database so in this simple application don't worry too much about all the code on here I'll show you the salient part but here we just connect to a database that's all this code is doing it's connecting to to my westlake database as you can see and once it connects down here its first going to do a select from the patient table and then it's going to start building a table in the in a web page so this tables going to
have a header that shows you all the columns that we're looking at and I have a little spelling error here I'll fix that then down here it's going to iterate through all of those this is a while loop that's going to iterate through all the rows that it finds in the database it's going to output those rows into our table and then it's going to output a form where we can add a new record to our database so if somebody fills out this form and click Submit that's going to post the data to this little
web page and it's going to dynamically construct an insert statement so what happens here this looks familiar right this is just a regular insert statement just like we've been writing in class when we insert data to our database but the fields or the values are being dynamically populated from the data that was posted from our user from our web app so these are all the variables that were posted into this web page and it's going to dynamically create this statement and for dimension two purposes I am exporting that insert statement so you can see what
it looks like see how it was dynamically generated and then it's going to execute that statement so let's take a look at this example so here's the webpage for my for my little example and here is that same database table in my database so we just refresh this so that the same there we go so here's my my data that's in my web app it matches the data that you see here in my actual database and what I'm going to do is I'm going to add a record so I'm going to add one two three
it's going to be Brian C Green and there's my phone number so I'm going to add this by clicking the little button on the end it's going to post that data so here's the information that got posted into the web page and then this is the sequel statement that it generated and you can see the values over here so this is just like the sequel statement that we run but this gets run from our web app and likewise if I come over here I'm going to refresh this and now you can see Brian green in
here now let me demonstrate a sequel injection attack let's say I have a bad user that comes along and decides to insert a patient called bad but for the phone number they put something like this right so take a look at this code that's in here now I'm going to execute this we're going to look at the insert statement and then we're going to look at the results that we end up with so I'm going to click the button to insert it now look what happened my patients are all gone why did they get removed
well take a look at this statement up here and just to make it clear I'm going to copy this statement and I'm going to put it into sequel and by the way you'll notice that my patients are gone here as well so here's the sequel statement and just to make it easier to read I'm going to add some carriage returns here so it looks a little bit more like what we're used to so this is the sequel statement now take a look I've got the insert statement this part makes sense right but then after that
insert statement is complete it's then going to run this delete from patient statement with no parameters which means it deletes everything then I have two dashes and then this is what was dynamically on the end of that statement so all of this that you see here was done dynamically up to this point the field that we inserted is from here to here and then here's the the output from our from the variable so the dashes just make this a comment if I didn't have those dashes the statement would fail and I'll show you so if
I run this the statement fails because there's an extra quotation mark at the end it doesn't know what to do with that but if I make it a comment it's going to ignore it so it's going to ignore all that code so it's pretty easy to do a sequel injection attack like this I have to be in the right database though for this to work there we go all right so that's basically how we can do a sequel injection attack so to prevent that there's a various ways that we can prevent a sequel injection attack
one way is our application so this application which is very poorly written it's very simple and very poorly written I could try to catch all the possible ways the people would try to inject bad data into my database and tried to inject commands into my database so that's one option to do this but in many cases we don't want to rely on the database I'm sorry the application developer to do that and also layers in security is important which you'll learn about in a security course but the other way we can prevent this in our
database is not allow people to insert data and instead use stored procedures to insert the data on behalf of the user so we're going to create a simple stored procedure that does that that allows you to insert data so the stored procedure that first I'm going to show you how to create is going to be for the patient table just to demonstrate the concept for you so let me go back into my regular westlake database I'm using for the lab here so the easy way to do this the way that your book shows you how
to do this you're going to right click on patient script table insert - because this is the statement that we want our stored procedure run is this insert statement so now I've got the the bare-bones the basic information to create this insert statement so my first step in creating a stored procedure is to add the create procedure statement here so now it's going to create the procedure and I gave it a name I called it USP underscore record patient now the next thing is we have to have some variables so I'm going to add my
variables now there's a couple different ways you can add the variables you could just type them in like I just did here and by the way I'm going to put a I'm going to tab these over so it's easier to see them you could just type them in if you don't want to type each one individually if you open up your patient column you could click and drag these so that it automatically puts the column name in here for you instead of typing it that way you avoid any mistyped column names notice that I put
the @ symbol in front of all of these variable names you have to have the @ symbol in front of a variable and also make sure that the data types here match the data types that you see for the columns for the actual table you want to make sure that these data types are the same so in mine my patient key is n char 15 but if for some reason in yours it's n char 10 make sure you use the right data type and then finally down here and their values this is just our placeholder
we have to put our actual values here for our column names so I'm going to go ahead and put those in whoops there we go all right so now when I run this when I execute this it's going to create our stored procedure it's going to have a variable for each one of our column names that we want to insert then the insert statement that we created along with the variable names down here which so the variable names will get substituted with what was passed in - excuse me passed into this stored procedure so let
me go ahead and run that I'm gonna hit execute alright now I have an object already in my database called record patient because I've already created this stored procedure before so I'm going to go down here to program ability I'm going to refresh my list and I'm going to delete this now that that procedure is removed I can create it again and it works and if I come over here store procedures I can refresh and there's a record patient now you are going to have to create one you do not have to create the record
patient I did that for demonstration purposes the one that you do have to create is record patient symptoms and record patient visit and you're going to use the same method that I use to create the record patient so use the same method so you're going to right-click do a create an insert - so that it creates the insert statement add the create procedure portion up up here at the top and make sure you change the values to the variable names that you used up here you don't necessarily have to use the column names as the
varible aims technically you could use anything you want go ahead and pause the video and create those to store proceed I'm going to walk you through how to test them and then we're going to actually insert some data with the stored procedures but we're going to do it from a file that's provided to the lab so once you have these stored procedures if you want to insert data so I'm going to test inserting a patient so let me close this so I'm going to go to in my under program ability stored procedures and remember you
might have to click refresh since you just created these I'm going to right click on my stored procedure I'm going to click on execute stored procedure that's going to bring up a dialog box where I can fill in some variables so I've typed in some values over here these are the values that are going to get inserted by a my stored procedure and when you click OK you'll see over here that it actually runs the stored procedure so now this is pretty complicated how it creates the stored procedure in theory you could have run the
stored procedure I'll show you sort of just the bare bones of what you would need to execute the stored procedure so if all you typed was get rid of this here on the top if we only type this it would actually work and we don't need these ends on the front either technically you could get rid of those ends although it's good to have that there we didn't really talk about that in class but that would be the proper form but this is so technically we could run the stored procedure just like this so if
I were to execute the statement as you see it here so just the exact name of the stored procedure all the variable names going to go ahead and hit execute here and it ran and if I were to go to my patient table I should see all these new patients I added one of them I added with the so this one here we go down here at the bottom so Sam Bob Jones I added by using the GUI and then Jack Joe Smith I added by running it right from the UI so we're going to
use this to insert data into our database so I'm going to go ahead and close this so you will find that there is a file for this for this project this is what the file looks like you can double click on this file and it will open it in in your management studio so once you have it in management studio it looks pretty much just you know what we just did we have our execute statements to run these stored procedures that's going to insert some some data so if I just hit execute up here it
should run you'll see down here one row affected because it inserted that data now here's the problem if you look at these three statements here and I scroll down mine failed and if you're wondering why it failed take a look at the error message could not find stored procedure record patient symptoms and if I look over here I'm going to go look at my stored procedures so I have a record patient symptoms and a record patient but there's a USP on the front of both of those so in the book when they provided this the
sample they forgot to put the USP underscore over here now for yours you may have different names for your stored procedures then we're used for the book and if that were the case you have two options you can either remake your stored procedure or rename your stored procedure so you could rename it by right-clicking on it you can rename it you could execute it again with a new name but with an alter - or you could just come in here and change the name of the procedure so if you have a couple lines that you
want to run alone just like we've done before you highlight the lines that you want to execute click execute and now we have our records once you have your your data in your tables you're going to test it by running a select statement as you've seen I've done I've done here I'd like you to run statements similar to these but replace your name or my name with your name so it shows up as a column so you're going to highlight these two and they're going to click on execute and you're going to take a screenshot
of this area here you don't necessarily need to have these inserts but you definitely wanna have a screenshot including the Select statements and the results of those select statements down here at the bottom and they'll look just like mine you'll have the same data since we both use the same file and this will be the next deliverable in addition you're also going to include the code from your stored procedures you don't need to take a screenshot you can just copy and paste the code so when you right-click on a stored procedure you can click on
modify and then you can copy and paste this code into your deliverable into your document that you turn in for the lab along with this screenshot here so we can see the stored procedure and I'll be able to see your answer or your select statement showing the day that you inserted and it should have your name in the first column so pause the video and when we come back we're going to start looking at indexes so here I've selected only the data from my patient visits table and if you take a look at this it's
it's sort of ordered in a certain way right so we have our patient key and our visit date and if you notice all of the same patients are grouped together so regardless of how I insert these records they'll always be grouped together I'll show you an example so I'm going to run this stored procedure that's going to insert another record into my patient visit now take a look this is patient number one - 24 so really if it's going to be in the same order that we have down here if I run this insert statement
and then I do this select statement again I should see that record inserted right here between the August 27th and September 7th records so it should kind of get sandwiched right in between there with this new record so let me run this and now we're going to select from our table and take a look at what happened that record is in fact now sandwiched right in between it went right where it's supposed to go and notice I'm not doing an order by Clause in here now I could add an order by so I could put
you know an order by and put some field name in here like order by weight for example and if I order it by weight it might be a little bit different as the you know the weights fluctuate but by default it is going to order it a certain way so what causes that to happen is indexes and I'm going to describe a little bit how these indexes work we haven't really talked about indexes too much in class so I'd like to kind of just talk about a little bit so take a look at this fake
table that I've created here this is just a maybe a little directory little telephone directory now most of the time if we have a telephone directory the easiest way to store the records in our directory if we're going to you know use it on paper I know nobody uses phone books anymore we all use you know the internet Google Voice and things like that to dial for us but but assuming it's you know nineteen eighty seven and we're still using a telephone book if you're looking up a telephone number the most convenient way to do
that is by last name imagine a directory that looks like this one where the names have no order to them so in order to find a name in the phonebook I'd have to start leafing through every single page now in a small directory like say one that you have at home that's not that hard you can probably get through all the pages in a few minutes but think about a phone book that you get from the phone company that has one hundred and seventy five thousand phone numbers in it there's no way you're going to
be able to go through one hundred and seventy-five thousand phone numbers to find the one number that you're looking for so when we get a directory we all know this it's going to be in alphabetical order so that we can more easily look up those records a database kind of works the same way what we do is we pick a field in our database to be an index how we're going to look up records and almost every database table has at least one index in fact if you create a table with a primary key that
primary key is by default what's called a clustered index and I'll show you how that works so here I've reordered this data I now have a an index this is a clustered index and basically what a clustered index does for us is it's going to reorder the data make sure the data is always in the correct order as its stored in our database in the table so the physical storage of the file is going to be in the correct order and if you think about it that makes sense because when our database goes to lookup
records when somebody does a query for a specific name say in this directory being in alphabetical order it's more predictable the database engine doesn't have to scan the full table looking for a record it can go directly to the record that it needs now one problem with this type of index is every time I insert a record as we just saw in the demonstration is that each time I insert a new record it's going to have to move around these records so for example if I was going to insert Benjamin Franklin into these records it
has to go between Robert Morris and Alexander Hamilton so in that second position so I have to move all the records down oops here so I have to move all the records down one position then insert that record so as you can guess it takes a bit longer to do writes into your database table so that is a clustered index now there's another type of index if let's say we also want to be able to look up by city and of course a telephone directory can't do this on paper but we can do this in
a database you can see create a non-clustered index where we create sort of a separate table so it's a separate physical storage of those indexes and the indexes have pointers to the rows that contain that data so if we were doing a search by city instead of doing a full table scan on the actual table it can scan our non-clustered index that you see on the right hand side and it could use that to do the lookup but notice that a non-clustered index does not affect the position of our records in our database table so
let's take a look at the indexes for patient visits so I'm going to open up the patient visit table on the left-hand side over here and we're going to open up indexes so you can see this first index PK underscore patient visits which is a clustered index so that's the kind that's going to reorder the records in our table that's created automatically if you right click on it you can certainly take a look at it and you could edit it if you want it to but when you created the table and you made the primary
key it automatically created this clustered index now the thing about indexes is you can only have one clustered index because clustered indexes reorder the physical storage of the data in the table you can't have multiples of those because you can only store it physically one way so additional indexes have to be non clustered so you can always have one clustered index but all the additional indexes need to be non clustered so to create a new non-clustered index I'm going to click new index I'm going to right click and click new index new non-clustered index that's
going to bring up a dialog similar to this one so I'm going to give it a name so I'm going to make n index for the depression level so I'm going to call it idx patient visit depression level ID X just so remember that it's an index we do have to add the columns going to click on add I'm going to select the column that I want to use in this case depression level so now I'm going to have a index for depression level so if your frequent doing lookups for the depression level it will
use that non-clustered index so it's going faster to look up records so any fields that we know we're going to query on periodically we definitely want to have an index to make it faster although it can impact the performance of our database because those indexes have to be maintained and they could become fragmented and you have to periodically do some maintenance to keep those indexes working but in many cases if you don't do an index it's going to cause issues as well so I'm going to click OK and that's going to create our index so
now I have two indexes so you're going to do this query again ok so we're going to do this query another time in fact you can also try inserting new records and you're going to run this query and see if it changes anything in the output so that's going to be the next deliverable you're going to answer questions number one two and three which ask you number one what does the order look like before we did the index how is it ordered and then we're going to create the index and then you're going to talk
about if this order changed and why or why not and remember that we created a non-clustered index so we have a clustered index which was initially created when we created our table automatically then we've created a non-clustered index did it affect the output of the table in other words did it affect the physical storage of the table and why or why not so next we're going to create a trigger so let me close this window we'll start from scratch here so if you take a look at our patient table we have some columns here but
we're going to add a new column we're going to add a column for the modified date so every time somebody doesn't update on the patient table we want to show that it was modified at that date in time give us a little bit of auditing since this is a little Hospital database you know they have to do some audit logging so we're going to add a column to do that so you're going to right-click on patient and you're going to go to design and you're going to add an additional column so your column that you're
adding is going to be date modified the data type is going to be date and we are going to have to allow nulls because it's going to be null when it's initially inserted it's only going to get a date when somebody does an update so we're going to allow Knolls once you put that in ctrl s to save it you're going to see the asterisk go away at the top meaning that we've saved our table so now that we have that new column now we have to create a trigger that's going to populate that so
I'm going to come over here and hit refresh so you can see that column is now in our table so there's the column so now we're going to create a trigger to create a trigger you can come down here and you can right-click and do new trigger and this is the the basic skeleton of what a trigger looks like a lot of this stuff you don't need so I'm going to delete this out here you're going to put the trigger name so in my case my trigger name is going to be dbo dot trigger patient
modified so let me put that in we're going to do this on the patient table so I'm just going to click and drag patient in here and we're going to do it after an update so I'm going to get rid of all those other actions so after an update happens this trigger is going to run now the no count option you see here means that when this trigger runs it's not going to show you the results of the trigger in the UI which is kind of important a lot of people could confuse when they see
multiple results show up you know one row affected and then another row affected so we're just going to leave that in set no can on and then here is we're going to put the trigger logic so really what we're going to be doing is we're going to be updating the modify date so let me add that here so that makes sense but what do we update it with well we can't just put the date in here right because the date has to change every time somebody does an insert so it has to be dynamic so
luckily there is a function that sequel gives us you get date function and basically get date just gets the current date time I'll show you how this works I'm just going to write a little select statement down here we'll do select get date and notice it just gives me the current date time so get date function just substitutes the current date time now I have to add a where clause this is the part that you're going to do on your own we only want to update this where the patient key has a certain value you've
got a couple different ways to do this I'm going to tell you the way that I would do it is well here's the important thing when you write this trigger you want to make it so that if somebody is updating more than one record it can do multiple records so that's the first hint now if you just make patient key equal to a certain value it has to be a specific value but instead we want it to be in a range of values and where are we going to get that range of values here's your
second hint it's uh there is a table a sort of a virtual table and a trigger called inserted and that insert a table contains all the columns so we want to find the patient key where it's in the inserted table where that patient key is in the inserted tables you have to select a patient key from the inserted table so use that hint and create this trigger so do a select first from your patient table and when you do a select you're going to see all the records notice that our date modified is no on
all of our records then you're going to write a simple update statement so write an update statement that's going to update the patient table you're going to run that update statement you should see that it affects one row so it should have updated the phone number for example you don't have to update the phone number can be anything but just be sure that you put a where Clause in then you're going to run your select statement again and you should notice that you now have a date modified so you can see in my case I
now have a date modified of 2016 zero five to zero so I know when this was modified so you're going to do the same thing and turn in for the deliverable do a screen capture of what you see here so it should have your select statement the update statement the results of the select statement so you should see the results this is the last step here showing the date modified and be sure that you've done your Select statement like me where you have your name as student comma and then the asterisk that way we can
see your name in the first column so then take a screenshot of that and then we're gonna move on to the last step in this project which is executing some standard queries now in addition to the previous screen shot that you took also include a copy of your trigger you don't have to screenshot that you can just copy and paste it into your deliverable document but include that bigger as well if you don't have the trigger on the screen you'll just simply right-click on it and click modify and it will bring the trigger up on
the screen okay so next we're going to create some views I'm going to walk you through the first one just to show you the process so in the first one they want us to execute a query that retrieves the visit date and patient key for all patients that reported a depression level over five and turn that in so here's what we're going to do so since we know the records or the fields rather they're looking for is the visit date and the patient key that's what we're looking to retrieve and it has to be a
depression level the paid the field that are them sorry the column that contains those I'm sorry at the table that contains all of those columns is going to be patient visits so this is the one we're going to do the Select statement so I'm going to right click do script table as select - just so I not have to write it from scratch we don't need this stuff at the top I really just need the Select statement just like this now the only fields I need are the patient key the visit date I don't need
any of this other stuff so just those two fields and then we also need a where clause so we're going to put where and the field they want in the where clause is going to be depression level so I'm just going to click and drag depression level and they want greater than five so this should show me all patients with the depression level greater than five and there we go so these are the visits where the depression level is greater than five and the patient keys what I'd like you to do though when you create
these views is you're going to just like we did before you're going to put your name on the front so I'm just going to do Brian as student and then a comma and then my next field so now that's going to be in my field list so if I execute that I now see all three and finally in order to make this a view we're just going to put some code in here to make it a view so once you get it working - to actually run it you simply are to create a view for
that you're just going to put create view the name of the view so I'm going to give it a name we're going to do five of them so we're going to name them query 1 query to query 3 query 4 and query five so you're going to do that and then you're going to execute that and it creates the view and then if you like you can come over here and you could look at that view so I'm going to go to views there's query one I could right-click and I could do select top 1000
rows and there's my view so what I'd like you to do is two things for each one of the queries that you're going to do you're going to do the query so I'd like to see a screenshot of so in the screenshot you're going to submit five screen captures each screen capture is going to show the select statement that she rants are going to execute that select statement it's going to show the create view on the top and it's going to show the results down here at the bottom and it should include the student name
so you're going to have a select you're always going to have the student name here at the top you can always add that after you're done creating your your select statement you're going to highlight just the select execute it show it down here but you're going to show the create view query one query to query three and so forth as up here at the top which is going to help me know which question you're answering so you're going to do this for each one of those five so each one of these queries that you execute
is going to require some of the skills that you learned in the previous projects mostly project number six and seven so most of this is going to go back to what you've done in project six and seven you should be able to use those as a guide for the other the other four queries that you're going to do to create the other four views as I said for each one you're going to include the screen shot as I've shown you here if you have any questions let me know good luck thank you for watching