I have seen many queries with something as follows.
Select 1
From table
What does this 1
mean, how will it be executed and,
If you don't know there exist any data in your table or not, you can use following query:
SELECT cons_value FROM table_name;
For an Example:
SELECT 1 FROM employee;
So, we use this SQL query to know if there is any data in the table & the number of rows indicates how many rows exist in this table.