Click here to Skip to main content
15,909,829 members
Home / Discussions / Database
   

Database

 
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 
AnswerRe: Merging multi results into one row Pin
Eddy Vluggen24-Aug-09 9:51
professionalEddy Vluggen24-Aug-09 9:51 
The MAX operator won't work on bits, but you can cast them to integers;
SELECT MAX(CAST(Access1 AS INT))
      ,MAX(CAST(Access2 AS INT))
      ,MAX(CAST(Access3 AS INT))
      ,MAX(CAST(Access4 AS INT))
      ,MAX(CAST(Access5 AS INT))
  FROM dbo.TestTable
You'd have to specify a decent WHERE-clause, though.

Another option would be the use of a function, that takes the ID as a parameter and which returns those five fields. It could then be used in a view Smile | :)

-- Edit --

..you should really consider Luc's post carefully, a simpeler design makes a lifetime of simple maintenance Cool | :cool:

"Every normal man must be tempted at times to spit on his hands, hoist the black flag, and begin to slit throats."

-- H.L. Mencken, US editor (1880 - 1956)

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 
GeneralRe: Database design questions Pin
Saksida Bojan24-Aug-09 7:28
Saksida Bojan24-Aug-09 7:28 

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.