I have a query that runs in Excel, that will need to show data from an SQLbase database where I only have read-access. I cannot modify the database in any way. The column I need to be able to filter on is a varchar
column, but it's values are only numbers. I need to be able to filter with between
in Excel, so I've tried to do column + 0
so Excel picks it up as a number. This worked before, but now it fails on some numbers.
The number 704977990024
works, but 991098000265
doesn't. With the second one I get Data is not numeric
.
This is the query:
SELECT (TABLE1.COLUMN + 0) AS "Artikelnummer"
FROM DB.TABLE TABLE1
LEFT JOIN DB.OTHERTABLE TABLE2
ON TABLE1.COLUMN = TABLE2.COLUMN
How can I make sure I get it as a number in Excel? If not in the query, then how in Excel itself? When I set the column to number
in excel, it still displays as text and will not be numeric unless I try to edit the cell.