Tagged Questions
3
votes
2answers
2k views
Select column names whose entries are not null
I would like to have a list of those columns of a table that have at least one not-NULL data entries in them.
In other words, I would like to get the column names for which the following returns at ...
1
vote
1answer
536 views
How do I perform a UNION query on a dynamic list of tables?
My database has an unknown amount of tables, named with the same prefix followed by a random string: _ct_<random_string>.
Each of these tables has the same data structure.
I also have another ...