Click here to Skip to main content
15,897,891 members
Home / Discussions / Database
   

Database

 
GeneralRe: SQL table field Pin
Vimalsoft(Pty) Ltd31-Jul-08 4:43
professionalVimalsoft(Pty) Ltd31-Jul-08 4:43 
GeneralRe: SQL table field Pin
Ashfield31-Jul-08 8:49
Ashfield31-Jul-08 8:49 
GeneralRe: SQL table field Pin
RyanEK31-Jul-08 18:23
RyanEK31-Jul-08 18:23 
GeneralRe: SQL table field Pin
Ashfield1-Aug-08 9:52
Ashfield1-Aug-08 9:52 
QuestionDynamic DB Connection based on user type Pin
vicky45730-Jul-08 19:28
vicky45730-Jul-08 19:28 
Questionin a stored procedure, can I directly write some lines to a txt file? Pin
alexyxj30-Jul-08 11:56
alexyxj30-Jul-08 11:56 
AnswerRe: in a stored procedure, can I directly write some lines to a txt file? Pin
goodideadave30-Jul-08 13:10
goodideadave30-Jul-08 13:10 
AnswerRe: in a stored procedure, can I directly write some lines to a txt file? Pin
SimulationofSai30-Jul-08 19:24
SimulationofSai30-Jul-08 19:24 
AnswerRe: in a stored procedure, can I directly write some lines to a txt file? Pin
Vimalsoft(Pty) Ltd30-Jul-08 20:59
professionalVimalsoft(Pty) Ltd30-Jul-08 20:59 
Questionhow to use bulk insert to import a data file with this format? Please help Pin
alexyxj30-Jul-08 9:09
alexyxj30-Jul-08 9:09 
AnswerRe: how to use bulk insert to import a data file with this format? Please help Pin
Wendelius30-Jul-08 9:48
mentorWendelius30-Jul-08 9:48 
GeneralRe: how to use bulk insert to import a data file with this format? Please help Pin
alexyxj30-Jul-08 11:23
alexyxj30-Jul-08 11:23 
GeneralRe: how to use bulk insert to import a data file with this format? Please help Pin
Wendelius30-Jul-08 11:55
mentorWendelius30-Jul-08 11:55 
Questionhow to ArrayList store whole records? Pin
zeeShan anSari30-Jul-08 6:32
zeeShan anSari30-Jul-08 6:32 
AnswerCross-post Pin
Wendelius30-Jul-08 6:48
mentorWendelius30-Jul-08 6:48 
Questionpossible database fields Pin
dream_liner_7e730-Jul-08 4:03
dream_liner_7e730-Jul-08 4:03 
AnswerRe: possible database fields Pin
SimulationofSai30-Jul-08 5:28
SimulationofSai30-Jul-08 5:28 
GeneralRe: possible database fields Pin
Paul Conrad30-Jul-08 7:13
professionalPaul Conrad30-Jul-08 7:13 
AnswerRe: possible database fields Pin
Vimalsoft(Pty) Ltd30-Jul-08 21:02
professionalVimalsoft(Pty) Ltd30-Jul-08 21:02 
Questionretrieve more than one row in one row Pin
obarahmeh29-Jul-08 23:16
obarahmeh29-Jul-08 23:16 
AnswerRe: retrieve more than one row in one row Pin
Declan Bright30-Jul-08 3:56
Declan Bright30-Jul-08 3:56 
AnswerRe: retrieve more than one row in one row Pin
leoinfo30-Jul-08 4:26
leoinfo30-Jul-08 4:26 
Yes, it is possible Smile | :)

CREATE TABLE #T (ID varchar(2), Symbol varchar(1)); 
INSERT INTO #T(ID, Symbol) SELECT '01', 'A'
INSERT INTO #T(ID, Symbol) SELECT '01', 'B'
INSERT INTO #T(ID, Symbol) SELECT '01', 'C'
INSERT INTO #T(ID, Symbol) SELECT '02', 'B'
INSERT INTO #T(ID, Symbol) SELECT '02', 'D'
--
SELECT 
  ID, 
  STUFF( 
    <code>(SELECT ' and ' + Symbol FROM #T WHERE ID = t.ID FOR XML PATH(''))</code> 
    , 1 
    , 5
    , '' 
  ) AS Symbols
FROM #T AS t
GROUP BY ID
--
DROP TABLE #T


Please... SAVE my time by rating the posts that you read!

There are 10 kinds of people in the world: those who understand binary and those who don't.

GeneralRe: retrieve more than one row in one row [modified] Pin
PIEBALDconsult31-Jul-08 4:36
mvePIEBALDconsult31-Jul-08 4:36 
JokeRe: retrieve more than one row in one row Pin
leoinfo31-Jul-08 8:56
leoinfo31-Jul-08 8:56 
GeneralRe: retrieve more than one row in one row Pin
PIEBALDconsult31-Jul-08 10:16
mvePIEBALDconsult31-Jul-08 10:16 

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.