what is the difference detween pairwise comparison subquary
and non pairwise comparison subquary?
Answers were Sorted based on User's Feedback
Answer / parnita
In pair wise comparison we write like this:"where (MGR_ID,
DEPT_ID) IN (SUBQUERY)"IN non pair wise comparison we write
like this:"where (MGR_ID) IN (SUBQUERY)and (DEPT_ID) IN
(SUBQUERY)"In first one we are checking two columns
simultaneously ...
| Is This Answer Correct ? | 20 Yes | 3 No |
Answer / taroon
See the thing is in pairwise comparison, we are taking the
columns which are of composite key type, so that the
comparisons will be very effective. But nonpairwise
comparisons are like multi_row subqueries with IN operator,
where we are checking single column values.
But the results will be different in both the cases. Just
try. If you want some examples regarding that, just do let
me know.
| Is This Answer Correct ? | 2 Yes | 5 No |
What are various aggregate functions that are available?
How create table structure only from tableA to TableB if TableA have some data?
What are the High-Availability solutions in SQL Server and differentiate them briefly?
How to compare the top two records using sql?
Define inner join? Explain with an example?
What are the advantages of using sql server over ms access or why should one use sql instead of ms access
How can we use ConnectorJ JDBC Driver with MS SQL?
What are partitioned views and distributed partitioned views?
What according to you is the difference between mysql and sql server performance?
When do you think a developer should use sql server-based cursors?
How can I check if a view exists in a sql server database?
Explain the storage models of OLAP?
Oracle (3259)
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)