Basically, I want the oldest year from the DB.
I want to get the oldest year so I can compare it with the present year and come up with the total number of years within the DB.
But since the administrator can make entries manually, I can't just pull the first id and use that because there's chance it may be wrong.
Here's an example of the table in case I'm still unclear.
id: 1
date: 2009-04-17
id: 2
date: 2008-12-23
id: 3
date: 2004-09-31
The output I want is the eariliest year, so in this case, id:3.
Yeah, I'm stating the obvious now.
But is there a simple command that would get the oldest year without having to run my loop?