If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back  dBforums > General > Database Concepts & Design > ERD registration system

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old
Registered User
 
Join Date: Nov 2008
Posts: 4
ERD registration system

Iím designing a simple registration system for a website, that lets users register only if they are accepted by certain criteria (radio buttons selected) . My entities are:

Potential customers, Po_cus PK
----------------------------------------
User name, User_id PK
---------------------------------------
Password, Pass_id PK
----------------------------------------
User name, password (Composite table)
User_Id FK
Pass_Id FK
------------------------------------------------
Eligible, Pass_Id

I have created an erd however I seem to have created a loop between password, username and potential customer. Oh btw ive separated username and password for security reasons. Any ideas on how to break the loop would be handy thanks.
Reply With Quote
  #2 (permalink)  
Old
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 20,000
i don't see any connection from potential customer to any other entity at all
__________________
rudy.ca | @rudydotca
Buy my SitePoint book: Simply SQL
Reply With Quote
  #3 (permalink)  
Old
Registered User
 
Join Date: Nov 2008
Posts: 4
Sorry forgot to add,

Potential customers, Po_cus PK
----------------------------------------
User name, User_id PK
Po_cus FK
---------------------------------------
Password, Pass_id PK
----------------------------------------
User name, password (Composite table)
User_Id FK
Pass_Id FK
------------------------------------------------
Eligible, Passed_Id PK
Po_cus FK

I tend to focus more on the html side, bit new at the DB bit.

Last edited by Jetblack2; 11-04-08 at 08:29.
Reply With Quote
  #4 (permalink)  
Old
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 20,000
just curious, why did you decide to build an ERD?

and what's the logical difference between your Eligible entity and your Composite entity? they have exactly the same columns
__________________
rudy.ca | @rudydotca
Buy my SitePoint book: Simply SQL
Reply With Quote
  #5 (permalink)  
Old
Registered User
 
Join Date: Nov 2008
Posts: 4
Altered, your right made no sense. As for the reasons i thought it might make things clearer in my head , when it came to coding the application and to make the sql quires alittle easier, i hope.

Hi Just to let you know ive sorted the loop problem, if there is anything any of you would like to add or comment on feel free.

Last edited by Jetblack2; 11-04-08 at 08:56.
Reply With Quote
  #6 (permalink)  
Old
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 20,000
Quote:
Originally Posted by Jetblack2
... if there is anything any of you would like to add or comment on feel free.
separating the username and password, and then tying them together again in a relationship table... seems like a lot of extra effort for no benefit whatsoever
__________________
rudy.ca | @rudydotca
Buy my SitePoint book: Simply SQL
Reply With Quote
  #7 (permalink)  
Old
Registered User
 
Join Date: Nov 2008
Posts: 4
How about then just using a foreign key to connect them? i was doing it for security but what would you suggest. ?
Reply With Quote
  #8 (permalink)  
Old
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 20,000
how about putting the password right in the user table
__________________
rudy.ca | @rudydotca
Buy my SitePoint book: Simply SQL
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On