Question: PLEASE PROVIDE EXACT SQL MANAGEMENT STUDIO QUERIES (please include commas, parenthesis, indents as applicable). Screenshots preferred. 1a)Create a query that will also allow for the

PLEASE PROVIDE EXACT SQL MANAGEMENT STUDIO QUERIES (please include commas, parenthesis, indents as applicable). Screenshots preferred.

PLEASE PROVIDE EXACT SQL MANAGEMENT STUDIO QUERIES (please include commas, parenthesis, indents

1a)Create a query that will also allow for the tracking project ID for students that will contain letters and numbers. No two students can have the same project ID number.

1b)Create a query that will extend the length of student last names so that it can store up to 20 additional characters and force a last name to be entered in for new records. (If the NOT NULL after last_name in students table already takes care of forcing the last name of students, please confirm that)

1c)Insert 3 records in each table in correct order.

CREATE TABLE teachers ( teacher_id INTEGER PRIMARY KEY, last_name TEXT NOT NULL, subject TEXT NOT NULL, salary DECIMAL (10,2) ) CREATE TABLE students ( student_id INTEGER PRIMARY KEY, first_name TEXT NOT NULL, last_name TEXT NOT NULL, date_of_birth DATE, teacher_id INTEGER NOT NULL, FOREIGN KEY (teacher_id) REFERENCES teachers(teacher_id) )

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!