Comparing two sql values that are almost the same.
I know this is simple but I can’t think how to do it
I want to do a join or a “select where = ” on two values in two tables.
Problem is one table has a filname with an extension and the other has the filename without the extension. I want to ignore the extension and just do my compare.
How would I do that?
I have something simple like this.
select thing1, thing2
where tableName.filename=tableName2.fileName
from tableName,tableName2
Please don’t use a multi-part
fromclause. Use thejoinsyntax instead.Assuming
tableNamehas the extension andtableName2does not: