Question: Use SQL for the following 1. Create table Student (ROLL_NO, SNAME, MATHS, CHEM, PHY) with appropriate date types for columns 2. Insert five rows into
Use SQL for the following
1. Create table Student (ROLL_NO, SNAME, MATHS, CHEM, PHY) with appropriate date types for columns
2. Insert five rows into the table Student.
3. Calculate the total of marks and add column TOTAL to Student table.
4. Set the values of TOTAL for each row.
5. Calculate the average of marks and add column AVERAGE to Student table.
6. Set the values of AVERAGE for each row.
Step by Step Solution
3.42 Rating (168 Votes )
There are 3 Steps involved in it
1 CREATE TABLE IF NOT EXISTS Student ROLLNO int11 NOT NULL AUTOINCREMENT SNAME varchar255 NO... View full answer
Get step-by-step solutions from verified subject matter experts
