-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Closed
Labels
Description
I need to be able to run a query that will yield a warning, but I still want to be able to get the results.
SELECT
c.customer_number,
COUNT(DISTINCT o.ORDER_NUMBER),
COUNT(DISTINCT q.QUOTE_NUMBER)
FROM
Customer c
LEFT JOIN Orders o on c.customer_number = o.party_number
LEFT JOIN Quote q on c.customer_number = q.account_number
GROUP BY
c.customer_number
This query will generate a warning about NULL
column in aggregate function.
I really can't find a way to get around this warning and still use a similar query (more details: http://stackoverflow.com/questions/29855456/count-null-columns-as-zeros-with-oracle)
Anyway, the callback function for execute
when this query is run will only populate the err
and will not return the results even though the query is otherwise valid -- I can run it in other contexts and get the exact data that I need.
There should be a setting that allows you to ignore or suppress warnings or to still get data from the query even if there is a warning.