.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 >> Others >> Post New Question Subscribe to Interview Questions

What is the use of Except clause?

Posted By :shankey     Posted Date :July 31, 2011    Points :40   Category :Others 
It is similar to MINUS clause of oracle. It return result which are in first query and not in second query.

You can also find related Interview Question to What is the use of Except clause?  below: 

What is the difference between a HAVING CLAUSE and a WHERE CLAUSE?

  
Having Clause is basically used only with the GROUP BY function in a query. WHERE Clause is applied to each row before they are part of the GROUP BY function in a query (More...)

What is the difference between a HAVING CLAUSE and a WHERE CLAUSE ?

  
Both Clause are used to check the Condition at the time of Retrival of records in Database.
WHERE Clause is applied to each row before they are part of the GROUP BY function in a query.
Having Clause is basically used only with the GROUP BY function in a query. (More...)

What is the difference between a HAVING CLAUSE and a WHERE CLAUSE?

  
Having Clause is basically used only with the GROUP BY function in a query. WHERE Clause is applied to each row before they are part of the GROUP BY function in a query (More...)

difference between having and group by clause ?

  
Having is basically used for the any condition in Group by Clause

like if you are finding sum,max,min etc of any field you are using group by clause and sum is required with some condition then you use having clause for that condition

like select sum(Amount) as Amount from AD_tblAmount having (Sum(Amount)>0) (More...)

What is the difference between a HAVING CLAUSE and a WHERE CLAUSE?

  
Having Clause is basically used only with the GROUP BY function in a query.
WHERE Clause is applied to each row before they are part of the GROUP BY function in a query.
(More...)

Can we have order by clause in Sql Server View?

  
Inorder to have ORDER BY Clause in Sql Server

we have to restrict the rows by Using TOP clause

If there is no TOP Clause then you cannot have ORDER BY clause

in a View (More...)

Why LINQ is having select clause at the end?

  
Due to IntelliSense of Visual Studio.

If the select clause was in the first of LINQ, then the IDE cannot populate the properties inside the object.

Eg: from f in db.Forum where f.Id > 0 select f.Name;

If the select was in front - the "select f." could not populate any autocomplete properties or methods. (More...)

What is the difference between a HAVING CLAUSE and a WHERE CLAUSE?

  
They specify a search condition for a group or an aggregate. But the difference is that HAVING can be used only with the SELECT statement. HAVING is typically used in a GROUP BY clause. When GROUP BY is not used, HAVING behaves like a WHERE clause. Having Clause is basically used only with the GROUP BY function in a query whereas WHERE Clause is applied to each row before they are part of the GROUP BY function in a query. (More...)

What is use of EXCEPT Clause?

  
EXCEPT clause is similar to MINU
returns all rows in the first query that are not returned in the second query. Each SQL statement within the EXCEPT query and MINUS query must have the same number of fieldsin the result sets with similar data types. (More...)

Can Where clause be used with Truncate?

  
No, Where clause cannot be used with truncate command. (More...)

State whether Except clause will work if number of fields are same but with different datatype?

  
No, It will not work number of fields and datatype of each field should match with respective fields in both the 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