What is the diffrence between IN and EXISTS.which one is
faster.
Answer Posted / manoranjan sethy
Exist operator always faster then In operator.
because assume that we gave value like in(10) then what is does? it will search my entire table and wherever 10 is found it will return as output.
but in exist operator if 10 found then optimizer will stop the searching process that is how exist gives more performance.
ii) In operator all ways conduct pattern search process but exist conduction boolean state of search process.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
what is oracle database ? : Sql dba
how to select unique records from a table? : Sql dba
What is view? Can we update view
what is normalization? : Sql dba
What are tables and fields in the database?
What is cursor status?
How many types of sql are there?
What plvcmt and plvrb does in pl/sql?
What are the types of index in sql?
C. Normalize the following data up to the 3rd Normal form. Create the tables and insert the data given. Emp_ID Name Dept_Name Salary Course_Title Date_Completed 100 Adam Marketing 48,000 SPSS 6/19/2008 Surveys 10/7/2008 140 Bob Accounting 52,000 Tax Acc 12/8/2008 110 Cathy IT SQL Server 1/12/2008 C# 4/22/2008 190 Dan Finance 150 Emily Marketing 55,000 SPSS 6/16/2008 42,000 Analysis 8/12/2008 Queries 1. Find all Names who have completed the SPSS Course. 2. Find employee with max salary. 3. Find employee with 2nd max salary. 4. Find all employees in Dept “Marketing”. 5. Find all the employees who have taken more than 2 courses. 6. Find all the employees who have completed the courses before month of September.
Is sql scripting language?
Define union, minus, union all, intersect ?
How many sql core licenses do I need?
What is difference between sql and oracle?
What is cursor explain with example?