Question: Write the SQL statement to create a five-field table to contain sample student information. The constraints that need to be satisfied by the attributes of
Write the SQL statement to create a five-field table to contain sample student information. The constraints that need to be satisfied by the attributes of this table are as follows:
- the attribute First_Name is mandatory and can have up to 16 characters,
- the attribute Last_Name is mandatory and can have up to 16 characters,
- the attribute Date_Of_Birth is of type date is required,
- the StarID field identifies each student and is 8 characters long
- the GPA field is numeric that can be 2 digits with 1 decimal place.
Be sure to select column names, types, and constraints that are appropriate based on the description above.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
