Question

Asked on 2007-04-22 at 21:15:47ID: 25451957

query problem with ampersand

by: deNZity500

Rating9.8Excellent

I have this condition in a query
AND  ipa.W_CODE IN ('SURG','BAKE','A&B')
however oracle thinks that A&B is a variable and prompts for a value.

I have tried the following with out any luck and using wildcards has no effect.
AND  ipa.W_CODE IN ('SURG','BAKE',decode(ipa.w_code, 'A' || chr38 ||'B','A-B',ipa.w_code))

  1. Sql Query problem
    Dear Expert, I have 1 table se_sales_return_master Column values r return_date bill_no sales_date total_amount 4/7/2009 bill1 4/7/2009 65.68 4/7/2009 bill2 4/1/2009 120.15 4/7/2009 bill3 3/25/2009 99.8 …
  2. TRIGGER problem
    Hello experts! I have a problem with a trigger I'm trying to create. It compiles and inserts a recordset when there is none in my target table i.e. TBL_ARBEIT_ZU_GEBIET. So far it is working! However, if there is an existing record in my target table that matches the criteria, I receive an ORA-06502 error. ( numeric or value error string…
  3. Problem with Correlated Queries
    I have to make intersection of layers using ArcSDE 9.3 and Oracle. I am trying to use correlated queries, because before I was using Cursor but takes a lot of time and I need to reduce the execution time. What I want to do is to calculate the percentage of intersection during the intersection process, how many rows have been intersected from the total a…
  4. A problem with a query in 'EXECUTE IMMEDIATE…
    Code1 works but code2 doesn't work, and give an error like 'unimplemented feature'. Where is the problem? Thanks in advance.
  5. Create a DB Link to access 1 table only
    I want to create a db link that will have access to only 1 remote table.

Solution

Sign up now to view this solution! It's quick, easy, and secure to subscribe. We will return you to this solution, unlocked, when you’re done.

About this Solution
View This Solution - Start Your 30 Day Free Trial
Zone
General
Tags
ampersand oracle problem
Participating Experts
1
Solution Grade
A

Replies

 by: sujith80

Posted on 2007-04-22 at 21:44:46ID: 28194964

All comments and solutions are available to Premium Service Members only. Sign up to view the solution to this question. Already a member? Log in to view this solution.

 by: deNZity

Posted on 2007-04-22 at 22:05:38ID: 28194965

All comments and solutions are available to Premium Service Members only. Sign up to view the solution to this question. Already a member? Log in to view this solution.

 by:

Posted on 2007-04-22 at 23:02:40ID: 28194966

All comments and solutions are available to Premium Service Members only. Sign up to view the solution to this question. Already a member? Log in to view this solution.

 by: deNZity

Posted on 2007-04-23 at 00:23:07ID: 28194967

All comments and solutions are available to Premium Service Members only. Sign up to view the solution to this question. Already a member? Log in to view this solution.

 by: deNZity

Posted on 2007-04-23 at 12:42:04ID: 28194968

All comments and solutions are available to Premium Service Members only. Sign up to view the solution to this question. Already a member? Log in to view this solution.

Stay Connected

Oracle Around the Web

The latest Oracle news, tips, and tricks

Oracle Unveils Netra SPARC T3 Servers

New Carrier-Grade Blade and Rackmount Servers Deliver Better Performance, Density and Power Efficiency for the Communications Industry ...

read more

Oracle fixes 21 flaws in Java SE, Java for Business

Oracle is fixing 21 flaws in its Java SE and Java for Business products in its February critical patch update issued this week ...

read more

Obama’s Silicon Valley “Tech Supper”

Why was he there? Who wasn’t invited and why? What did they talk about? Why was he really there? These are the questions being debated ...

read more

Featured Oracle Experts

slightwv

slightwv has answered more than 2,000 Oracle questions and oversees database management within the U.S. Government. Slightwv

sdstuber

A regular presenter at the Collaborate conference, Oracle developer sdstuber is a top expert in PL/SQL and Oracle 9, 10 and 11. sdstuber

Testimonials

What users are saying about our experts

"The Oracle gurus provide answers, solutions and valuable workarounds"

User: schwertner

"Wow! Excellent, valuable explanation. Hats off to you"

User: aseshu70

"Solution worked fantastic and performs excellent! Thanks heaps"

User: klausbrandlhuber

Top Experts

  1. slightwv

    2,000

    0 points yesterday

    Profile

BrowseBecome an Expert