What is use of except clause? How does it differ from not in clause?
Answer / Ankush Gupta
The EXCEPT clause in SQL Server is used to exclude rows that appear in the right query, but not in the left query. In other words, it returns only the differences between two result sets. The NOT IN operator also compares rows from one table with another, but it does not require the exact order of the results.nnExample: Using EXCEPT:nSELECT ProductID FROM Orders WHERE ProductID NOT EXISTS (SELECT ProductID FROM OrderDetails);nExample using NOT IN:nSELECT * FROM Customers WHERE CustomerID NOT IN (SELECT CustomerID FROM Orders)
| Is This Answer Correct ? | 0 Yes | 0 No |
What is the architecture of ms sql reporting service?
Explain mixed authentication mode of sql server?
What is dynamic cursor in SQL SERVER?
What is sub-query in sql server? Explain its properties.
What is a schema in ms sql server 2005?
How will you monitor replication activity and performance? What privilege do you need to use replication monitor? : sql server replication
In join, which clause in not used?
A user is a member of the public role and the sales role. The public role has select permission on all the tables. The sales role does not have select permission on some of the tables will the user be able to select from all tables?
what is the difference between table and view
Rate yourself in .NET and SQL ?
1 Answers Cognizant, HCL, SunGard,
What are the different SQL Server Versions you have worked on?
Is sql server is free?
Oracle (3253)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)