Re: datumsberechnungen


[ ruban.de ] [ Antworten ] [ Forum ]

Geschrieben von Bunbury on Mai 19, 2004 um 14:37:

Als Antwort auf datumsberechnungen geschrieben von Andre Homberg on Mai 19, 2004 um 09:22:

hi Andre,

eine weitere Möglichkeit - allerdings etwas schreibintensiver - wäre:

select * from tabelle
where (jahr * 10000) + (monat * 100) + tag between
(year(current date - 11 days) * 10000) +
(month(current date - 11 days) * 100) +
day(current date - 11 days) and
(year(current date) * 10000) +
(month(current date) * 100) +
day(current date)

Gruß
Ernst Bunbury


Antworten:


Schreibe eine Antwort

Name:   
E-Mail:  

Thema:

Kommentar:

Optionale Link URL:   
Link Titel:                  
Optionale Image URL:


[ Antworten ] [ Forum ]