Quantcast
Channel: Toad Data Point Forum - Recent Threads
Viewing all articles
Browse latest Browse all 2544

RE: Editor Issue: Joining table to itself does not enable auto-complete for 2nd table.

$
0
0

Thanks for the reply.

It does this on every data source I have connected to (which includes DB2 z/OS, Oracle, and SQL Server). I don't do cross-connection queries. It happens all the time. If anything, when I type the "dot", it will pop up with something, but it'll be filled with numbers instead of column names.

I just created a test table in SQL Server to illustrate. See attached images. When I type A "dot" it gives me the field names. When I type B "dot" it gives me a single 1 as an option (which is a unique value of the AccountHolder_ID column)

Here's what the data looks like:

Here's the query I built. It gives me a list of field names when I type the A "dot":

But this is what I get when I type B "dot"

The "1" listed is the unique value of AccountHolder_ID column in the table, so it looks like it's trying to give me the values of the column instead of a column list.

I tried, as you asked, to switch the tables (B to A). It does the same. As I type the join, I'll say ON B. and it will give me a list of columns on B, but then A stalls. Although if I swap those two in the join and type A "dot" first after the ON statement, it won't pop up anything (query below)

SELECT A.[User_ID],
A.LastName,
A.FirstName,
B.LastName AS AccountHolder_LastName,
B.FirstName AS AccountHolder_FirstName
FROM dbo.tbl_Users B
INNER JOIN dbo.tbl_Users A ON A.

Thanks!


Viewing all articles
Browse latest Browse all 2544

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>