i have two table A , table B
table A has ID(primary key), dept, ....
table B has ID(Primary Key), type, date....
let say i have dept as D1, D2, D3 in 10, 20 , 30 numbers in table A
ie count(D1) is 10....
table B might have a certain record corresponding to ID in table A let say
it has 1...