I fail to understand why all the WHERE conditions.
1=1??? Is this just a thing you always do to avoid warning errors that you have no where clause?
... and substr(table_Schema,1,1) not in ('Q', '#')
When you have
and table_schema = 'DPPDATA'
D already excludes Q and #.
Let me guess your evolution.
First, I was right on the evolution on the 1=1, right?
Second, you started by specifying Q and # to only get "user" libraries?
Third, then you added just the library you wanted?
As an Amazon Associate we earn from qualifying purchases.
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.