in reply to Re^4: SQl logic inPerl
in thread SQl logic inPerl
So, you want to always take the first row, if you order by year ascending? Why don't you just do that?
select ... order by year asc limit 1
or, depending on your brand of database
select top 1 ... order by year asc
|
|---|