Re: SQL Time Construct

2004-06-11 Thread Mahesh Tailor
Would this work? select entity,\ cast((cast(sum(bytes) as decimal(20,3))/1024/1024)+.05 as \ decimal(10,1)) as "Migrated (MB)" from summary where \ time(start_time)>='18:00:00' and \ cast((current_timestamp-start_time)hours as decimal(8,0))<24 \ and activity='MIGRATION' group by entity

SQL Time Construct

2004-06-11 Thread David E Ehresman
Is there a tms sql time contruct that will allow me to query all the entries with a start time greater than yesterday at 18:00? Specifically the query is: tsm: ULTSM>select entity,cast((cast(sum(bytes) as decimal(20,3))/1024/1024)+.05 as decimal(10,1)) as "Migrated (MB)" from summary where star