Professional Documents
Culture Documents
INSTRUCTION:
➢ Use the Sample Database Given in a File named GPAdatabase.sql to Answer the Question
QUESTION
Given the sample of the GPADatabase in a file, write SQL Stored function called calculateGPA
which receive student’s registration number, semester and academic year and return the
corresponding semester GPA truncated to one decimal place.
NOTE:
Golden HINT:
Use combination of SQL Counter Controlled While loop and SQL if—else-if structures to help
solve the question