The document describes the creation of two tables - a STUDENT table with student details and enrollment information, and a COURSE table with course details. It then inserts data into both tables, relating students to courses via a foreign key. It runs several queries on the tables to select, filter and join the data.
The document describes the creation of two tables - a STUDENT table with student details and enrollment information, and a COURSE table with course details. It then inserts data into both tables, relating students to courses via a foreign key. It runs several queries on the tables to select, filter and join the data.
The document describes the creation of two tables - a STUDENT table with student details and enrollment information, and a COURSE table with course details. It then inserts data into both tables, relating students to courses via a foreign key. It runs several queries on the tables to select, filter and join the data.
3.SELECT enrollment_no, s_name, student_class, birthdate, address, city, state,
courseno, SPI FROM STUDENT LEFT JOIN COURSE ON STUDENT.courseno=COURSE.course_no, WHERE coursename='Database Management System'; 4. select * from STUDENT WHERE(CITY='Baroda'); 5. select * from STUDENT WHERE(SPI>=7.00); 6. select * from STUDENT WHERE BIRTHDATE like '%1990%' OR BIRTHDATE like '%1992%';
8. SELECT * FROM COURSE JOIN STUDENT ON COURSE.course_no = STUDENT.courseno;
9. select * from STUDENT ORDER BY SPI DESC; 10.select * from STUDENT WHERE s_name like 'S%'; 11.select * from STUDENT WHERE s_name like 'S%' AND s_name like '%n';
select * from STUDENT WHERE BIRTHDATE like '%1990%' OR BIRTHDATE like '%1992%';
SELECT "COURSE"."MAX_MARKS" as "MAX_MARKS" FROM "COURSE";