Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Stephane Crozat
apisub
Commits
f3da8246
Commit
f3da8246
authored
Feb 05, 2019
by
Stephane Crozat
Browse files
fix
#24
, using ww instead of IW
parent
96c1bbc3
Changes
1
Hide whitespace changes
Inline
Side-by-side
sql/apisub_views.sql
View file @
f3da8246
...
...
@@ -21,7 +21,7 @@ SELECT
TO_CHAR
(
dbegin
,
'TMday FMDD TMmonth'
)
AS
normdbegin
,
CASE
WHEN
code
<
10
THEN
'000'
||
code
WHEN
code
>=
10
THEN
'00'
||
code
END
AS
normcode
,
TO_CHAR
(
dbegin
+
duration
-
1
,
'TMday FMDD TMmonth'
)
AS
normdend
,
TO_CHAR
(
dbegin
,
'
ww
'
)
AS
week
,
TO_CHAR
(
dbegin
,
'
IW
'
)
AS
week
,
TO_CHAR
(
dbegin
,
'yyyy'
)
AS
year
,
semester
(
dbegin
)
AS
semester
,
COALESCE
(
countsub
,
0
)
AS
nbsub
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment