I have a table of some columns named as Students
.
I am using following three queries to select
rows.
1. select * from Students
2. select * from Students where 1=1
3. select * from Students where null=null
When I execute first then this returns all rows.
When I execute second then this is also returns all rows.
But when I execute third then this does not return any row.
I have two issues
- What is
1=1
andnull=null
and why are we using these?- What is difference between first query and second query?