Question: Suppose we have a relation with the following schema: Student(name, age, address) Please complete the following tasks: 1) Please write the SQL expression to create

 Suppose we have a relation with the following schema: Student(name, age,

Suppose we have a relation with the following schema: Student(name, age, address) Please complete the following tasks: 1) Please write the SQL expression to create this table. Ensure to define name as the Primary Key. You do not need to create a domain for each attribute. You can simply use primitive data types for the attributes. You can decide yourself the appropriate datatypes for the attributes in the table; 2) Using SQL, please display all the information of the students from the table whose age is over 20. Please write two queries that use different ways for referring to the attributes in the SELECT clause; 3) Using SQL, change the name of the attribute "name" to "studentName" in the original table's schema. The data type of staffName is VARCHAR(10). The names of the table and other attributes remain unchanged

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!