Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Informix 7.1 and SQL Expression

Status
Not open for further replies.
Mar 19, 2003
57
US
Anyone know how to write a SQL Expression on Informix 7.1 for the following formula that I'm using to Group By?

Numbervar minextract := minute({acdgroupstats.d_time});
Stringvar amdmins;

if minextract <= 15 then amdmins := time(hour({acdgroupstats.d_time}),00,00) & "-" & time(hour({acdgroupstats.d_time}),29,00) else
if minextract >= 30 then amdmins := time(hour({acdgroupstats.d_time}),30,00) & "-" & time(hour({acdgroupstats.d_time}),59,00);

amdmins;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top