bi_dosv_inventory_c2db/sql/valid_data_exists.sql
Marvin Vallecillo 277e3089a9 -- add new field portion_quantity
-- change field name from table
2024-09-17 03:15:57 -06:00

8 lines
139 B
SQL

select
1 value
from
bi.daily_inventory
where
created_dt = STR_TO_DATE('{date}', '%Y-%m-%d')
and code = '{code}'
limit 1