Backboards: 
Posts: 153
In response to "SQL question. I can wind up exporting to Excel and doing it that way but trying to learn." by Dano

I think something like

SELECT DISTINCT VALUE FROM TABLE01
WHERE CONCAT('##',VALUE) NOT IN (SELECT ##VALUE FROM TABLE02)

I think the other way to do it would be something like

SELECT DISTINCT VALUE FROM TABLE01
WHERE VALUE NOT IN (SELECT RIGHT(##VALUE,LEN(##VALUE)-2) FROM TABLE02)


Responses:
Post a message   top
Replies are disabled on threads older than 7 days.