Subquery

V

Vicky

Hi,

Is their a way that I can save the value of a field in an
array based on a query. Then run another query with its
criteria being that array. I was tring to create a sub-
query, but I was getting all the records.

Vicky
 
J

JL

Since I did not what you are trying to do.
I will just tell you the syntax a sub query is.

select id, ...... from table1 where id in (select id from
table2);

This will select all the records in table1 that have
matching id from table2.
 

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