Please Help :) MySQL [+rep]
#5

Once more a perfect example of how a table should not look like. Anything that has a number in it belongs in a separate table.

groupid {PK, FK} rank {PK} description pay
5 0 Intern 5000
5 1 Agent 15000
5 2 Senior Agent 20000

I reckon that this is a lot easier to read and a lot easier to work with. It also allow for virtually unlimited ranks and it doesn't waste space if a rank isn't used. The same goes for 'division' and the guns and their associated costs.
Reply


Messages In This Thread
Please Help :) MySQL [+rep] - by Tidzii - 02.02.2015, 22:52
Re: Please Help :) MySQL [+rep] - by Nightmares - 03.02.2015, 09:43
Re: Please Help :) MySQL [+rep] - by Tidzii - 03.02.2015, 14:58
Re: Please Help :) MySQL [+rep] - by MehranGta - 03.02.2015, 15:14
Re: Please Help :) MySQL [+rep] - by Vince - 03.02.2015, 16:04
Re: Please Help :) MySQL [+rep] - by Tidzii - 04.02.2015, 11:41

Forum Jump:


Users browsing this thread: 5 Guest(s)