SQL Language (MOSC)

MOSC Banner

Query help to fetch records with given criteria

edited Jun 21, 2018 5:00AM in SQL Language (MOSC) 13 commentsAnswered

Hi,

I need to pull the records from a table where quantities have 1,1,2,3,4 like this.

If i give the parameter of quantity to 5 i need to select random records which matches this criteria either 2,3 or 1,4. Anything is fine.

Can someone pls help in providing the query. I know this looks weird but needed for one Development request.

Suresh.

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