What is the difference between two queries:
1. SELECT * FROM table WHERE 1=1;
2. SELECT * FROM table
Answer Posted / malathi
Both the Queries will return the same ouput.
That means it will return all the rows that are available
in the table.
| Is This Answer Correct ? | 45 Yes | 3 No |
Post New Answer View All Answers
What are the extra roles available in msdb? : sql server security
How to loop through the result set with @@fetch_status?
What is a field in a table?
What is temporal data type?
What are the disadvantages of indexes?
How to encrypt Strored Procedure in SQL SERVER?
What is rolap and its advantage? : sql server analysis services, ssas
What are the advantages of passing name-value pairs as parameters?
Explain the third normal form(3nf)?
What are the various editions of sql server 2017 that are available in the market?
What are types of scd? : sql server analysis services, ssas
Which data types generate inaccurate results if used with an = or <> comparison in a where clause of a sql statement?
What is the data type of time?
What do you understand by replication in sql server? Mention the different types of replication in sql server.
How can you hide the sql server instances?