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 > General > Database Concepts & Design > How to enumerate Joined tables in query scheme?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-07-06, 06:29
KaRaM_BG KaRaM_BG is offline
Registered User
 
Join Date: Jun 2006
Posts: 1
Question How to enumerate Joined tables in query scheme?

Hello,

I've been developing an "advanced query builder" tool recently, and now I have a big problem with SQL generation algorithm.
Imagine Query graph with tables and Join links between them (just like query design view in MS Access). According to this scheme I have to enumerate tables in query and put them in right order in join sequence. It should be some kind of topological sort of this objects, or maybe I have to create some kind of tree...
I'm not going to apply something like query optimization algorithm, I just want to enumerate tables and create syntactically right Select query with nested joins.

I'll really appreciate every idea and help information.
Thank you in advance.

Bulent Karaahmed
Bulgaria
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