0
4

1 回答 1

1

尝试这个:

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)
于 2013-04-19T16:02:26.083 回答