An example of what I am attempting to do:
SELECT count(*) as "count"
FROM (
SELECT overlay('db_xx.company_summary' placing 'US' from 4)
) as s
This returns count to be 1, while there are many rows in the table db_us.company_summary
.
I would expect it to count all rows, similar to this query:
SELECT count(*) as "count"
FROM db_us.company_summary
I attempted the overlay function, to be similar to the above query. I am not sure if its possible to do this in SQL.
In Python you would do something like this:
"hello {}".format("world")
So I would like the input string to act as a SQL syntax command.