Fall back to item_descrip2 when item_descrip1 is empty
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
SELECT
|
||||
i.item_number AS "Item Number",
|
||||
i.item_descrip1 AS "Description",
|
||||
COALESCE(NULLIF(i.item_descrip1, ''), i.item_descrip2) AS "Description",
|
||||
CASE i.item_type
|
||||
WHEN 'P' THEN 'Purchased'
|
||||
WHEN 'M' THEN 'Manufactured'
|
||||
|
||||
Reference in New Issue
Block a user