.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Interview Question >> Sql Server >> Post New Question Subscribe to Interview Questions

Tell me some Aggregate Functions?

Posted By :nishithraj     Posted Date :December 24, 2009    Points :10   Category :Sql Server 
BINARY_CHECKSUM
CHECKSUM
Count
Sum
AVG

You can also find related Interview Question to Tell me some Aggregate Functions?  below: 

I was trying to use an "out int" parameter in one of my functions. How should I declare the variable that I am passing to it?

  
You should declare the variable as an int, but when you pass it in you must specify it as 'out', like the following: int i; foo(out i); where foo is declared as follows: [return-type] foo(out int o) { } (More...)

Explain about the Boolean functions present in Javascript?

  
Three Boolean operators are present in Javascript they are
1) &&
2) II
3) /
All the operators are regarded as true unless the Javascript regards them as false. You can define these operators to make as statement false number0, null, undefined, or a string of length 0, etc. Boolean function performs these conversions explicitly. (More...)

What are the Text and Image Functions?

  
PATINDEX,TEXTPTR,TEXTVALID are the Text and Image Functions (More...)

Tell me some String Functions?

  
SUBSTRING, SOUNDEX, DIFFERENCE (More...)

Difference between stored procedures and functions ?

  
1>Procedure can return zero or n values whereas function can return one value which is mandatory.

2>Procedures can have input,output parameters for it whereas functions can have only input parameters.

3>Procedure allow select as well as DML statement in it whereas function allow only select statement in it.

4>Functions can be called from procedure whereas procedures cannot be called from function.

5>Exception can be handled by try-catch block in a procedure whereas try-catch block cannot be used in a function.

6>We can go for transaction management in procedure whereas we can't go in function.

7>Procedures can not be utilized in a select statement whereas function can be embedded in a select statement. (More...)

Sql Server System Functions?

  
@@IDENTITY
Returns the last identity value created by the current connection.

@@ERROR
Returns the error code for the last T-SQL statement that ran on the current connection. If there is no
error, then the value will be zero.

@@ROWCOUNT

Returns The row count of the previous Executed T-Sql Statement (More...)

differences between stored procedures and functions:

  
Functions
----------
1) can be used with Select statement
2) Not returning output parameter but returns Table variables
3) You can join UDF
4) Cannot be used to change server configuration
5) Cannot be used with XML FOR clause
6) Cannot have transaction within function

Stored Procedure
-----------------
1) have to use EXEC or EXECUTE
2) return output parameter
3) can create table but won't return Table Variables
4) you can not join SP
5) can be used to change server configuration
6) can be used with XML FOR Clause
7) can have transaction within SP (More...)

What is the basic functions for master, msdb, model, tempdb databases?

  
The Master database holds information for all databases located on the SQL Server instance and is the glue that holds the engine together. Because SQL Server cannot start without a functioning master database, you must administer this database with care.
The msdb database stores information regarding database backups, SQL Agent information, DTS packages, SQL Server jobs, and some replication information such as for log shipping.
The tempdb holds temporary objects such as global and local temporary tables and stored procedures.
The model is essentially a template database used in the creation of any new user database created in the instance. (More...)

What kind of User-Defined Functions can be created?

  
There are three types of User-Defined functions in SQL Server 2000 and they are Scalar, Inline Table-Valued and Multi-statement Table-valued. (More...)

What is User Defined Functions?

  
User-Defined Functions allow to define its own T-SQL functions that can accept 0 or more parameters and return a single scalar data value or a table data type. (More...)

What are the benefits of User-Defined Functions?

  
created and defined by the user
They can be used to create joins and simple to invoke as compared to stored procedures (More...)

Which of the following statements are correct about functions and subroutines used in C#.NET?

  
1.A function cannot be called from a subroutine.
2.The ref keyword causes arguments to be passed by reference.
3.While using ref keyword any changes made to the parameter in the method will be reflected in that variable when control
passes back to the calling method.
4.A subroutine cannot be called from a function.
5.Functions and subroutines can be called recursively.
A.1, 2, 4
B.2, 3, 5
C.3, 5
D.4, 5
E.None of these


Answer: Option B (More...)

Quick Links For Interview Questions Categories:
ASP.Net Windows Application   .NET Framework   C#   VB.Net   ADO.Net  
Sql Server   SharePoint   Silverlight   OOPs   JQuery   JavaScript/VBScript
Biztalk Patten/Practices .IIS WCF WPF WWF
Networking Aptitude Others   All      

Find questions, FAQ's and their answers related to .NET, C#, Vb.Net, Sql Server and many more.

 
Now you can find lots of .NET, C#, Vb.Net, SQL Server,Windows, ASP.Net related Questions and their Answers here at www.dotnetspark.com. Our aim is to help you pass your certification Exams (MCP, MCSD, MCAD etc.,) with flying scores and get good name in your company.

So, Start looking our Interview Question section daily and improve your .NET Skills. You can also help others by posting Interview Questions and their Answers in this section.


Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend