sql - Inner joining two tables returns empty result -


i trying 2 tables aren't related pull column of data each.

i have 1 table called alphadata , 1 called tlauth. each includes column labelled invoice , need pull both columns can @ least start comparison. tlauth include some of invoice numbers alphadata, not of them.

right using following code:

select alphadata.invoice, tlauth.invoice alphadata inner join tlauth on tlauth.tlauthid = alphadata.tlauthid; 

but every time run comes totally blank. there data in there, can pull 1 column of data each, not both @ same time. have setup relationship (1 many tl auth alphadata) , doesn't seem work grand.

if tables not match should use left join

select alphadata.invoice, tlauth.invoice alphadata left join tlauth on tlauth.tlauthid=alphadata.tlauthid; 

Comments

Popular posts from this blog

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -