I am running a sql query in a servlet and i need advice on whether nested sql is more efficent or nested tables.
the nested sql looks like
select app from admtable
where appc in (select appc from apptable
where fin in (select fin from partable
where data=input))
the nested table looks like
select app from admtable, apptable, partable
where data=input and fin=fin and appc=appc
(ignore the syntax error)
which is more efficient?
the nested sql looks like
select app from admtable
where appc in (select appc from apptable
where fin in (select fin from partable
where data=input))
the nested table looks like
select app from admtable, apptable, partable
where data=input and fin=fin and appc=appc
(ignore the syntax error)
which is more efficient?