22 lines
294 B
SQL
22 lines
294 B
SQL
-- PublicreportPublicIDSuggestion
|
|
SELECT
|
|
'nuisance' AS table_name,
|
|
public_id,
|
|
location
|
|
FROM
|
|
publicreport.nuisance
|
|
WHERE
|
|
public_id LIKE $1
|
|
|
|
UNION ALL
|
|
|
|
SELECT
|
|
'pool' AS table_name,
|
|
public_id,
|
|
location
|
|
FROM
|
|
publicreport.pool
|
|
WHERE
|
|
public_id LIKE $1
|
|
ORDER BY
|
|
public_id;
|