SQL Questions
SQL Questions
## create table student (student_id, name, gender, DOB, status, reg_date) with following constraints:
student_id primary key,
gender value as single character,
status default value should be 1,
reg_date default date from the system
## alter the student table to add contact number, this column can accept NULL values too
## update the record of the student whose name is ‘MINA’ and gender is ‘F’ to name = ‘MOHAN’ and
gender = ‘M’
## display the records of the students whose name starts with letter ‘man’ and gender = ‘M’
## display the records of the students whose contact number contain ‘570’ Or is NULL.
## create table Project (project_id (PK), project_name, student_id (FK; can be NULL)).
## alter the Project to increase the size of the column project_name to 100 character string.
## display the list of students who are not enrolled in any projects yet.
## count the number of students who are not enrolled in any projects yet.