i Question: Display the subject number, subject name, student number of student(s) who have received the highest mark in
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
i Question: Display the subject number, subject name, student number of student(s) who have received the highest mark in
i Question: Display the subject number, subject name, student number of student(s) who have received the highest mark in this subject, and mark. If there are more than one students with the highest mark, show all of them. Sort your results based on subject number and then student number. ERD: enroll student mark sno subject subno subname quota sname telno Has prerequisite CREATE TABLE student ( sno character(10) NOT NULL, sname character(10), telno character (10), CONSTRAINT student_pkey PRIMARY KEY (sno) ); CREATE TABLE subject subno character(5) NOT NULL, submame character(25), quota Integer, prerequisiteno character(5), CONSTRAINT subject_pkey PRIMARY KEY (subno), CONSTRAINT subject_prerequisiteno_fkey FOREIGN KEY (prerequisiteno) REFERENCES subject (subno) CREATE TABLE enroll sno character(10) NOT NULL subno character(5) NOT NULL, mark integer, CONSTRAINT roll_mark_check CHECK (((mark>-0) AND (mark <- 100))). CONSTRAINT roll pkey PRIMARY KEY (sno, subno),
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!