YoungManRiver
IS-IT--Management
I can't run a simple query in my CR to do:
select count(code) from transactions
where code
in ('001', '002', '003', '004', 'E01', 'E02', 'E03', 'E04')
and userid = groupname.userid
and datediff('day',cdate,NOW(*)) =0
This is where my transaction table contains the following:
userid ==> derived from my user table
code ==> the transaction code derived from the codes table
cdate ==> day transaction was recorded/created
I need to count these transactions from today back 14 days and put them into my report in fields of:
today, today-1, today-2, etc.
I just can not get the query to run or save without errors, but it works fine in SyBase Central or Interactive SQL.
Please help!
YMR
select count(code) from transactions
where code
in ('001', '002', '003', '004', 'E01', 'E02', 'E03', 'E04')
and userid = groupname.userid
and datediff('day',cdate,NOW(*)) =0
This is where my transaction table contains the following:
userid ==> derived from my user table
code ==> the transaction code derived from the codes table
cdate ==> day transaction was recorded/created
I need to count these transactions from today back 14 days and put them into my report in fields of:
today, today-1, today-2, etc.
I just can not get the query to run or save without errors, but it works fine in SyBase Central or Interactive SQL.
Please help!
YMR