Please check my following table structure…
| id | r_num |
+-----+---------+
| 9 | 2011/9 |
+-----+---------+
| 10 | 2012/2 |
+-----+---------+
And want to get all rows for given year, and i have tried following query…
SELECT * from tblr WHERE r_num = 2011;
But above query is not giving expected results, should i use LIKE or what is the best way to achieve desired results. Please help, thanks.
1 Answer