Unix Technical Forum

WHERE CLAUSE PROPERTY IN DATA BLOCK

This is a discussion on WHERE CLAUSE PROPERTY IN DATA BLOCK within the Oracle Database forums, part of the Database Server Software category; --> Hi, I need help on this problem: In a form data block I want to enter in the Property ...


Go Back   Unix Technical Forum > Database Server Software > Oracle Database

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-26-2008, 04:17 AM
nick048
 
Posts: n/a
Default WHERE CLAUSE PROPERTY IN DATA BLOCK

Hi,
I need help on this problem:
In a form data block I want to enter in the Property WHERE CLAUSE a
clause based on certain conditions:
1. the first condition is ANA_TYPE := TXT_ANA_TYPE AND ANA_CODE :=
TXT_ANA_CODE, where the two variable are initialized in Header Block.
For this I don't have problem. The query work fine.
2. But I want to add an other clause, depending from an other variable
initialized in the Header Block . For example, based on the Radio
button field :HEADER_BLOCK.SITUATION. Depending from Value of this
field, the AND clause to add can be:
a) :SITUATION = 1 --> clause must be AND DOC_PAID <> 0
b) :SITUATION = 2 --> clause must be AND DOC_PAID = 0
c) :SITUATION = 3 --> clause must be AND DOC_INS <> 0

Is possible to create a unique Where variable clause (1. plus 2.) with
this conditions ? If Yes How?

I hope...
Best Regards
Gaetano

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 09:46 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com