top of page

View with WITH | How to access data Select within a Select | How to define common Select and Use it in main Select statement

Writer's picture: Rumesh Aponso (RMAX)Rumesh Aponso (RMAX)
WITH cust_info AS (SELECT co.order_no
                   FROM   customer_order_tab co)
SELECT t1.*
FROM   cust_info t1
UNION
SELECT t2.*
FROM   cust_info t2;

1 view0 comments

Related Posts

See All

LISTAGG in PLSQL

Example 1: SELECT DISTINCT LISTAGG(t.commission_receiver, ';') WITHIN GROUP (ORDER BY t.commission_receiver) FROM...

Get Foundation Error from ORA Error

FUNCTION Strip_Ora_Error ( sqlerrm_        IN VARCHAR2,    sqlcode_        IN NUMBER DEFAULT NULL,    strip_ora_only_ IN BOOLEAN DEFAULT...

コメント


Copyright © 2025 RMAXOneNote

  • Online CV
  • LinkedIn
  • Youtube
  • GitHub
  • Blogger
bottom of page