So i have some range from 1 to 40,
which i have to use in order execute different queries from the same table and column but from a different range like:
mysql_query("SELECT * FROM table WHERE column > 1 && column <= 15");
mysql_query("SELECT * FROM table WHERE column >=18 && column <= 30");
mysql_query("SELECT * FROM table WHERE column >= 35 && column <= 38");
i get the total rows from these queries one by one for different actions… but how can i combine these 3 for example queries into 1 and get the same result?
// EDIT: OP Wants to Count number of rows for each condition:
count_1, count_2, and count_3 are the numbers of rows for each condition.