Skip to content
Advertisement

Oracle SQL count same field across multiple tables

I have an oracle database that has the same name field in multiple tables. It kind of looks like this:

The common field in each table can either be ‘yes’, ‘no’, or null. I’m trying to get the value counts of all the fields in one query, but I can’t figure it out. Basically I want this:

I have this so far, but it only really works for one table, not multiple.

Advertisement

Answer

You can try using join

User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement