Oracle Reports (MOSC)

MOSC Banner

Need help on SQL query

edited Jan 6, 2012 3:01AM in Oracle Reports (MOSC) 12 commentsAnswered
Hi,

I have a requirement like, I'll get multiple items in a single parameter with comma(,) separated with single quote.

When I tried with below query it returned no record.

SELECT inventory_item_id
  FROM MTL_SYSTEM_ITEMS_B
 WHERE SEGMENT1 IN (:items)
   AND organization_id = 123

But when I tried with this query it returned data. Instead of : i have used &.

SELECT inventory_item_id
  FROM MTL_SYSTEM_ITEMS_B
 WHERE SEGMENT1 IN (&items)
   AND organization_id = 123

Can anyone help me, on how to handle this in report builder. With :items it is not working and we can't use &items in report builder.

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center