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 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started