[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index]
[Date Index]
[Thread Index]
[SQR-USERS Info]
[SQRUG Home Page]
[sqr-users] Using parenthesis in a dynamic where cond.
- Subject: [sqr-users] Using parenthesis in a dynamic where cond.
- From: Gowri Srinivas <gow_srinivas@yahoo.com>
- Date: Tue, 2 Aug 2005 07:46:12 -0700 (PDT)
- Delivery-date: Tue, 02 Aug 2005 09:47:26 -0500
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com;h=Message-ID:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding;b=SawK73rTHjAsPNEsN00W9pzW5UQcnkoDFTDshWAioOpJSSEOp6kCVRyfL1S8jvpop3tcuQGJBiAbwocYbF2BjsiIx/62jxWyQgAg76BSHQsulb+KbwRGevo4E8Z+LxHGJ1nE5qyjOvFIl/rszs9TQ39K9E18KSUPBRgoCdvcmPc=;
- List-id: "This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions." <sqr-users.sqrug.org>
Can anybody tell me how to generate a dynamic where condition in which I need
to incorporate parenthesis between AND statements? Here's the condition without
the parenthesis:
LET $DATE_RANGE = 'and A.SHIP_DATE <= '''|| $ToDate || '''' || ' AND
A.SHIP_DATE >= '''|| $FromDate ||''''
THis should look like
select * from ps_zsc_ld_seq A
where (A.SHIP_DATE >= '01-AUG-05' and A.ADD_DTTM >= '01-AUG-05')
AND (A.SHIP_DATE <= '31-AUG-05' and A.ADD_DTTM <= '31-AUG-05')
Thanks very much.
---------------------------------
Start your day with Yahoo! - make it your home page
_______________________________________________
sqr-users mailing list
sqr-users@sqrug.org
http://www.sqrug.org/mailman/listinfo/sqr-users