Hi ,
how to compare the yesterdays values and the todays in a table based on the inserted date. the output should show the difference alone. i have a separate column for updated date but i should not use (current date - 1 days) to get the yesterday's values
Pls find the description of that table.
Data type Column
Column name schema Data type name Length Scale Nulls
------------------------------- --------- ------------------- ---------- ----- ------
NAME SYSIBM VARCHAR 32 0 Yes
VALUE SYSIBM VARCHAR 256 0 Yes
VALUE_FLAGS SYSIBM VARCHAR 10 0 Yes
DEFERRED_VALUE SYSIBM VARCHAR 256 0 Yes
DEFERRED_VALUE_FLAGS SYSIBM VARCHAR 10 0 Yes
DATATYPE SYSIBM VARCHAR 128 0 Yes
DBPARTITIONNUM SYSIBM SMALLINT 2 0 Yes
UPDATED_DATE SYSIBM DATE 4 0 Yes
any help is appreciated
Thanks
TJ