Quantcast
Channel: dBforums – Everything on Databases, Design, Developers and Administrators
Viewing all articles
Browse latest Browse all 13329

How to subtract 1 minute from time

$
0
0
Hi experts,

I have a query contains from time and to time parameters.
I need to subtract 1 minute from totime parameter.
I used totime-1.
It is working in database level and it is not working in my crystal reports.I mean it is subtracting 1 hour in report level.
Can any one please tell me other formula for subtracting a minute.
Please find the where condition in my query

where
ccsr.store_date = {?Transaction Date}
and ccsr.value_type='B'
and (cast(time_format(ccsr.transaction_time,'%H') as unsigned) between
{?From Time} and ({?To Time}-1))
group by
ccsr.brand_code
) cons




Thanks in advance,
Divya

Viewing all articles
Browse latest Browse all 13329

Trending Articles