GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Database  >  SQL Server
Go To First  |  Previous Question  |  Next Question 
 SQL Server  |  Question 6 of 99    Print  
Give some examples of Analytical functions?

  
Total Answers and Comments: 2 Last Update: April 24, 2007     Asked by: Beena 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
September 22, 2005 03:08:17   #1  
rahultripathi Member Since: September 2005   Contribution: 22    

RE: Give some examples of Analytical functions.

Analytical Function:-

return the infornation that about the relative possition of record (ROW_NUMBER Rank DENSE_RANK) and allow to campare with succesor and precedessors when they sort in spacific order.

select ename deptno sal hiredate row_number() over ( partition by deptno order by sal desc comm desc hiredate desc
) sal_rank_in_dept row_number() over (order by sal desc) sal_rank_overall
from emp
order
by deptno
sal desc
comm desc
hiredate desc


 
Is this answer useful? Yes | No
April 24, 2007 05:54:33   #2  
jayaprakash.raman Member Since: April 2007   Contribution: 6    

RE: Give some examples of Analytical functions?
Examples for Analytical functions in Sql Server 2005:

AVG COMPUTE DENSE RANK NTile Over RANK Row Number STDEV SUM VAR VARP WITH ROLLUP

 
Is this answer useful? Yes | No

 Related Questions

Latest Answer : Examples for Analytical functions in Sql Server 2005:AVG, COMPUTE, DENSE RANK, NTile, Over, RANK, Row Number, STDEV, SUM, VAR, VARP, WITH ROLLUP ...
Read Answers (2) | Asked by : Beena

Latest Answer : Normalization : It is the process of decomposing a relation with anomalies into a well structured relation.Basic Terminology of Normalization:-Well-structured relation : A relation with minimum redundancy and no anomalies Anolamy : is an error during ...
Read Answers (3) | Asked by : Beena

Latest Answer : Hi RegardsIts very simple. I presume that you are aware of creating tables in SQL SERVER. If you want a default value in uniqueidentifier column. Just open the table in design view in enterprices value at highlight the column at the bottom you will ...
Read Answers (2) | Asked by : bipin

Latest Answer : The binary datatype is used for storing the images in the database.the non binary datatypes are integer,varchar etc ...
Read Answers (1) | Asked by : Gajalakshmi

What are the general functions available in SQL? 
Latest Answer : Aggregate Functions: AVG() - Returns the average value  COUNT() - Returns the number of rows FIRST() - Returns the first value LAST() - Returns the last value MAX() - Returns the largest value MIN() - Returns the smallest value SUM() ...


 Sponsored Links

 
Related Articles

Using XMLType for Handling XML Data in the Database

Using XMLType for Handling XML Data in the Database Being an object type XMLType can not only be used to store XML data in the database but also to operate on that data via its built in methods Regardless of the storage model you choose XMLType provides a set of XML specific methods to operate on XM
 

Using Oracle Database for Storing, Modifying, and Retrieving XML Data

Using Oracle Database for Storing Modifying and Retrieving XML Data With Oracle XML DB you have various XML storage and XML processing options allowing you to achieve the required level of performance and scalability One of the most interesting things about Oracle XML DB is that it allows you to per
 

Performing XSLT Transformations inside the Database

Performing XSLT Transformations inside the Database Now that you have the employees XSL stylesheet stored in the database and the xmlusr schema is permitted to access the hr employees table you can create a script that will instruct the database to build an HTML page based on the data stored in hr e
 

Moving All the XML Processing into the Database

Moving All the XML Processing into the Database In the preceding example the database server performs only a part of the XML processing while the rest is still performed by the PHP engine Specifically the database server generates an employees XML document based on the records from the hr employees
 

Performing XML Processing inside the Database

Performing XML Processing inside the Database When building XML enabled applications on top of Oracle there are many advantages to performing the XML processing inside the database when compared to performing it on the client The key advantages to perform XML processing inside the database are as fo
 

SQL Server 2005 Integration Services Review

SQL Server 2005 Integration Services using Visual Studio 2005 A Beginner s Guide SQL Server 2005 A offering of Microsoft Corporation for database management the SQL server 2005 is one of the powerful database management systems in the world Available for integration in almost any system that uses Mi
 

SQL Server Integration Services

SQL Server Integration Services Here is a sample chapter from Beginners Guide to SQL Server Integration Services Using Visual Studio 2005 by Jayaram Krishnaswamy Environment set up for Visual Studio 2005 with respect to SSIS and multiple tasking Connecting to Microsoft Access Text Files Excel S
 

Web Server

Web Server A web server can be a program or the computer itself which receives the requests from various other browsers and responds to those requests These requests are all requests that are being sent for some documents There are two kinds of web servers available The web server program and the
 

Microsoft AJAX Library - Anonymous Functions

Anonymous Functions Anonymous functions can be created adhoc and used instead of a named function Although this can hinder readability when the function is more complex you can do this if you don t intend to reuse a function s code In the following example we pass such an anonymous function to Displ
 

Microsoft AJAX Library - Functions as Variables

Functions as Variables In JavaScript functions are first class objects This means that a function is regarded as a data type whose values can be saved in local variables passed as parameters and so on For example when defining a function you can assign it to a variable and then call the function thr
 

About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape