DBMS PR 3
DBMS PR 3
Create Tables:
NOTE:Insert 10 records
9. Write a query to add a new column phone_number (VARCHAR) to the Students table.
10. Write a query to modify the column gender in the Students table to gender (CHAR(1))
(i.e., store only the first letter of gender).
11. Write a query to find all students whose first name starts with the letter 'J'. Display
first_name, last_name, and email.
12. Write a query to find all courses that contain the word "Systems" in their name. Display
course_name, course_code, and credits.
first_name VARCHAR(50),
last_name VARCHAR(50),
gender VARCHAR(10),
email VARCHAR(100)
);
course_name VARCHAR(100),
course_code VARCHAR(20)
);
10. Write a query to modify the column gender in the Students table to gender (CHAR(1))
UPDATE Students
11. Write a query to find all students whose first name starts with the letter 'J'. Display
FROM Student1
12. Write a query to find all courses that contain the word "Systems" in their name.
Display
FROM Courses1