Fix missing rows
This commit is contained in:
parent
b8904ccfac
commit
ef5d744209
@ -1,13 +1,14 @@
|
|||||||
CREATE OR REPLACE VIEW logs_overview AS
|
CREATE OR REPLACE VIEW logs_overview AS
|
||||||
WITH x AS (
|
WITH x AS (
|
||||||
SELECT
|
SELECT
|
||||||
app.get_item('$FLAG') AS flag,
|
app.get_item('$FLAG') AS flag,
|
||||||
app.get_item('$PAGE_ID') AS page_id,
|
app.get_item('$PAGE_ID') AS page_id,
|
||||||
app.get_item('$USER_ID') AS user_id,
|
app.get_item('$USER_ID') AS user_id,
|
||||||
app.get_item('$SESSION_ID') AS session_id,
|
app.get_item('$SESSION_ID') AS session_id,
|
||||||
TRUNC(app.get_date_item('$TODAY')) AS today
|
--
|
||||||
|
TRUNC(COALESCE(app.get_date_item('$TODAY'), app.get_date_item('G_TODAY'), SYSDATE)) AS today
|
||||||
FROM users u
|
FROM users u
|
||||||
WHERE u.user_id = app.get_user_id()
|
WHERE u.user_id = app.get_user_id()
|
||||||
)
|
)
|
||||||
SELECT
|
SELECT
|
||||||
l.log_id,
|
l.log_id,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user