The syntax is probably dependent on your database, though.select name from mytable where acc = '12345' and year = (select max(year) from mytable where year in( $year, $year+1 +))
In reply to Re: SQl logic inPerl
by brap
in thread SQl logic inPerl
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |