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
In reply to Re^5: SQl logic inPerl
by Corion
in thread SQl logic inPerl
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |