What is the difference between two queries:
1. SELECT * FROM table WHERE 1=1;
2. SELECT * FROM table

Answer Posted / kranthi kiran

I am learning SQL Basics..So If my Answer is wrong Plz do
reply to tht,
In the First Query Where 1=1 implies Show all where The
first coloum element is equal to 1

and second query show all from table

Is This Answer Correct ?    4 Yes 40 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the log shipping?

804


What happens if date-only values are provided as date and time literals?

828


Explain what role entity and relationship play in an ER diagram.

839


What are information schema views?

788


Is foreign key a primary key?

749


what is the difference between Delete and Truncate command in SQL

883


How to receive returning result from a query?

821


Tell me what are the essential components of sql server service broker?

744


What are commonly used mssql functions in php?

770


What do you need to connect php to sql server?

828


What is importing utility?

772


How do I find the size of a sql server database?

712


Explain the properties of a relational table?

812


Do you think BCNF is better than 2NF & 3NF? Why?

1057


Is it important for a database administrator to understand the operating system and file access?

783