-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Berechnung des Vormonats in die SQL-Query verlagert und so zuverlässi…
…ger gestaltet
- Loading branch information
Wolfgang Wiedermann
committed
Jan 12, 2015
1 parent
4e3de36
commit 05c5a30
Showing
4 changed files
with
35 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
/* | ||
* Hilfstabelle für Monatsinterne Darstellung einzeln anlegen | ||
*/ | ||
create table fi_hlp_days (xday int not null primary key); | ||
|
||
insert into fi_hlp_days | ||
select xday | ||
from | ||
(select (a.day*10)+b.day as xday | ||
from (select 0 as day union select 1 union select 2 union select 3) as a, | ||
(select 1 as day union select 2 union select 3 union select 4 union select 5 union select 6 union | ||
select 7 union select 8 union select 9 union select 0) as b | ||
) as days | ||
where days.xday > 0 and days.xday < 32; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters