Click here to Skip to main content
16,008,183 members
Home / Discussions / Database
   

Database

 
GeneralNewbie Question Pin
Esmo20008-Feb-05 4:58
Esmo20008-Feb-05 4:58 
GeneralRe: Newbie Question Pin
Colin Angus Mackay8-Feb-05 6:21
Colin Angus Mackay8-Feb-05 6:21 
GeneralRe: Newbie Question Pin
Esmo20008-Feb-05 7:36
Esmo20008-Feb-05 7:36 
GeneralRe: Newbie Question Pin
Esmo20008-Feb-05 10:18
Esmo20008-Feb-05 10:18 
GeneralRe: Newbie Question Pin
Colin Angus Mackay8-Feb-05 11:39
Colin Angus Mackay8-Feb-05 11:39 
GeneralRe: Newbie Question Pin
Esmo20009-Feb-05 2:51
Esmo20009-Feb-05 2:51 
GeneralSPROC Input Parameters Pin
mav07077-Feb-05 14:29
mav07077-Feb-05 14:29 
GeneralRe: SPROC Input Parameters Pin
Colin Angus Mackay8-Feb-05 0:05
Colin Angus Mackay8-Feb-05 0:05 
SELECT *
FROM MyTable
WHERE
(@param1 IS NULL OR (@param1=Column1)) AND
(@param2 IS NULL OR (@param2=Column2))....


If the parameter is null then the left side of the OR clause is true and the right side does not need to be evaluated, if the parameter is not null then the left side of the OR clause is false and so the right side must be evaluated.

Does this help?


Do you want to know more?
WDevs.com - Open Source Code Hosting, Blogs, FTP, Mail and Forums


GeneralRe: SPROC Input Parameters Pin
mav07078-Feb-05 2:28
mav07078-Feb-05 2:28 
GeneralDataTable Select Method Pin
numbrel7-Feb-05 14:15
numbrel7-Feb-05 14:15 
GeneralRe: DataTable Select Method Pin
Yulianto.7-Feb-05 14:54
Yulianto.7-Feb-05 14:54 
GeneralRe: DataTable Select Method Pin
numbrel7-Feb-05 15:13
numbrel7-Feb-05 15:13 
GeneralConnecting an Access project to MSDE database in Visual C++ Pin
elephantstar7-Feb-05 7:16
elephantstar7-Feb-05 7:16 
QuestionFilter summed query? Pin
Roger Alsing7-Feb-05 6:17
Roger Alsing7-Feb-05 6:17 
GeneralActive Directory (ADSI): substring search problem Pin
pelos7-Feb-05 2:06
pelos7-Feb-05 2:06 
GeneralError: 17805, Severity: 20, State: 3 Pin
Sabyasachi Bose7-Feb-05 0:43
Sabyasachi Bose7-Feb-05 0:43 
QuestionHow do i store an array of 500 in an db Pin
rikkemus6-Feb-05 22:23
rikkemus6-Feb-05 22:23 
AnswerRe: How do i store an array of 500 in an db Pin
Yulianto.6-Feb-05 22:31
Yulianto.6-Feb-05 22:31 
GeneralRe: How do i store an array of 500 in an db Pin
Colin Angus Mackay7-Feb-05 1:25
Colin Angus Mackay7-Feb-05 1:25 
Generalfirebird data engine Vs MSDE data engine Pin
ppp0016-Feb-05 22:09
ppp0016-Feb-05 22:09 
GeneralRe: firebird data engine Vs MSDE data engine Pin
Rob Graham7-Feb-05 3:12
Rob Graham7-Feb-05 3:12 
Generalmoney datatype Pin
jetset326-Feb-05 20:59
jetset326-Feb-05 20:59 
GeneralRe: money datatype Pin
Luis Alonso Ramos7-Feb-05 19:54
Luis Alonso Ramos7-Feb-05 19:54 
GeneralRe: money datatype Pin
jetset329-Feb-05 5:04
jetset329-Feb-05 5:04 
General.net compact framework / sql Pin
kofler6-Feb-05 4:40
kofler6-Feb-05 4:40 

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.