bi_dosv_inventory_c2db/sql/valid_data_exists.sql
2025-05-26 15:27:48 -06:00

8 lines
136 B
SQL

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