Subquery

  • Thread starter Thread starter Vicky
  • Start date Start date
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
 
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

Similar Threads

Reference Calculated Field 2
Subquery 1
Query and subquery 2
Delete sub query problems 4
Subquery Question 2
REPOST: Subquery? 2
Subqueries 3
Finding missing records between two tables 5

Back
Top