What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » [Sorted] Multiple SQL Queries > 1 Query

[Sorted] Multiple SQL Queries > 1 Query
Author: Message:
Dempsey
Scripting Contest Winner
*****

Avatar
http://AdamDempsey.net

Posts: 2395
Reputation: 53
38 / Male / Flag
Joined: Jul 2003
O.P. [Sorted] Multiple SQL Queries > 1 Query
Is it possible to use the result of a sql query as a lookup for an additional query, but doing in just one query.

That sounds confusing :P

eg

I lookup records with ID of 10.

It returns 3 results.

Each of the 3 records has another ID number in a field, eg 11, 12 and 13.

Could I then lookup all of the records with ID of 11, 12 and 13?

So altogther I have records with IDs of 10, 11, 12 or 13.


Is that possible using just one query?  Or would I have to use more than one?


EDIT:  I managed to do it in the end, I had to use subqueries. 

This post was edited on 12-20-2005 at 12:43 PM by Dempsey.
SoundPacks   -   Scripts   -   Skins

that's not a bug, thats an unexpected feature
12-20-2005 11:59 AM
Profile E-Mail PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On