344 views
0 votes
0 votes
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?

Please log in or register to answer this question.

Related questions

4 votes
4 votes
4 answers
2
Parshu gate asked Nov 13, 2017
758 views
Consider a relation R(ABCD) is decomposed into R1(AC), R2(BD) based on some set of functional dependencies then R1 and R2 definitely be in _______________ Normal Form.