-
conditional check in oracle
HI
I have the following query in a procedure
select a.S_No,
a.transaction,
a.r_no,
b.credit_card_No,
b.credit_card_amount,
c.check_number,
c.check_amount,
from rpt a,
credit_card b,
check b,
where a.r_no = b.r_no(+)
and a.r_no = c.r_no(+)
I m passing a value to the procedure ("check" or "card")
if the value is blank then I have to consider all the tables, but if I pass "Check" then I have to consider only rpt and check table. And if I pass "Card" then I have to consider only rpt and credit_card tables.
Can some one guide me on how I can do the coditional check
thanking in advance
-
Paul
~~~~
Microsoft MVP (Visual Basic)
Similar Threads
-
By kylemcna in forum ASP.NET
Replies: 5
Last Post: 04-13-2007, 02:23 AM
-
By Kevin MacCallum in forum VB Classic
Replies: 0
Last Post: 08-28-2002, 11:46 AM
-
By Narayan in forum VB Classic
Replies: 0
Last Post: 04-10-2001, 10:30 AM
-
By Eugene Chernyak in forum Enterprise
Replies: 0
Last Post: 07-27-2000, 09:35 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Development Centers
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center
|