Help! with Parameter Query for complex SQL

R

robottv

Is there a way to use Parameter Query which contains SQL statement that
contains multiple select statement within the SQl statement?

For example,

<Case 1>
select a.name, b.dept_name, c.salary
from employee a,
dept b,
hr c
where a.emp_id = b.emp_id
and b.band = c.band
and c.salary > 39999

=> THis will work with Parameter Query since it only contains one select
statement

<Caase 2>
select a.name, b.detp_name, c.salary
from employee a,
dept b,
( select *
from hr
where salary > 39999
) c
where a.emp_id = b.emp_id
and b.band = c.band

=> THis will not work with Parameter Query since it contains sub select
statement

Please let me know how I can use Parameter Query for case 2.

Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top