2MA005 Solution
2MA005 Solution
But only return those groups with an average salary weight larger than 1000.*/
/*Que3: Get The running total of salaries of Employees from employee table
(employee_id, name, join_date,salary) ordering by the joining date of employee*/
/*Que4: In an Entrance exam students 10 will be selected, Write a query to rank the students
according
to their marks (students having same marks should be ranked as same)
The Students table contains(Student_id, Student_name, Roll_number_Marks)*/
/*Que5: In the above question the criteria of selection has changed and now the students
ranked
up to 10 will be selected i.e. we can have more than 10 students.
Write a query to get the desired output.*/
/*Que6: We have a stock data which is updated daily We predict the daily stock price
using the lag(1)criteria Write a qwerty to get the lag(1) value from the Stocks table(date,price)*/
--Que10: Write the correct syntax of the NTILE function and also state the use of this function