
help, no logro hacer que funcione, sigo teniendo problemas con
Publicado por jose (1 intervención) el 24/04/2023 22:46:24
Hola chicos,
soy nuevo en postgress pero trato de pasar este codigo legacy de teradata y me sigue dando error
schema "dbc" does not exist
Mepodrian ayudar ?¿
soy nuevo en postgress pero trato de pasar este codigo legacy de teradata y me sigue dando error
schema "dbc" does not exist
Mepodrian ayudar ?¿
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
SELECT f.flagspace
FROM (SELECT
CASE
WHEN a.max_space_table_diff_qty > COALESCE(b.currentperm_hist, 0) THEN
'S'
ELSE 'N'
END AS flagspace
FROM
(SELECT publish_information_id,
service_information_id,
CAST (COALESCE(max_space_table_diff_qty,
0) AS INTEGER) AS max_space_table_diff_qty
FROM ${CTL_DB}.settings_precedent_fx
WHERE publish_information_id = '1003'
AND service_information_id = '1032') AS a LEFT OUTER
JOIN
(SELECT publish_information_id,
service_information_id,
CAST (COALESCE(SUM(currentperm) / 1024 / 1024,
0) AS INTEGER) AS currentperm_hist
FROM dbc.tablesize AS dbc
INNER JOIN ${CTL_DB}.settings_precedent_fx AS spf
ON (dbc.tablename = spf.service_info_table_name)
WHERE CurrentPerm_HIST.databasename = '$BBDD_HIST'
AND publish_information_id = '1003'
AND service_information_id = '1032'
GROUP BY 1, 2) AS b
ON (a.publish_information_id = b.publish_information_id
AND a.service_information_id = b.service_information_id)) AS f
WHERE f.flagspace = 'S';
Valora esta pregunta


0