+ 1
How can you select all the even number records from a table? All the odd number records?
After you learned all about the SELECT command answer me that question ❓
7 ответов
+ 2
I having the answer, but I'll letting you try.
0
If column then we can use MOD function if records needed then using row number we can find I guess. let me know the answer if I'm wrong.
0
So, thank you very much MANASA for your try, your answer is wrong.
To select all the even number records from a table:
Select * from table where id % 2 = 0
To select all the odd number records from a table:
Select * from table where id % 2 != 0
0
For Manasa, The SQL MOD() function returns the remainder from a division.
0
hi
0
Okay Thanks
0
You're welcome Manasa