[SOLVED] CO226 - Database Systems - Lab Sheet Number06

30.00 $

Programming resource
Digital learning resource
Category:
✓ Practical programming resource
✓ Suitable for guided study and reference
✓ Tutor guidance available when needed

Description

5/5 - (1 vote)

Perform the following tasks using MySQL.

 

  1. Display all the existing databases in MySQL server host.
  2. Create a database called “BookShop”.
  3. Select or access the “BookShop” database.
  4. Within that database, create a table called “Book” with the following fields.
Field Name Type Field Size
BookID Text 5
Title Text 50
Author Text 30
Category Number
Price Currency 8,2
PubID Text 6

 

  1. Display the structure of the “Book” table.
  2. Create another table called “Publisher” with the following fields.
Field Name Type Field Size
PubID Text 6
PublisherName Text 30
RegisteredDate Date
Country Text 15

 

1

  1. Display the structure of the “Publisher” table.
  2. Display all the tables in the “BookShop” database.
  3. Remove the table “Book”.
  4. Remove the database “BookShop”.
Resource details

Understand the Task Before You Use the Resource

Review the requirements, identify the programming concepts involved, study the implementation and test your understanding with your own examples and modifications.