0% found this document useful (0 votes)
2 views

Assignment 4

The document outlines an assignment to create a 'student' table with specified data fields and entries, including StudentID, Name, Major, GPA, and TutorID. It includes tasks to calculate average GPAs for all students and specifically for Finance and CIS majors, as well as to identify students with the highest GPAs overall and within each major. Additionally, it requires displaying the maximum GPA and StudentID for each major where the maximum GPA exceeds 2.

Uploaded by

MONIKA SINGH
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views

Assignment 4

The document outlines an assignment to create a 'student' table with specified data fields and entries, including StudentID, Name, Major, GPA, and TutorID. It includes tasks to calculate average GPAs for all students and specifically for Finance and CIS majors, as well as to identify students with the highest GPAs overall and within each major. Additionally, it requires displaying the maximum GPA and StudentID for each major where the maximum GPA exceeds 2.

Uploaded by

MONIKA SINGH
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

ASSIGNMENT-4

4.1: Create the table “student” and fill with the following data:
StudentID Name Major GPA TutorID
(Number (varchar2 (varchar2 (Number (Number
(5,0)) (25)) (15)) (6,3)) (5,0))
101 Bill CIS 3.45 102
102 Mary CIS 3.1
103 Sue Marketing 2.92 102
104 Tom Finance 3.5 106
105 Alex CIS 2.75 106
106 Sam Marketing 3.25 103
107 Jane Finance 2.9 102

4.2: Show the average GPA of all students.

4.3: Show the average GPA of Finance and CIS students.

4.4: Give the name of the students with highest GPA.

4.5: Show the students with highest GPA in each major.


** Display maximum GPA, StudentID under each major whose maximum GPA is greater
than 2

You might also like