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:

  1. the attribute First_Name is mandatory and can have up to 16 characters,
  2. the attribute Last_Name is mandatory and can have up to 16 characters,
  3. the attribute Date_Of_Birth is of type date is required,
  4. the StarID field identifies each student and is 8 characters long
  5. 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

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!