Question

Write SQL script to create a databases that matches Fig. 6-12. For examples, see Fig 6-5 and Fig. 6-6. Do not forget to specify Foreign keys.

TUTOR (TutorlD, CertDate, Status) STUDENT StudentlD, Read) Read 2.3 5.6 1.3 3.3 2.7 4.8 7.8 1.5 StudentID TutorID CertDate 100 1/05/2015 101 1/05/2015 102 1/05/2015 103 5/22/2015 104 5/22/2015 105 5/22/2015 106 5/22/2015 Status Active Temp Stop Dropped Active Active Temp Stop Active 3000 3001 3002 3003 3004 3005 3006 3007 MATCH HISTORY (MatchlD, TutoriD, StudentID StartDate, EndDate) MatchID TutoriD StudentID StartDate End Date 100 3000 1/1 1/10/2015 1 1/15/2015 3001 30022/10/2015 3003 5/28/2015 /15/2015 101 102 106 2 3 3/01/2015 103 104 104 6/15/2015 3004 6/01/2015 3005 6/01/2015 3006 6/01/2015 5 6 6/28/2015

0 0
Add a comment Improve this question Transcribed image text
Know the answer?
Add Answer to:
Write SQL script to create a databases that matches Fig. 6-12. For examples, see Fig 6-5...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Complete Task 4, 5, 6 Instructions Page 3 of 3 query.sql 1 -- Write your query...

    Complete Task 4, 5, 6 Instructions Page 3 of 3 query.sql 1 -- Write your query below and then click "Run Query" to execute it. To save multiple queries, click the "+" icon above. VE Task 4: </> The InstantRide User Satisfaction team is a core team for Instant Ride, and they focus on increasing the customer satisfaction. They want to learn the travel time for each ride in the system. You need to return the USER_ID, and the TRAVEL_TIME...

  • Given (Oracle) SQL Script " CREATE TABLE Members(    MemberID NUMBER(4) NOT NULL PRIMARY KEY,   ...

    Given (Oracle) SQL Script " CREATE TABLE Members(    MemberID NUMBER(4) NOT NULL PRIMARY KEY,    MFirst VARCHAR(25) NOT NULL,    MLast VARCHAR(25) NOT NULL,    Street VARCHAR(64) NOT NULL,    City VARCHAR(25) NOT NULL,    State VARCHAR(2) NOT NULL,    ZipCode NUMBER(5) NOT NULL,    CreditLimit NUMBER(7,2) NOT NULL,    Gender VARCHAR(1) NOT NULL CHECK (Gender IN('F','M')) ); CREATE TABLE Employees(    EmployeeID NUMBER(3) NOT NULL PRIMARY KEY,    EFirst VARCHAR(25) NOT NULL,    ELast VARCHAR(25) NOT NULL,   ...

  • Connect to mySQL DBMS, open a SQL script file, navigate to CityJail.sql file and execute it...

    Connect to mySQL DBMS, open a SQL script file, navigate to CityJail.sql file and execute it to create tables and populate with the supplied data. If there are any errors in the script fix them. It is your job to find the errors and correct them. This is important. You will need correct data for future exercises in this module. Then answer all questions. Write the answer below each question then take screen shot of the result. This script builds...

  • I need the answer to #2 listed above. This is the code I have come up...

    I need the answer to #2 listed above. This is the code I have come up with, and it is wrong. I am new to this and need help. group by sust.cida Q2 (7 Points) Show customer id (CID) for customers who have spent 30,000 or more with the company in 2019. Money is considered "spent" when the entire work order is completed as recorded in workorder.completionDate. (Correct query will find customer 2). Use ONE SQL statement. select workarder.id from...

  • Create SQL statements based on the given tables: Code to create the tables: CREATE DATABASE LAB...

    Create SQL statements based on the given tables: Code to create the tables: CREATE DATABASE LAB4DB; USE LAB4DB; CREATE TABLE CUSTOMER ( CUS_CODE int primary key, CUS_LNAME varchar(15), CUS_FNAME varchar(15), CUS_INITIAL varchar(1), CUS_AREACODE varchar(3), CUS_PHONE varchar(8), CUS_BALANCE float(8) ); INSERT INTO CUSTOMER VALUES('10010','Ramas','Alfred','A','615','844-2573','0'); INSERT INTO CUSTOMER VALUES('10011','Dunne','Leona','K','713','894-1238','0'); INSERT INTO CUSTOMER VALUES('10012','Smith','Kathy','W','615','894-2285','345.86'); INSERT INTO CUSTOMER VALUES('10013','Olowski','Paul','F','615','894-2180','536.75'); INSERT INTO CUSTOMER VALUES('10014','Orlando','Myron','','615','222-1672','0'); INSERT INTO CUSTOMER VALUES('10015','O''Brian','Amy','B','713','442-3381','0'); INSERT INTO CUSTOMER VALUES('10016','Brown','James','G','615','297-1228','221.19'); INSERT INTO CUSTOMER VALUES('10017','Williams','George','','615','290-2556','768.93'); INSERT INTO CUSTOMER VALUES('10018','Farriss','Anne','G','713','382-7185','216.55'); INSERT INTO CUSTOMER VALUES('10019','Smith','Olette','K','615','297-3809','0'); /*...

  • I need to write a SQL procedure that will look for sections with an enrollment less...

    I need to write a SQL procedure that will look for sections with an enrollment less than 6 with the following information: course.course_no, course.course_description, section.section_no, CountOfEnrollment (which is less than 6) Given the following tables: Course: Section: Enrollment: NM + ON OO COURSE_NO DESCRIPTION 10 Test Course 20 Intro to Information Systems 25 Intro to Programming 80 Programming Techniques 100 Hands-On Windows 120 Intro to Java Programming 122 Intermediate Java Programming 124 Advanced Java Programming 125 Java Developer I 130...

  • Please help we are suppose to explain what the C code does. This is the electronics database (6 pts) This problem is...

    Please help we are suppose to explain what the C code does. This is the electronics database (6 pts) This problem is based on Electronics database. Add some annotations to the following table to explain what the C program is doing in detail. Note that "void" is how C declares a function that does not return anything. You are expected to generalize or research svntaxes not mentioned in the lecture C Program Annotation void newPCproduct EXEC SQL BEGIN DECLARE SECTION;...

  • Use UBS! Type OS03 ASSIGNMENT 6 NOOR AS 1) Create the following charts for Manufacturing Account....

    Use UBS! Type OS03 ASSIGNMENT 6 NOOR AS 1) Create the following charts for Manufacturing Account. Account Description S.A. Account Code 7000/000 Manufacturing Account MA 7000/100 Raw Materials HD 7000/101 Opening Stock - Raw Materials J 7000/102 Purchase of Raw Materials J 7000/103 Carriage Inwards 7000/104 Custom Duty 7000/105 Closing Stock - Raw Materials CS 7000/199 TO 7000/200 Direct Labours HD 7000/201 Production Wages 7000/202 E.P.F. Contribution (Factory) 7000/203 SOCSO Contribution (Factory) 7000/299 TOS 7000/300 Factory Overheads HD 7000/301 Factory...

  • * myCompany.SQL Introduction to SQL Script file for ORACLE DBMS This script file creates the following...

    * myCompany.SQL Introduction to SQL Script file for ORACLE DBMS This script file creates the following tables: VENDOR, PRODUCT, CUSTOMER, INVOICE, LINE EMPLOYEE and loads the default data rows */ set echo on; set serveroutput on; select systimestamp from dual; show user; ALTER SESSION SET NLS_DATE_FORMAT = 'DD-MON-YYYY'; DROP TABLE LINE CASCADE CONSTRAINTS; DROP TABLE INVOICE CASCADE CONSTRAINTS; DROP TABLE CUSTOMER CASCADE CONSTRAINTS; DROP TABLE PRODUCT CASCADE CONSTRAINTS; DROP TABLE VENDOR CASCADE CONSTRAINTS; DROP TABLE EMPLOYEE CASCADE CONSTRAINTS; CREATE TABLE...

  • Need SQL statement: List the First and Last name of All Customers and whether or not...

    Need SQL statement: List the First and Last name of All Customers and whether or not they have a reservation. (Hint: the results should show the customer information even if they don’t have a reservation.) All Access Obje... 0« - Search... Tables Customer PostalCode 03053 01101 Phone - Click to Add 603-555-7563 413-555-3212 860-555-0703 781-555-8423 585-555-5321 401-555-4848 06108 01854 Guide Reservation 14590 02919 03740 Trip Trip Guides Queries Reservation Query 603-555-0456 814-555-5521 16412 A 04963 BE Trip Trip X X...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT