SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
Table name qualifying on joins

 
Reply to topic    SoftTree Technologies Forum Index » SQL Assistant View previous topic
View next topic
Table name qualifying on joins
Author Message
fificito



Joined: 10 Dec 2013
Posts: 5
Country: Mexico

Post Table name qualifying on joins Reply with quote
Hi, there is a problem when doing joins. When I select the joining fields in a pair of tables, the second table is quelified with TbleMane.dbo.TableName. For example:

Instead of petrored.dbo.tbl_Agents

I get

tbl_Agents.dbo.tbl_Agents

Any ideas?
Tue Dec 10, 2013 5:47 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7948

Post Reply with quote
Can you please post an example of what you have before you select the join, or the columns, I'm not sure I understand the sequence of your actions.
Tue Dec 10, 2013 6:40 pm View user's profile Send private message
fificito



Joined: 10 Dec 2013
Posts: 5
Country: Mexico

Post Reply with quote
Let's say I have 2 tables: tbl_Agents and tbl_Order. tbl_Orders has a foreign key to tbl_Agents. When I type SELECT * FROM tbl_Agents JOIN,
I get a hint to join with tbl_Orders and a plus (+) sign inside which are the 2 fields that form the foreign key.

If I double click on these fields, the resulting statement would be:
SELECT * FROM tbl_Agents AS a
JOIN tbl_Orders.dbo.tbl_Orders AS o on a-ID_Agent = o.ID_Agent

Clearly, this is wrong.
Tue Dec 10, 2013 6:50 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7948

Post Reply with quote
Thank you. Which version are you running?
Tue Dec 10, 2013 7:12 pm View user's profile Send private message
fificito



Joined: 10 Dec 2013
Posts: 5
Country: Mexico

Post Reply with quote
version 6.5.258
Tue Dec 10, 2013 7:17 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7948

Post Reply with quote
I'm able to reproduce this issue. This is clearly a bug. I have logged a high priority ticket #SA0022889 to have this issue fixed as quickly as possible.
Tue Dec 10, 2013 9:32 pm View user's profile Send private message
fificito



Joined: 10 Dec 2013
Posts: 5
Country: Mexico

Post Reply with quote
Thanks. Where can I get updates on the process to fix bugs?
Wed Dec 11, 2013 12:14 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7948

Post Reply with quote
The software itself will notify you when a new update is available.
Wed Dec 11, 2013 3:20 pm View user's profile Send private message
fificito



Joined: 10 Dec 2013
Posts: 5
Country: Mexico

Post Reply with quote
Thanks
Thu Dec 12, 2013 10:00 am 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.