mysql select last year

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi all,

I have a little problem i know that you can help me with...

I have a mysql table
+----------+
|  year  |   id  |
+++++++++
| 2002 |  11  |
| 2003 |  11  |
| 2004 |  11  |
| 2005 |  11  |
| 2001 |  12  |
| 2002 |  12  |
+-----+-----+

And then i have a loop that takes the year and value for each of them. But how can i check if there is for example a year for id 11 that is < than 2002

Thanks a LOT!

Regards,
Martin Allan Jensen



-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux