Suppose take a bank table.It is having the 2 columns.
cid and name.cid is having primay key .
one more table is there bank2.it is having the cid column and it references from bank(cid).
How to draw the er diagram for this and how to draw the composite primary key and composite foreign key in er diagrams?