Click here to Skip to main content
15,929,978 members
Home / Discussions / Database
   

Database

 
AnswerRe: Null handling oddity Pin
PIEBALDconsult20-Jan-12 15:29
mvePIEBALDconsult20-Jan-12 15:29 
GeneralRe: Null handling oddity Pin
thrakazog23-Jan-12 8:14
thrakazog23-Jan-12 8:14 
AnswerRe: Null handling oddity Pin
Jörgen Andersson21-Jan-12 1:37
professionalJörgen Andersson21-Jan-12 1:37 
AnswerRe: Null handling oddity Pin
Corporal Agarn23-Jan-12 5:09
professionalCorporal Agarn23-Jan-12 5:09 
GeneralRe: Null handling oddity Pin
thrakazog23-Jan-12 8:12
thrakazog23-Jan-12 8:12 
AnswerRe: Null handling oddity Pin
jschell23-Jan-12 8:33
jschell23-Jan-12 8:33 
GeneralRe: Null handling oddity Pin
thrakazog23-Jan-12 10:54
thrakazog23-Jan-12 10:54 
QuestionUser Group Membership Pin
eddieangel19-Jan-12 11:40
eddieangel19-Jan-12 11:40 
More of a theory question than anything. I have a website where people who register fall under two different user types, say attorney and client for example.

If a person registers as a lawyer, they fill out a lawyer profile. If they register as a client, they fill out a client profile. The two profiles are different.

So I am trying to figure this out from a database standpoint. Do you think the best bet is a three table setup?

User
------
ID
Email
Password
User_Type (1 for lawyer, 2 for client)

Lawyer
-------
ID (AI field)
User_ID
First
Last
etc

Client
--------
ID (AI field)
User_id
First
Last
Violation
etc...

Or I could do a two table with just Lawyer and Client and check both tables at login time? It would be more code intensive but less data. What is a good approach here? Open to suggestions.

Cheers, --EA
AnswerRe: User Group Membership Pin
Mycroft Holmes19-Jan-12 12:01
professionalMycroft Holmes19-Jan-12 12:01 
GeneralRe: User Group Membership Pin
eddieangel19-Jan-12 12:05
eddieangel19-Jan-12 12:05 
GeneralRe: User Group Membership Pin
Mycroft Holmes19-Jan-12 13:00
professionalMycroft Holmes19-Jan-12 13:00 
GeneralRe: User Group Membership Pin
eddieangel19-Jan-12 14:30
eddieangel19-Jan-12 14:30 
GeneralRe: User Group Membership Pin
Mycroft Holmes19-Jan-12 14:40
professionalMycroft Holmes19-Jan-12 14:40 
GeneralRe: User Group Membership Pin
eddieangel20-Jan-12 6:16
eddieangel20-Jan-12 6:16 
GeneralRe: User Group Membership Pin
eddieangel20-Jan-12 6:51
eddieangel20-Jan-12 6:51 
GeneralRe: User Group Membership Pin
Jörgen Andersson21-Jan-12 1:43
professionalJörgen Andersson21-Jan-12 1:43 
GeneralRe: User Group Membership Pin
jschell20-Jan-12 12:51
jschell20-Jan-12 12:51 
AnswerRe: User Group Membership Pin
SilimSayo25-Jan-12 9:41
SilimSayo25-Jan-12 9:41 
QuestionConnectivity Options - selecting datasources on the fly Pin
john john mackey19-Jan-12 8:09
john john mackey19-Jan-12 8:09 
AnswerRe: Connectivity Options - selecting datasources on the fly Pin
Jörgen Andersson20-Jan-12 12:29
professionalJörgen Andersson20-Jan-12 12:29 
QuestionWhere to get suitable SQL Server Management Studio? Pin
adityarao3119-Jan-12 0:34
adityarao3119-Jan-12 0:34 
AnswerRe: Where to get suitable SQL Server Management Studio? Pin
Pete O'Hanlon19-Jan-12 0:42
mvePete O'Hanlon19-Jan-12 0:42 
AnswerRe: Where to get suitable SQL Server Management Studio? Pin
adityarao3119-Jan-12 18:01
adityarao3119-Jan-12 18:01 
QuestionConditional clause form two tables in sql server Pin
Seema Bawa18-Jan-12 12:48
Seema Bawa18-Jan-12 12:48 
AnswerRe: Conditional clause form two tables in sql server Pin
_Damian S_18-Jan-12 13:03
professional_Damian S_18-Jan-12 13:03 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.