What is the difference between two queries:
1. SELECT * FROM table WHERE 1=1;
2. SELECT * FROM table
Answer Posted / kohulavani.g
First query,in table where 1=1 condition is satisfied that
row or column is displayed
But in second query,the whole table is displayed
| Is This Answer Correct ? | 18 Yes | 44 No |
Post New Answer View All Answers
Define clusters?
How many types of objects are there?
What is recursion? Is it possible for a stored procedure to call itself or recursive stored procedure? How many levels of sp nesting are possible?
Does the unique constraint create an index?
Explain a differential backup?
Difference between report and query parameter.
What is pessimistic concurrency?
Can you explain various data region available in ssrs with their use?
What are window functions in sql server?
Can you index views?
What is the server name in sql server?
Are there any preferred steps that need to be taken care of before starting the installation of sql server 2000?
Determine how to use the inserted and deleted pseudo tables?
What is temporal data type?
Explain magic tables in sql server?