Assistance with SQL statements   Previous code; CREATE TABLE Lab4program_piershed (   code VARCHAR(5) PRIMARY KEY,   name VARCHAR(20),   tel VARCHAR(20) ); CREATE TABLE Lab4course_xxxx (   cid INT PRIMARY KEY,   name VARCHAR(20),   credits INT,   mycode VARCHAR(5),   FOREIGN KEY (mycode) REFERENCES Lab4program_xxxx(code) ); 1. Insert 3 records into your Lab4program_xxxx table. The code should be "CPS", "TECH", "MATH", or "BIO". Please copy/paste your SQL statements with the output message in the text that shows you successfully insert 3 records to your table. 2. Insert 4 records into your Lab4course_xxxx table with at least 2 different mycode. Please copy/paste your SQL statements with the output message in the text that shows you successfully insert 4 records to your table.

Database Systems: Design, Implementation, & Management
12th Edition
ISBN:9781305627482
Author:Carlos Coronel, Steven Morris
Publisher:Carlos Coronel, Steven Morris
Chapter7: Introduction To Structured Query Language (sql)
Section: Chapter Questions
Problem 21P: Write the SQL code to calculate the ASSIGN_CHARGE values in the ASSIGNMENT table in the...
icon
Related questions
icon
Concept explainers
Question

Assistance with SQL statements

 

Previous code;

CREATE TABLE Lab4program_piershed (
  code VARCHAR(5) PRIMARY KEY,
  name VARCHAR(20),
  tel VARCHAR(20)
);
CREATE TABLE Lab4course_xxxx (
  cid INT PRIMARY KEY,
  name VARCHAR(20),
  credits INT,
  mycode VARCHAR(5),
  FOREIGN KEY (mycode) REFERENCES Lab4program_xxxx(code)
);

1. Insert 3 records into your Lab4program_xxxx table. The code should be "CPS", "TECH", "MATH", or "BIO". Please copy/paste your SQL statements with the output message in the text that shows you successfully insert 3 records to your table.

2. Insert 4 records into your Lab4course_xxxx table with at least 2 different mycode. Please copy/paste your SQL statements with the output message in the text that shows you successfully insert 4 records to your table.

Expert Solution
steps

Step by step

Solved in 3 steps with 2 images

Blurred answer
Knowledge Booster
Query Syntax
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781305627482
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781285196145
Author:
Steven, Steven Morris, Carlos Coronel, Carlos, Coronel, Carlos; Morris, Carlos Coronel and Steven Morris, Carlos Coronel; Steven Morris, Steven Morris; Carlos Coronel
Publisher:
Cengage Learning
Oracle 12c: SQL
Oracle 12c: SQL
Computer Science
ISBN:
9781305251038
Author:
Joan Casteel
Publisher:
Cengage Learning