SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
Join list for tables with multiple joins to same table.

 
Reply to topic    SoftTree Technologies Forum Index » SQL Assistant View previous topic
View next topic
Join list for tables with multiple joins to same table.
Author Message
judahr



Joined: 09 Mar 2007
Posts: 319
Country: United States

Post Join list for tables with multiple joins to same table. Reply with quote
v5.0.96 Pro

Table1
TableOneID
ResidentStateID
TaxStateID

Table2
StateID
Name

Assuming a table that has two or more fields each with a different foreign key to another table (ResidentStateID FK to StateID, TypeTwoFieldID FK to StateIDas a seperate relationship). When presented with a list of possible join clauses, it puts them together in an AND (ResidentStateID= StateID AND TaxStateID= StateID). This is fine if they were in the same relationship. However, if they are in seperate relationships, typically it should show up as two options (ResidentStateID= StateID, next row TaxStateID= StateID).
Tue May 18, 2010 3:48 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7849

Post Reply with quote
Hi,

This limitation is by design. You are absolutely correct in terms how it should be working. In the current version, SQL Assistant doesn't distinguish between multiple foreign keys defined between 2 tables. Its internal data cache structures don't support that and don't cache foreign key name or id. I hope we can improve these internal structures in some future version. For additional information, please check SQL Assistant Options -> DB Options -> DB Queries -> Joins (MSSQL)


Thanks
Tue May 18, 2010 4:31 pm View user's profile Send private message
Display posts from previous:    
Reply to topic    SoftTree Technologies Forum Index » SQL Assistant All times are GMT - 4 Hours
Page 1 of 1

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


 

 

Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Flowers Online.