Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Help! with Parameter Query for complex SQL

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

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Parameter query question Corrine Excel Discussion (Misc queries) 4 October 19th 07 05:14 PM
How to choose if I use a parameter or not in a parameter query Arnaud Excel Discussion (Misc queries) 0 March 8th 07 01:19 PM
parameter query help marcus Excel Discussion (Misc queries) 0 September 30th 05 12:49 PM
Parameter Query? AcesUp Excel Discussion (Misc queries) 2 August 22nd 05 10:32 PM
How to use a Access Query that as a parameter into Excel database query Karen Middleton Excel Discussion (Misc queries) 1 December 13th 04 07:54 PM


All times are GMT +1. The time now is 11:52 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"