Click here to Skip to main content
15,905,136 members
Home / Discussions / Database
   

Database

 
QuestionAuto Increment and Decrement column data Pin
D i x y23-Nov-07 20:11
D i x y23-Nov-07 20:11 
AnswerRe: Auto Increment and Decrement column data Pin
pmarfleet23-Nov-07 23:01
pmarfleet23-Nov-07 23:01 
QuestionAggregate function on multiple table Pin
Rock Star.23-Nov-07 19:34
Rock Star.23-Nov-07 19:34 
AnswerRe: Aggregate function on multiple table Pin
pmarfleet23-Nov-07 22:55
pmarfleet23-Nov-07 22:55 
AnswerRe: Aggregate function on multiple table Pin
Pete O'Hanlon25-Nov-07 9:34
mvePete O'Hanlon25-Nov-07 9:34 
QuestionError 5172 Pin
Developer61123-Nov-07 18:54
Developer61123-Nov-07 18:54 
AnswerRe: Error 5172 Pin
pmarfleet23-Nov-07 22:58
pmarfleet23-Nov-07 22:58 
QuestionCase statement in WHERE clause Pin
moon_stick23-Nov-07 4:41
moon_stick23-Nov-07 4:41 
I'm working on a project using SSRS and have a query that may accept a multiple valued integer as one of its parameters. I want to do something like this:

<br />
AND	p.ID in (<br />
		case @pList<br />
			when '' then p.ID<br />
			else (select id from dbo.fn_split_id_integer(@pList))<br />
		end)<br />

which is fine when @Plist is empty but when it has multiple values in it the engine throws an error because multiple values are returned from the select statement, even though I'm using in rather than =.

Has anyone got any suggestions about how get this to work?

It definitely isn't definatley

AnswerRe: Case statement in WHERE clause Pin
pmarfleet23-Nov-07 5:21
pmarfleet23-Nov-07 5:21 
AnswerRe: Case statement in WHERE clause Pin
andyharman23-Nov-07 6:06
professionalandyharman23-Nov-07 6:06 
QuestionSQL SCRIPT Pin
kibromg23-Nov-07 0:39
kibromg23-Nov-07 0:39 
AnswerRe: SQL SCRIPT Pin
Hesham Amin23-Nov-07 1:02
Hesham Amin23-Nov-07 1:02 
GeneralRe: SQL SCRIPT Pin
kibromg23-Nov-07 1:15
kibromg23-Nov-07 1:15 
GeneralRe: SQL SCRIPT Pin
kibromg23-Nov-07 1:38
kibromg23-Nov-07 1:38 
GeneralRe: SQL SCRIPT Pin
KambojR23-Nov-07 2:39
KambojR23-Nov-07 2:39 
GeneralRe: SQL SCRIPT Pin
kibromg23-Nov-07 2:54
kibromg23-Nov-07 2:54 
GeneralRe: SQL SCRIPT Pin
Hesham Amin23-Nov-07 2:58
Hesham Amin23-Nov-07 2:58 
GeneralRe: SQL SCRIPT Pin
kibromg23-Nov-07 3:12
kibromg23-Nov-07 3:12 
GeneralRe: SQL SCRIPT Pin
Hesham Amin23-Nov-07 2:56
Hesham Amin23-Nov-07 2:56 
GeneralRe: SQL SCRIPT Pin
KambojR23-Nov-07 3:01
KambojR23-Nov-07 3:01 
GeneralRe: SQL SCRIPT Pin
kibromg23-Nov-07 3:02
kibromg23-Nov-07 3:02 
GeneralRe: SQL SCRIPT Pin
kibromg23-Nov-07 3:07
kibromg23-Nov-07 3:07 
GeneralRe: SQL SCRIPT Pin
Hesham Amin23-Nov-07 3:17
Hesham Amin23-Nov-07 3:17 
GeneralRe: SQL SCRIPT Pin
kibromg23-Nov-07 3:21
kibromg23-Nov-07 3:21 
GeneralRe: SQL SCRIPT Pin
Hesham Amin23-Nov-07 3:26
Hesham Amin23-Nov-07 3:26 

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.