So I have two columns from two different databases that I would like to link.
Problem is that my first column outputs the numbers with this format "1 789 987"
and my second column outputs the data "0000000001789987"
How can I write my WHERE
sql forumla to idententify these as matching?
Ok so I pulled out the qrys to excel to provide you with more information. Here are the different tables.
Looks like Tbl2 has NUM column set to text. And even though the QRY in the program gave spaces to the numbers in Tbl1 it looks like the qry removed them shrug
SELECT *
FROM "Tbl1","Tbl2"
WHERE "Tbl1"."num" = "Tbl2"."num"
AND "Tbl1"."Date" BETWEEN '2019-01-21' AND '2019-01-25'
I hope the information became abit clearer. I'm new to SQL and Stackoverflow, i'll try and improve my questions information in the future.