Table A
Id name phone
1 sam 7753457893
2 tom 7753457893
3 pop 7753457893
4 john 7753457893
table B
name phone
sam 7753457893
tom 7753457893
pop 7753457893
john 7753457893
How to find if all the columns in table A are present in table B or not. I tried using except but I am getting a compilation error "invalid no of columns for set operator input branches, expected 22, got 11 ".I used this query "select * from table B except select * from table A". Table A has 22 columns and table B has 11 columns. I need a query to know that all the columns in table B are in table A
Basically I want to know table B is a subset of table A or not.