If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ANSI SQL > query help

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-30-04, 01:00
gits gits is offline
Registered User
 
Join Date: Jul 2004
Posts: 1
query help

hey all,

my problem:

i have a table with 2 fields: Object1 and toObject1

it Looks like this:

Object1 toObject1
10 0
100 10
110 10
200 100

and so on.
now i want to know what 'toObjec1'-Fields are under 'Object1-10'.
the answer in the example must be 100,110,200 because 200 is 'Member' of Object1-100.

Is it possible to generate a list with one querey? and is it possible to reverse a querey (if i want to know what object1-ids are 'over' 200)?

Thanks

Michael
Reply With Quote
  #2 (permalink)  
Old 07-30-04, 08:50
Pat Phelan Pat Phelan is offline
Resident Curmudgeon
 
Join Date: Feb 2004
Location: In front of the computer
Posts: 12,605
Using client-side code, you can do it using any database engine. Using server-side code, the answer depends on which database engine you are using. With some engines you can, with some you can't.

-PatP
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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