I searched and searched for a solution to my problem, and although I found some that might help, I'm not sure if this is the right way to do this for what I need. Keep in mind that I'm learning and quite new to SQL. But I have two tables that I want to query using an internal join.
Both tables have a column named CAVITY , but they contain values ββin different formats. One table holds the value as H02, and the other table has the value as 2.
I want to enable the inner join in this column using the H02 format, but I do not want to UPDATE the table containing the value as a single number (for data entry purposes). For example, if a column with one table has H02 and the other has 2, I want it to be joined. If one table has H13 and the other 13, I want it to be a join too. So basically I want to remove H and 0 (but only if there is 0 that immediately follows H). If there is a way to do the opposite and add H / H0 from the results of another table.
example data table1.cavity table2.cavity H01 = 1 H02 = 2 H10 = 10 H12 = 12
It doesn't matter to me whether my query results are version H0 or not; I just need teams to work; I can adapt to the result at the end.
I am using SQL Server 2005
I have the rest of the request and it works fine; I just need to add an extra add. Please help! Any help MAY BE RECOGNIZED. thank you
source share