Click here to Skip to main content
15,914,010 members
Home / Discussions / Database
   

Database

 
QuestionHow to get a multi colum select with one colum SELECT DISTINCT with only one command ? Pin
fracalifa29-Jan-08 0:24
fracalifa29-Jan-08 0:24 
AnswerRe: How to get a multi colum select with one colum SELECT DISTINCT with only one command ? Pin
Kschuler29-Jan-08 4:40
Kschuler29-Jan-08 4:40 
GeneralRe: How to get a multi colum select with one colum SELECT DISTINCT with only one command ? Pin
fracalifa29-Jan-08 21:41
fracalifa29-Jan-08 21:41 
GeneralRe: How to get a multi colum select with one colum SELECT DISTINCT with only one command ? Pin
Kschuler30-Jan-08 3:21
Kschuler30-Jan-08 3:21 
GeneralRe: How to get a multi colum select with one colum SELECT DISTINCT with only one command ? Pin
fracalifa30-Jan-08 4:40
fracalifa30-Jan-08 4:40 
AnswerRe: How to get a multi colum select with one colum SELECT DISTINCT with only one command ? Pin
Pete O'Hanlon29-Jan-08 5:07
mvePete O'Hanlon29-Jan-08 5:07 
GeneralSingle quote error in tsql statement Pin
veereshIndia28-Jan-08 22:22
veereshIndia28-Jan-08 22:22 
GeneralRe: Single quote error in tsql statement Pin
alexrad28-Jan-08 23:32
alexrad28-Jan-08 23:32 
this is working !

DECLARE @IDNAL VARCHAR(36)
DECLARE @ID_STAVKE VARCHAR(36)
DECLARE @IDDOC VARCHAR(36)
DECLARE @IDVL VARCHAR(36)
DECLARE @IDLOK VARCHAR(36)
DECLARE @NEVALJA CHAR(1)
DECLARE @RECENICA AS VARCHAR(5000)
DECLARE @LOCAL_KONTO AS VARCHAR(36)
DECLARE @ID_FORMULE AS VARCHAR(36)
DECLARE @FORMULA AS VARCHAR(500)

SET @MySTRING='
UPDATE #A SET
#A.col001=#A.col001+COALESCE((SELECT ('+@FORMULA+') FROM #LOCAL_STAVKE
WHERE #LOCAL_STAVKE.VD='''+@IDDOC+'''
AND #LOCAL_STAVKE.KONTO= CASE '''+@LOCAL_KONTO+'''
WHEN '''' THEN #LOCAL_STAVKE.KONTO ELSE '''+@LOCAL_KONTO+''' END
AND #LOCAL_STAVKE.ID=#A.IDNALOGA ),0)'

EXECUTE(@MySTRING)
General[Message Deleted] Pin
trilokharry28-Jan-08 17:52
trilokharry28-Jan-08 17:52 
GeneralRe: to get day, month, year seperate from date format Pin
Tobias Schoenig28-Jan-08 19:30
Tobias Schoenig28-Jan-08 19:30 
GeneralRe: to get day, month, year seperate from date format Pin
trilokharry28-Jan-08 20:01
trilokharry28-Jan-08 20:01 
GeneralRe: [Message Deleted] Pin
Colin Angus Mackay29-Jan-08 2:53
Colin Angus Mackay29-Jan-08 2:53 
QuestionMigrate MySQL to SQL Server 2000 or 2005??? Pin
code-frog28-Jan-08 16:20
professionalcode-frog28-Jan-08 16:20 
Questionour forum has msgs > 8K Pin
shefali_sinha28-Jan-08 11:06
shefali_sinha28-Jan-08 11:06 
GeneralRe: our forum has msgs > 8K Pin
Mark Churchill28-Jan-08 13:34
Mark Churchill28-Jan-08 13:34 
GeneralRe: our forum has msgs > 8K Pin
shefali_sinha10-Feb-08 12:29
shefali_sinha10-Feb-08 12:29 
GeneralRe: our forum has msgs > 8K Pin
Mark Churchill10-Feb-08 12:59
Mark Churchill10-Feb-08 12:59 
GeneralStoring Temp Data to a View Pin
dboy22128-Jan-08 6:11
dboy22128-Jan-08 6:11 
QuestionRe: Storing Temp Data to a View Pin
Mike Ellison28-Jan-08 14:40
Mike Ellison28-Jan-08 14:40 
Generalsql 3624 Pin
alexrad28-Jan-08 6:05
alexrad28-Jan-08 6:05 
GeneralRe: sql 3624 Pin
pmarfleet28-Jan-08 8:25
pmarfleet28-Jan-08 8:25 
GeneralRe: sql 3624 Pin
alexrad28-Jan-08 9:32
alexrad28-Jan-08 9:32 
GeneralRe: sql 3624 Pin
pmarfleet28-Jan-08 10:09
pmarfleet28-Jan-08 10:09 
GeneralRe: sql 3624 Pin
Mike Dimmick29-Jan-08 0:16
Mike Dimmick29-Jan-08 0:16 
GeneralRe: sql 3624 Pin
alexrad29-Jan-08 0:28
alexrad29-Jan-08 0: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.