I want write this sql select statment in mysql v 3.23
select *
from radacct
where username in (
select username
from radcheck
where Attribute = 'max-weekly-session'
);
but say
ERROR 1064: You have an error in your SQL syntax near
'select username from radcheck where Attribute= 'max-weekly-session')'
at line 1
in mysql v 5 this is ok but how can I do in v 3.23?
nested selects are not available in MySQL version < 4.1
following will work