SQL Language (MOSC)

MOSC Banner

With Clause to Normal SQL

edited Oct 18, 2019 5:00AM in SQL Language (MOSC) 1 commentAnswered

Hi All,

Below query uses with clause along with group by.

I need to get all columns data without With clause and group by from the below query tables like ITEM12,C_3trans13,"ORDERS_ORDER_LINE_ITEM" ..etc

Because in below query it's giving the count wise records and that count shows wrong. So, want to fetch all the individual records to see the mismatch in the count for date wise.

Can you pleas help on this.

WITH "ORDERS_ORDER_LINE_ITEM" AS

  (SELECT "ORDERS"."D_FACILITY_ALIAS_ID" "D_FACILITY_ALIAS_ID",

    "ORDERS"."D_FACILITY_NAME" "D_FACILITY_NAME",

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