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:
2026-03-31 07:03:08 -04:00
parent b0519352cc
commit 2e25ec7b8c
2 changed files with 2 additions and 2 deletions

View File

@@ -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'