Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Advances In Spatial Databases 2nd Symposium Ssd 91 Zurich Switzerland August 1991 Proceedings Lncs 525

Authors: Oliver Gunther ,Hans-Jorg Schek

1st Edition

3540544143, 978-3540544142

More Books

Students also viewed these Databases questions