suppose i m making a website where i have 3 group of people G1,G2,G3 ..i need to perform various operation ,depending on groups..But operations will be on any one group(no inter group operation).
For example there will be NO sql query like G1.pid=G2.pid..Nothing Mixed..
now suppose i have 3 persons(name,age) under 3 groups. total 9 records..then what design should i take among these two?
Design 1:
One single table Person Details(GID,Pid,Name,age) where PK(gid,pid) and insert 9 tuples here.
design 2:
three different table for three groups ,each of 3 records.then perform operation on them
now second approach is more modular.
But according to performance, speed Which one should i take?