Question: Query 1. Write one DDL statement to perform the following two modifications. (1) Change the data type of GPA in Student table to allow a

 Query 1. Write one DDL statement to perform the following twomodifications. (1) Change the data type of GPA in Student table to

Query 1.

Write one DDL statement to perform the following two modifications.

(1) Change the data type of GPA in Student table to allow a GPA value of three decimal digits to be stored.

(2) Allow no NULL values in GPA column.

Query 2.

Write one DDL statement to add a new column AssignDate of date type in

ProjAssignment table, which should allow no null values. Because there are already existing rows in the table which have no AssignDate data, your DDL statement should define a default

value of current date in this column. When this statement is executed, it will therefore update the AssignDate of every existing row with a current date.

Query 3.

Write one DDL statement to add a new table Project into exam1. It contains the following three columns:

- ProjNum of char(3) type, which is the primary key of Project.

- Pname of varchar(30) type, which could be null. If it has a value, its first three characters must be 'UH2' or 'UB5'.

- Budget of smallmoney type, which cannot be null and must have aminimum of $1,500.

Student StulD GPA ProjAssignment Pno StulD

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!