Question 1
Question 1
Write a Query a list of CITY names from STATION for cities that have an
even ID number. Print the results in any order, but exclude duplicates
from the answer.
Question 2 : Create two tables Student and Advisor.
i. Write a query to find out the advisor name and his student count.
ii. Write a query to get results that consists
student_id,student_name (it should be full name means firstname
+ lastname),advisor_name (it should be fullname).
iii. Write a function which will return student count for an advisor, it
takes ‘advisor_id’ as argument and returns respective advisor
count.
iv. Write a stored procedure for insert,update the students and
advisor table. Define the required parameters for stored
procedure.