I have three tables
Table1
col1, col2
Table2
col1, col2
table3
col1, col2, col3
col2 of table2 is a foreign key refering tabl1(col1)
col2 of table3 is a foreign key refering table2(col1)
I want to get for each col1 in table1, how many distinct values of col3 are there in table3
I tryed...