there are 4 tables:A,B,C,D
there is an id:4(input)
the query should print the number of times the id is present in the tables
EX:
in table A id:4 occurs 5 times
in table B id:4 occurs 7 times
in table C id:4 occurs 3 times
in table D id:4 occurs 1 times
output:
Table name No of occurence
A 5
B 7
C 3
D 1