.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

What will be the OutPut of the following Query? Select CELING(7.69) as number

Posted By :Syed Shakeer Hussain     Posted Date :November 29, 2009    Points :10   Category :Sql Server 
OutPut:8

You can also find related Interview Question to What will be the OutPut of the following Query? Select CELING(7.69) as number  below: 

Write and justify output of - select nullif('test','test')

  
The output will be - NULL
Justification : nullif returns NULl if given two arguments are same else returns the first specified argument. So, for the given SQL, output will be NULL. (More...)

Write a query to Select top 2 Highest salaries?

  
select Top(2) salary from Tablename order by Salary desc.... (More...)

Why NoLock is used in Sql Select Query?

  
Advantage:
applying nolock in select statement will increase
concurreny and performance in fetching.

Disadvantage:
it does'nt consider the transaction scenario, even if the
transaction is under process not yet commited or rollback
it will fetch the current record
eg

begin tran
insert into tablename
values('1','asdf')

select * from tablename with (nolock)

-- it will display the table with inserted record.
but the transaction is not completed, it can be rollback
so it became dirty read.

(More...)

Would the select query below fetch any records?



create table #testvm (ID int)

select * from sysobjects where name = '#testvm'

drop table #testvm

  
No..

Since temp tables are created in tempdb, and use a random name, the query will not work.

If you used a query like this, you would see your table:

select * from tempdb..sysobjects where name like '#testvm%' (More...)

Using query analyzer, name 3 ways to get an accurate count of the number of records in a table?

  
SELECT * FROM table1
SELECT COUNT(*) FROM table1
SELECT rows FROM sysindexes WHERE id = OBJECT_ID(table1) AND indid < 2 (More...)

State whethere Except command will work if both query have different number of fields?

  
No, It will work only with same number of fields with same datatype. (More...)

Minimum number of queues needed to implement the priority queue?

  
Two. One queue is used for actual storing of data and another for storing priorities. (More...)

What is Query evaluation engine?

  
It executes low-level instruction generated by compiler. (More...)

What is Version Number in Assembly Manifest ?

  
A revision and build number in an assemblies is called Version Number.

There are Major and Minor Version number in an assembly. you can change this version number in assemblyinfo.cs file
usually version number looks like this in assemblyinfo.cs
1.0.*

The common language run time uses these numbers to enforce version policy. (More...)

What is the output of this?

  
What is the output of this

Class A {
static byte a;
static short b;
static char c;
static int d;
static long e;
static string s;
Public Static Void Main(String args[])
{ Console.WriteLine(a+b+c+d+e+s);
}
}

answer:
0null

The Numeric Sum of a,b,c,d,e is Zero.The Zero is converted to a string and concatenated with s.here s is Null (More...)

How to get IP Number of a SYSTEM?

  
Request.UserHostAddress.ToString();
(or)
Request.UserHostName.ToString(); (More...)

What is Query binding ?

  
The binding of an object to a query (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