Reply to Re: How to find a lower date

Your name:

Reply:


Posted by Grey on 01/04/07 13:50

> Assuming no operation will exceed 24 hours it might look something like
> this:
>
> SELECT dateid,
> date as startdate,
> starttime,
> CASE
> WHEN endtime > starttime
> THEN convert(datetime,date)
> ELSE convert(datetime,date)+ 1
> END AS EndDate,
> endtime
> FROM Table1

Thats too easy. Table contains values from serveral hundreds of days. each
day has an id dateid like 458, 459, etc.
I have to go trough all table finding times past midninght for given group
and change the date to correct one.

Grey


>
>
>
>>
>> Any solution?
>> Grey
>>
>>
>
>

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация