In this assignment,. you will write SQL commands to create a database and add data to them.   There will be two tables: Courses and Sections CourseNo --> Credits, Title CRN --> CourseNo, Sec, Campus, Days, MeetingTime, Capacity, Actual, Remaining, Instructor, StartDate, EndDate, Location The table design requirements are as follows (look at picture) Task A.  Create SQL commands to create the two tables Task B.  Import two tables worth of data

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
100%

In this assignment,. you will write SQL commands to create a database and add data to them.  

There will be two tables: Courses and Sections

CourseNo --> Credits, Title

CRN --> CourseNo, Sec, Campus, Days, MeetingTime, Capacity, Actual, Remaining, Instructor, StartDate, EndDate, Location

The table design requirements are as follows (look at picture)

Task A.  Create SQL commands to create the two tables

Task B.  Import two tables worth of data

 

This image represents a database table schema used for managing educational courses. Below is a detailed transcription of the schema:

**Table Structure:**

1. **Section Table:**
   - **CRN**
     - Field Type: Int
     - Allowable Values: Value between 10001 and 99999
     - Key: Primary key
   - **CourseNo**
     - Field Type: varchar(10)
     - Key: Foreign key
   - **Sec**
     - Field Type: Varchar(4)
   - **Campus**
     - Field Type: Varchar(10)
     - Allowable Values: Either Main, Web, Hopkinsville, or Zoom
   - **Days**
     - Field Type: Varchar(5)
   - **Time**
     - Field Type: Varchar(30)
   - **Capacity**
     - Field Type: Int
     - Allowable Values: 0 to 100
   - **Actual**
     - Field Type: Int
     - Allowable Values: 0 to 200
   - **Remaining**
     - Field Type: Int
     - Allowable Values: 0 to 200
   - **Instructor**
     - Field Type: Varchar(20)
   - **StartDate**
     - Field Type: Date
   - **EndDate**
     - Field Type: Date
     - Condition: EndDate must be greater than StartDate
   - **Location**
     - Field Type: Varchar(10)

2. **Course Table:**
   - **CourseNo**
     - Field Type: varchar(10)
     - Key: Primary key
   - **Credits**
     - Field Type: Int
     - Allowable Values: Greater than or equal to 0
   - **Title**
     - Field Type: Varchar(30)

This schema includes various fields involved in the course and section management, specifying data types, allowable values, and primary/foreign key constraints.
Transcribed Image Text:This image represents a database table schema used for managing educational courses. Below is a detailed transcription of the schema: **Table Structure:** 1. **Section Table:** - **CRN** - Field Type: Int - Allowable Values: Value between 10001 and 99999 - Key: Primary key - **CourseNo** - Field Type: varchar(10) - Key: Foreign key - **Sec** - Field Type: Varchar(4) - **Campus** - Field Type: Varchar(10) - Allowable Values: Either Main, Web, Hopkinsville, or Zoom - **Days** - Field Type: Varchar(5) - **Time** - Field Type: Varchar(30) - **Capacity** - Field Type: Int - Allowable Values: 0 to 100 - **Actual** - Field Type: Int - Allowable Values: 0 to 200 - **Remaining** - Field Type: Int - Allowable Values: 0 to 200 - **Instructor** - Field Type: Varchar(20) - **StartDate** - Field Type: Date - **EndDate** - Field Type: Date - Condition: EndDate must be greater than StartDate - **Location** - Field Type: Varchar(10) 2. **Course Table:** - **CourseNo** - Field Type: varchar(10) - Key: Primary key - **Credits** - Field Type: Int - Allowable Values: Greater than or equal to 0 - **Title** - Field Type: Varchar(30) This schema includes various fields involved in the course and section management, specifying data types, allowable values, and primary/foreign key constraints.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Follow-up Questions
Read through expert solutions to related follow-up questions below.
Follow-up Question

Task B.  Import the data shown in pictures into the two tables created.

Below is a transcription of the course schedule table for an educational setting. The table provides detailed information about various Computer Science (CSC) courses available:

