Question: Question 3: Further SQL (15 marks) You have been given the following specifications of a simple database for keeping track of lectures and those who
Question 3: Further SQL (15 marks) You have been given the following specifications of a simple database for keeping track of lectures and those who presented the lecture at a national Biological Sciences conference (note that primary keys are shown underlined, foreign keys in bold). You should run your SQL to demonstrate that it works correctly, and paste in the statements used plus the output from Oracle. PRESENTER (Presenterne PresenterName, Biography. InstitutionNamele LECTURE (Lecture No, LectureName, Description, Theme, Capacity, Date and Time, Presenter No) Based on the table specifications provided, answer the following questions. Each question is worth 3 marks, a. Give the SQL to create the PRESENTER table. Choose appropriate data types. None of the attributes should be allowed to be null. Include the primary key constraint. b. Give the SQL to create the LECTURE table. Use appropriate data types and include the primary key and foreign key constraints. Referential integrity should be set such that if a presenter is deleted from the database, any lectures that he or she is running will also be deleted. c. Give the SQL to add your own record to the PRESENTER table. Include your name, 'Murdoch University as your institution, and make up a short (10-20 words) biography. d. Give the SQL to add the attribute VenueName to LECTURE. There are three possible venues: Building A Building B and Building C, which should be enforced by the SQL definitione e. Give the SQL to record the fact that all lectures have had their capacity increased by 10
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
