Suppose We Are Given A View Tot Credits Year Num Credits Giving #144
Suppose we are given a view tot credits (year, num credits) giving the total number of credits taken by students in each year.The query that computes averages over the 3 preceding tuples in the specified sort order is _________
This multiple choice question (MCQ) is related to the book/course gs gs116 Microsoft SQL Server. It can also be found in gs gs116 Manipulating Data with Select - SQL Server Subqueries - Quiz No.1.
Suppose we are given a view tot credits (year, num credits) giving the total number of credits taken by students in each year.The query that computes averages over the 3 preceding tuples in the specified sort order is _________
Select year, avg(num credits) over (order by year rows 3 preceding) as avg total credits from tot credits;
Select year, avg(num credits) over (order by year rows 3 unbounded preceding) as avg total credits from tot credits;
Select year, min(num credits) over (order by year rows 3 unbounded preceding) as avg total credits from tot credits;
Select year, SUM(num credits) over (order by year rows 3 unbounded preceding) as avg total credits from tot credits;
Similar question(s) are as followings:
Online Quizzes of gs116 Microsoft SQL Server
Developing with SQL Server - Error Handling - Quiz No.1
gs gs116 Microsoft SQL Server
Online Quizzes
Laying the Foundation - Aggregation of Data - Quiz No.1
gs gs116 Microsoft SQL Server
Online Quizzes
Laying the Foundation - Joins in SQL Server - Quiz No.1
gs gs116 Microsoft SQL Server
Online Quizzes
Laying the Foundation - Views in SQL Server - Quiz No.1
gs gs116 Microsoft SQL Server
Online Quizzes