Question: Workshop - Week 8 MySQL Practical Exercise Exercise 1 This exercise is similar to week 5 . Students at this stage should be illustrated how

Workshop - Week 8 MySQL Practical Exercise
Exercise 1
This exercise is similar to week 5. Students at this stage should be illustrated how to create tables, alter tables, and write complex SQL queries.
Note: Use SQL commands to create the database, tables, records, and Queries.
Create the database sbrcommands and the following tables sailors, boats, and reserves which are reproduced as follows:
sailors(sid: VARCHAR(2) PK, sname: VARCHAR(7), rating:
SMALLINT, age: DOUBLE
boats(bid: VARCHAR(3) PK, bname: VARCHAR (10), colour:
VARCHAR(6)
reserves(sid: VARCHAR(2) FK, bid: VARCHAR(3) FK, day: DATE)
\table[[sid,sname,rating,age]]
\table[[22,Dustin,7,45.0],[29,Brutus,1,33.0],[31,Lubber,8,55.5],[32,Andy,8,25.5],[58,Rusty,10,35.0],[64,Horatio,7,35.0],[71,Zorba,10,16.0],[74,Horatio,9,35.0],[85,Art,3,25.5],[95,Bob,3,63.5]]
Sailors
\table[[sid,bid,Day]]
\table[[22,101,1010?98
 Workshop - Week 8 MySQL Practical Exercise Exercise 1 This exercise

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!