so, you have 40 tables in your schema. Some of them have a column called APP_ID. and you only want to select from those tbales that have this column?
If yes? query catalog for the list of tables that has this column. use that list to build your select statement. There are many way to accomplish this. I would probably script it, let it rip and go to lunch
