I have a basic knowledge of SQL using Tables but I only have access to SQL Views and I want to do these tasks frequently
a) List the View name which contains the column name "SEX"
This is what I did wrote for searching view names with specific column
values
select distinct TABLE_NAME
from INFORMATION_SCHEMA.COLUMNS
where COLUMN_NAME in ('Sex')
and TABLE_SCHEMA = 'BTJrView' ;
I get an error Relation 'COLUMNS' does not exist
b) List the View names that contain column value "IFX"
Need help with these two cases
Again, I am working with Views dont have access to Tables