Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
尝试这个:
SELECT ItemCode, CASE WHEN artfilename IS NULL THEN 'NoArtwork' ELSE fileLocation END FROM OITM LEFT OUTER JOIN artfileStatus ON OITM.ItemCode = SUBSTRING(artfileStatus.artfilename , 1, 6)