Click here to Skip to main content
15,913,685 members
Home / Discussions / Database
   

Database

 
Questionregarding foreignkey data Pin
kheer24-Aug-09 23:12
kheer24-Aug-09 23:12 
AnswerRe: regarding foreignkey data Pin
dotnetcsharpdev24-Aug-09 23:33
dotnetcsharpdev24-Aug-09 23:33 
GeneralRe: regarding foreignkey data Pin
kheer24-Aug-09 23:58
kheer24-Aug-09 23:58 
GeneralRe: regarding foreignkey data Pin
dotnetcsharpdev25-Aug-09 0:16
dotnetcsharpdev25-Aug-09 0:16 
GeneralRe: regarding foreignkey data Pin
Ashfield26-Aug-09 1:44
Ashfield26-Aug-09 1:44 
GeneralRe: regarding foreignkey data Pin
kheer26-Aug-09 22:01
kheer26-Aug-09 22:01 
QuestionMerging multi results into one row Pin
Wouter Coinless24-Aug-09 9:12
Wouter Coinless24-Aug-09 9:12 
AnswerRe: Merging multi results into one row Pin
Luc Pattyn24-Aug-09 9:39
sitebuilderLuc Pattyn24-Aug-09 9:39 
That doesn't look the way I think it should. I'd rather have a table with more rows and fewer columns, and because of normalization I'd suggest two tables, one with names, one with access rights:

ID					Name
918a6fb8-573f-4744-b4de-019bc8322ce4	Gast
013b4a2b-3027-41b6-a7e1-e0e536dd0bbc	Administrator


ID					AccessNumber	AccessRight
918a6fb8-573f-4744-b4de-019bc8322ce4	1		False
918a6fb8-573f-4744-b4de-019bc8322ce4	2		False
918a6fb8-573f-4744-b4de-019bc8322ce4	3		False
918a6fb8-573f-4744-b4de-019bc8322ce4	4		False
918a6fb8-573f-4744-b4de-019bc8322ce4	5		True
etc.
013b4a2b-3027-41b6-a7e1-e0e536dd0bbc	4		False


which would be much easier to query (you can join on ID; you can select on right=true, etc), as well as easier to extend when new access numbers become necessary.

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]

The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Show formatted code inside PRE tags, and give clear symptoms when describing a problem.

AnswerRe: Merging multi results into one row Pin
Eddy Vluggen24-Aug-09 9:51
professionalEddy Vluggen24-Aug-09 9:51 
AnswerRe: Merging multi results into one row Pin
Wouter Coinless24-Aug-09 9:54
Wouter Coinless24-Aug-09 9:54 
QuestionXML Save and Load to SQL Server 2005 database. Pin
ashwath197924-Aug-09 1:55
ashwath197924-Aug-09 1:55 
AnswerRe: XML Save and Load to SQL Server 2005 database. Pin
Henry Minute24-Aug-09 2:18
Henry Minute24-Aug-09 2:18 
AnswerRe: XML Save and Load to SQL Server 2005 database. Pin
N a v a n e e t h24-Aug-09 6:19
N a v a n e e t h24-Aug-09 6:19 
GeneralRe: XML Save and Load to SQL Server 2005 database. Pin
ashwath197925-Aug-09 1:40
ashwath197925-Aug-09 1:40 
GeneralRe: XML Save and Load to SQL Server 2005 database. Pin
N a v a n e e t h25-Aug-09 2:06
N a v a n e e t h25-Aug-09 2:06 
RantFound some strange code. [moved] Pin
Gandalf_TheWhite24-Aug-09 1:23
professionalGandalf_TheWhite24-Aug-09 1:23 
GeneralRe: Found some strange code. Pin
PIEBALDconsult24-Aug-09 4:08
mvePIEBALDconsult24-Aug-09 4:08 
QuestionTransferring SQL Express data Pin
hairy_hats24-Aug-09 0:07
hairy_hats24-Aug-09 0:07 
AnswerRe: Transferring SQL Express data Pin
Henry Minute24-Aug-09 0:29
Henry Minute24-Aug-09 0:29 
GeneralRe: Transferring SQL Express data Pin
hairy_hats24-Aug-09 0:36
hairy_hats24-Aug-09 0:36 
GeneralRe: Transferring SQL Express data Pin
Henry Minute24-Aug-09 5:51
Henry Minute24-Aug-09 5:51 
QuestionDatabase design questions Pin
Saksida Bojan23-Aug-09 22:51
Saksida Bojan23-Aug-09 22:51 
AnswerRe: Database design questions Pin
Mycroft Holmes23-Aug-09 23:34
professionalMycroft Holmes23-Aug-09 23:34 
GeneralRe: Database design questions Pin
Saksida Bojan23-Aug-09 23:51
Saksida Bojan23-Aug-09 23:51 
AnswerRe: Database design questions Pin
N a v a n e e t h24-Aug-09 6:33
N a v a n e e t h24-Aug-09 6:33 

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.