The database has a single table (Radiologists) and the full database has about 18,000 rows.
I was just trying a simple SQL statement:
SELECT * FROM Radiologists WHERE radID = 19;
but I get an SQL error saying that column radID doesn't exist. I have definitely spelled it correctly. As far as I can tell there are no weird characters in the column name.
Oddly, if I do an almost identical query but use the Values column the query works fine:
SELECT * FROM Radiologists WHERE Values = 6;
I have attached a massively edited version of the database with only 500 rows that exhibits the same behaviour.
I have tried querying the database both from within Xojo and using a third party tool (Base for macOS) and get the same error.
As you can see, there is something strange with the radID column name. I need to fire a specific tool to really watch what happened. I have to search on my SSD for it and come back later.
I copied the radID line from the right ListBox (image above) and paste it into TextEdit (macOS): no gremlin in the text. I will add a bread in the code and watch what can be seen in the debugger.
I use the free version of Beekeeper Studio. Runs on macOS, linux and Windows and supports MySQL, PostgreSQL, SQLite and SQL Server. You can even connect via SSH to a remote database:
I think the dodgy characters are either being stripped out are not visible. Try using the cursor keys to see if the cursor appears to stick when it should move.
If I open the database in SQLite Manager, copy the Create statement and paste it into BBEdit and then do a hex dump I see the following:
If you display the create stable statement with UTF8 encoding, you see nothing; but with a Macintosh encoding and Kevin hex too, you can see “garbage” before the Column name.
@GarryPettet can open the CSV file with a text editor, and remove not just radID in the header, but chars to the left and right of that, and then carefully enter those characters back. That way, the characters deleted will contain the NO-BREAK-SPACE.
That’s not where the problem lies, though. The original CSV file from which the Radiologists table and its columns was created, has a UTF-8 non-breaking space as the first char of the radID column name in the header line of the CSV file. This can be removed by editing and the database recreated.