Skip to content

Tag: oracle

SQL: finding duplicates that do not have a success message

I am struggling to return all batch_id’s that do not contain a corresponding “PASS” From the above table, i need an sql statement that only returns batch_id 104 because it never had a status of “PASS” The database is an oracle DB, therefore if its is not possible with a simple se…

Oracle SQL Roll up function or alternatives

First, I am finding an average of some data, and then formatting that average into to decimal points. And in the end, I want to use rollup to generate a total row for all columns. The problem is: I want the rollup to sum the data as they appear, however, when adding up the average it is not adding them