| CRN   | Course  | Sec | Campus | Days  | Meeting Time          | Capacity | Actual | Remaining | Instructor    | Start Date  | End Date    | Location |
|-------|---------|-----|--------|-------|-----------------------|----------|--------|-----------|---------------|-------------|-------------|----------|
| 10246 | CSC 101 | 1   | Main   | MWF   | 09:30 am-10:20 am     | 35       | 0      | 35        | Clark Dunne   | 01/17/2023  | 05/12/2023  | BB 202   |
| 11023 | CSC 101 | 2   | Main   | TR    | 02:00 pm-03:15 pm     | 35       | 0      | 35        | Clark Dunne   | 01/17/2023  | 05/12/2023  | BB 202   |
| 10247 | CSC 125 | 1   | Main   | MW    | 08:00 am-09:15 am     | 35       | 0      | 35        | Ramona Jones  | 01/17/2023  | 05/12/2023  | BB 302   |
| 10897 | CSC 125 | 2   | Main   | TR    | 06:00 pm-09:00 pm     | 35       | 0      | 35        | Clark Dunne   | 01/17/2023  | 05/12/2023  | BB 202   |
| 11041 | CSC 145 | 1   | Main   | MW    | 12:30 pm-01:45 pm     | 35       | 0      | 35        | Ramona Jones  | 01/17/2023  | 05/12/2023  | BB 202   |
| 12921 | CSC 199 | 1   | Main   | TR    | 09:30 am-10:45 am     | 85       | 0      | 85        | Ramona Jones  |
Transcribed Image Text:Below is a transcription of the course schedule table for an educational setting. The table provides detailed information about various Computer Science (CSC) courses available: | CRN | Course | Sec | Campus | Days | Meeting Time | Capacity | Actual | Remaining | Instructor | Start Date | End Date | Location | |-------|---------|-----|--------|-------|-----------------------|----------|--------|-----------|---------------|-------------|-------------|----------| | 10246 | CSC 101 | 1 | Main | MWF | 09:30 am-10:20 am | 35 | 0 | 35 | Clark Dunne | 01/17/2023 | 05/12/2023 | BB 202 | | 11023 | CSC 101 | 2 | Main | TR | 02:00 pm-03:15 pm | 35 | 0 | 35 | Clark Dunne | 01/17/2023 | 05/12/2023 | BB 202 | | 10247 | CSC 125 | 1 | Main | MW | 08:00 am-09:15 am | 35 | 0 | 35 | Ramona Jones | 01/17/2023 | 05/12/2023 | BB 302 | | 10897 | CSC 125 | 2 | Main | TR | 06:00 pm-09:00 pm | 35 | 0 | 35 | Clark Dunne | 01/17/2023 | 05/12/2023 | BB 202 | | 11041 | CSC 145 | 1 | Main | MW | 12:30 pm-01:45 pm | 35 | 0 | 35 | Ramona Jones | 01/17/2023 | 05/12/2023 | BB 202 | | 12921 | CSC 199 | 1 | Main | TR | 09:30 am-10:45 am | 85 | 0 | 85 | Ramona Jones |
This table provides a list of computer science courses, including their course numbers, credit value, and titles.

### Course Information

- **CSC 101**: 3 Credits - Introduction to Problem Solving Using Computers
- **CSC 125**: 3 Credits - Internet and Web Page Design
- **CSC 145**: 3 Credits - Introduction to Programming
- **CSC 199**: 3 Credits - Introduction to Information Technology
- **CSC 199**: 0 Credits - Lab A
- **CSC 199**: 0 Credits - Lab B
- **CSC 199**: 0 Credits - Lab C
- **CSC 199**: 0 Credits - Lab D
- **CSC 199**: 0 Credits - Lab E
- **CSC 232**: 3 Credits - Introduction to Programming in C#
- **CSC 233**: 3 Credits - Programming in Python
- **CSC 275**: 3 Credits - Introduction to Game Programming
- **CSC 300**: 3 Credits - Discrete Structures
- **CSC 325**: 3 Credits - Advanced Object-Oriented Programming
- **CSC 345**: 3 Credits - Data Structures
- **CSC 385**: 3 Credits - Introduction to Special Topics
- **CSC 410**: 3 Credits - Parallel and Distributed Computing
- **CSC 415**: 3 Credits - Programming Languages
- **CSC 445**: 3 Credits - Computer Algorithms
- **CSC 488**: 3 Credits - Cooperative Education/Internship
- **CSC 530**: 3 Credits - Senior Software Project
- **CSC 540**: 3 Credits - Social, Ethical, & Professional Issues in the Information Age
- **CSC 585**: 3 Credits - Special Problems

### Notes

- Lab courses (CSC 199) carry 0 credits and accompany the main course to provide practical experience.
- Most courses in this list carry 3 credits, which indicates a full course load in a typical semester system.
Transcribed Image Text:This table provides a list of computer science courses, including their course numbers, credit value, and titles. ### Course Information - **CSC 101**: 3 Credits - Introduction to Problem Solving Using Computers - **CSC 125**: 3 Credits - Internet and Web Page Design - **CSC 145**: 3 Credits - Introduction to Programming - **CSC 199**: 3 Credits - Introduction to Information Technology - **CSC 199**: 0 Credits - Lab A - **CSC 199**: 0 Credits - Lab B - **CSC 199**: 0 Credits - Lab C - **CSC 199**: 0 Credits - Lab D - **CSC 199**: 0 Credits - Lab E - **CSC 232**: 3 Credits - Introduction to Programming in C# - **CSC 233**: 3 Credits - Programming in Python - **CSC 275**: 3 Credits - Introduction to Game Programming - **CSC 300**: 3 Credits - Discrete Structures - **CSC 325**: 3 Credits - Advanced Object-Oriented Programming - **CSC 345**: 3 Credits - Data Structures - **CSC 385**: 3 Credits - Introduction to Special Topics - **CSC 410**: 3 Credits - Parallel and Distributed Computing - **CSC 415**: 3 Credits - Programming Languages - **CSC 445**: 3 Credits - Computer Algorithms - **CSC 488**: 3 Credits - Cooperative Education/Internship - **CSC 530**: 3 Credits - Senior Software Project - **CSC 540**: 3 Credits - Social, Ethical, & Professional Issues in the Information Age - **CSC 585**: 3 Credits - Special Problems ### Notes - Lab courses (CSC 199) carry 0 credits and accompany the main course to provide practical experience. - Most courses in this list carry 3 credits, which indicates a full course load in a typical semester system.
Solution
Bartleby Expert
SEE SOLUTION
Knowledge Booster
Basic sql queries
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
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education