473,385 Members | 1,325 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

does the table follow normalization

375 256MB
id userid categoryid reporting to
1 user1 cat1 null
2 user2 cat2 null
3 user3 cat3 user2
4 user4 cat3 user2
5 user5 cat3 user2
6 user6 cat4 user3
7 user7 cat4 user3


In the above said table User id will be unique.

If we want to know what is their designation then it is in the field Category Id
Here Cat1 stands for admin
Cat2 stands for manager
Cat3 stands for QC
Cat4 stands for operator
Now each and every user will report to his corresponding superior which is stored in a file called as "Reporting to"

If i want to trace out the no. of details of each operator following under a particular admin

in such a case, i have to trace out the person he is "reporting to", thereafter find out under whom the "reporting to" person is under.
Find out whether his category is CAT2. yes then ok else find out his reporting person and therafter his category till u reach out the CAT2.



All i want to know is whether this is a good database design.
and does it follow the normalization.

Regards
cmrhema
Feb 15 '08 #1
1 933
ck9663
2,878 Expert 2GB
id userid categoryid reporting to
1 user1 cat1 null
2 user2 cat2 null
3 user3 cat3 user2
4 user4 cat3 user2
5 user5 cat3 user2
6 user6 cat4 user3
7 user7 cat4 user3


In the above said table User id will be unique.

If we want to know what is their designation then it is in the field Category Id
Here Cat1 stands for admin
Cat2 stands for manager
Cat3 stands for QC
Cat4 stands for operator
Now each and every user will report to his corresponding superior which is stored in a file called as "Reporting to"

If i want to trace out the no. of details of each operator following under a particular admin

in such a case, i have to trace out the person he is "reporting to", thereafter find out under whom the "reporting to" person is under.
Find out whether his category is CAT2. yes then ok else find out his reporting person and therafter his category till u reach out the CAT2.



All i want to know is whether this is a good database design.
and does it follow the normalization.

Regards
cmrhema
I think you're in the right direction.

-- CK
Feb 15 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Muzamil | last post by:
hello I've a denormalized table PRODUCTS with following fields: ProductNo , OrderNo , SerialNo , OrderDate , PromiseDate ,
6
by: DH | last post by:
I have a VERY basic question about figuring database size. I've inherited a database which is generally similar to this basic one: Item, Red, Blue, Green, Yellow (text), (int),(int),(int),(int)...
1
by: E.U. | last post by:
Hi, I an using MS-Access in order to build a site. I have this item that can have upto 10 pictures (might have none) I want to design a dynamic table which has the ID of the item at the first...
15
by: marko | last post by:
Hi! A have a problem. I have a table containing ID,Brend,Model,Colour,Price. The Colour field has colours like: YELLOW/BLACK/RED, YELLOW/RED, BLUE, BLUE/NAVY/RED/CHARCOAL. Now i would like to...
9
by: PeteCresswell | last post by:
I've got something called "Reference Rates". The idea is that on a given day, we have various rates of return for various entities. e.g. Libor 3-month return, Libor 6-month return, US Treasury...
9
by: john | last post by:
I have imported an Excel spreadsheet in Access. This table has 150 fields. The first field is 'user name', and all the other fields represent application names of which the value can be True of...
4
by: yanjie.ma | last post by:
Hi, I've got a two part question on table and form design (sorry for the length but it takes a bit to explain). Our sales department uses a look-up table to help the them select the best...
22
by: klenwell | last post by:
I'm in the process of refactoring the php code base I've amassed over the last few years into an object-oriented framework. I'm about to start in on the authentication/login extension and I've...
23
by: raylopez99 | last post by:
A quick sanity check, and I think I am correct, but just to make sure: if you have a bunch of objects that are very much like one another you can uniquely track them simply by using an ArrayList...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.