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

Top 5 Contributors of the Month

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

What is faster, a correlated sub query or an exists?

Posted By :Narayanan     Posted Date :September 03, 2011    Points :40   Category :Sql Server 

You can also find related Interview Question to What is faster, a correlated sub query or an exists?  below: 

What is correlated sub-query?

A correlated sub-query is a term used for specific types of queries in SQL. It is a sub-query (a query nested inside another query) that uses values from the outer query in its WHERE clause. The sub-query is evaluated once for each row processed by the outer query.

Here is an example for a typical correlated sub-query. In this example we are finding the list of employees (employee number and names) having more salary than the average salary of all employees in that employee's department.

SELECT employee_number, name
FROM employee AS e1
WHERE salary > (SELECT avg(salary)
FROM employee
WHERE department = e1.department); (More...)

What is Query evaluation engine?

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

What is Query binding ?

The binding of an object to a query (More...)

To find a particular column name where it exists in a database?

The Query to find the particular column name in a databse is,


How to query from multiple lists in SharePoint?

Using SPSiteDataQuery you can get data from multiple lists. (More...)

Findout Top 2 Highest Salary By Using sql query?

Select Top(2) Salary from Table name Where order By Salary Desc (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