{"id":4218,"date":"2014-12-15T13:50:00","date_gmt":"2014-12-15T12:50:00","guid":{"rendered":"https:\/\/www.dbi-services.com\/blog\/oracle-lateral-inline-view-cursor-expression-and-12c-implicit-statement-result\/"},"modified":"2014-12-15T13:50:00","modified_gmt":"2014-12-15T12:50:00","slug":"oracle-lateral-inline-view-cursor-expression-and-12c-implicit-statement-result","status":"publish","type":"post","link":"https:\/\/www.dbi-services.com\/blog\/oracle-lateral-inline-view-cursor-expression-and-12c-implicit-statement-result\/","title":{"rendered":"Oracle lateral inline view, cursor expression and 12c implicit statement result"},"content":{"rendered":"<h2>By Franck Pachot<\/h2>\n<p>.<br \/>\nI&#8217;ll present here 3 ways to run a query for each result of another query. Let&#8217;s take an exemple: get all executions plan (select from dbms_xplan.display_cursor) for each of my queries (identified from v$sql). The 90&#8217;s way was to run the first query, which generates the second queries into a spool file, and execute that file. Here are easier ways, some of them coming from 12c new features lateral join and implicit statement result.<\/p>\n<h3>Test case<\/h3>\n<p>I&#8217;m running 2 queries and will identify them from their module (APPINFO from sqlplus) and user:<\/p>\n<pre><code>SQL&gt; connect scott\/tiger\nConnected.\n\nSQL&gt; set appinfo DEMO\n\nSQL&gt; select * from DEPT;\nSQL&gt; select * from EMP;\n<\/code><\/pre>\n<p>I don&#8217;t show the result &#8211; you know it &#8211; but here is how I identify the queries:<\/p>\n<pre><code>SQL&gt; select sql_id,child_number,sql_text from v$sql where plan_hash_value&gt;0 and module='DEMO' and parsing_schema_name='SCOTT';\n\nSQL_ID        CHILD_NUMBER SQL_TEXT\n------------- ------------ ------------------------------\n5aht0fch310ca            0 select * from EMP\n18wrqtcj3ksap            0 select * from DEPT\n<\/code><\/pre>\n<p>And I want to run dbms_xplan.display_cursor(sql_id,child_number) for each of them. Here are 3 ways to do it<\/p>\n<h3>Cursor expression<\/h3>\n<p>Do you know cursor expressions? In your SELECT expressions, you can have a query. Your client will retrieve it as a cursor and have to run it. sqlplus and sqldeveloper does that. Here is an example:<\/p>\n<pre><code>SQL&gt; select\n  cursor (select * from table(dbms_xplan.display_cursor(sql_id,child_number,format=&gt;'TYPICAL'))) PLAN\n  from\n  (select * from v$sql where plan_hash_value&gt;0 and module='DEMO' and parsing_schema_name='SCOTT')\n \/\n\n<\/code><\/pre>\n<p>which gives the following result:<\/p>\n<pre><code>PLAN\n--------------------\nCURSOR STATEMENT : 1\n\nPLAN_TABLE_OUTPUT\n------------------------------------------------------------------------------------------\nSQL_ID  5aht0fch310ca, child number 0\n-------------------------------------\nselect * from EMP\n\nPlan hash value: 3956160932\n\n--------------------------------------------------------------------------\n| Id  | Operation         | Name | Rows  | Bytes | Cost (%CPU)| Time     |\n--------------------------------------------------------------------------\n|   0 | SELECT STATEMENT  |      |       |       |     3 (100)|          |\n|   1 |  TABLE ACCESS FULL| EMP  |    14 |   532 |     3   (0)| 00:00:01 |\n--------------------------------------------------------------------------\n\n13 rows selected.\n\nCURSOR STATEMENT : 1\n\nPLAN_TABLE_OUTPUT\n------------------------------------------------------------------------------------------\nSQL_ID  18wrqtcj3ksap, child number 0\n-------------------------------------\nselect * from DEPT\n\nPlan hash value: 3383998547\n\n--------------------------------------------------------------------------\n| Id  | Operation         | Name | Rows  | Bytes | Cost (%CPU)| Time     |\n--------------------------------------------------------------------------\n|   0 | SELECT STATEMENT  |      |       |       |     3 (100)|          |\n|   1 |  TABLE ACCESS FULL| DEPT |     4 |    80 |     3   (0)| 00:00:01 |\n--------------------------------------------------------------------------\n\n13 rows selected.\n\n<\/code><\/pre>\n<p>This is possible on all versions, and the output can change depending on the tool you use. sqlplus handles it as above, running each cursor.<\/p>\n<h3>implicit statement result<\/h3>\n<p>You want to do it from pl\/sql? That&#8217;s possible. But you have to format the output yourself with dbms_output.<\/p>\n<p>Except if you are in 12c and use the &#8216;implicit statement result&#8217; new feature:<\/p>\n<pre><code>SQL&gt; declare\n  r sys_refcursor;\n begin\n  for c in\n  (select * from v$sql where plan_hash_value&gt;0 and module='DEMO' and parsing_schema_name='SCOTT')\n  loop\n   open r for select * from table(dbms_xplan.display_cursor(c.sql_id,c.child_number));\n   dbms_sql.return_result(r);\n  end loop;\n end;\n \/\nPL\/SQL procedure successfully completed.\n<\/code><\/pre>\n<p>which gives the following result:<\/p>\n<pre><code>ResultSet #1\n\nPLAN_TABLE_OUTPUT\n------------------------------------------------------------------------------------------\nSQL_ID  5aht0fch310ca, child number 0\n-------------------------------------\nselect * from EMP\n\nPlan hash value: 3956160932\n\n--------------------------------------------------------------------------\n| Id  | Operation         | Name | Rows  | Bytes | Cost (%CPU)| Time     |\n--------------------------------------------------------------------------\n|   0 | SELECT STATEMENT  |      |       |       |     3 (100)|          |\n|   1 |  TABLE ACCESS FULL| EMP  |    14 |   532 |     3   (0)| 00:00:01 |\n--------------------------------------------------------------------------\n\n13 rows selected.\n\nResultSet #2\n\nPLAN_TABLE_OUTPUT\n------------------------------------------------------------------------------------------\nSQL_ID  18wrqtcj3ksap, child number 0\n-------------------------------------\nselect * from DEPT\n\nPlan hash value: 3383998547\n\n--------------------------------------------------------------------------\n| Id  | Operation         | Name | Rows  | Bytes | Cost (%CPU)| Time     |\n--------------------------------------------------------------------------\n|   0 | SELECT STATEMENT  |      |       |       |     3 (100)|          |\n|   1 |  TABLE ACCESS FULL| DEPT |     4 |    80 |     3   (0)| 00:00:01 |\n--------------------------------------------------------------------------\n\n13 rows selected.\n\n<\/code><\/pre>\n<p>This is similar to the previous approach in the way that the client has to manage the result.<\/p>\n<h3>Lateral inline view<\/h3>\n<p>This is my preferred way which is only SQL and do not depend on the client formatting. A lateral inline view is a subquery that you put in the FROM clause, using the LATERAL keyword, and which can use data from the other tables on the left of it in the FROM clause:<\/p>\n<pre><code>SQL&gt; select plan_table_output from\n  (select * from v$sql where plan_hash_value&gt;0 and module='DEMO' and parsing_schema_name='SCOTT'),\n  lateral (select * from table(dbms_xplan.display_cursor(sql_id,child_number)))\n ;\n<\/code><\/pre>\n<p>which gives the following result:<\/p>\n<pre><code>PLAN_TABLE_OUTPUT\n------------------------------------------------------------------------------------------\nSQL_ID  5aht0fch310ca, child number 0\n-------------------------------------\nselect * from EMP\n\nPlan hash value: 3956160932\n\n--------------------------------------------------------------------------\n| Id  | Operation         | Name | Rows  | Bytes | Cost (%CPU)| Time     |\n--------------------------------------------------------------------------\n|   0 | SELECT STATEMENT  |      |       |       |     3 (100)|          |\n|   1 |  TABLE ACCESS FULL| EMP  |    14 |   532 |     3   (0)| 00:00:01 |\n--------------------------------------------------------------------------\n\nSQL_ID  18wrqtcj3ksap, child number 0\n-------------------------------------\nselect * from DEPT\n\nPlan hash value: 3383998547\n\n--------------------------------------------------------------------------\n| Id  | Operation         | Name | Rows  | Bytes | Cost (%CPU)| Time     |\n--------------------------------------------------------------------------\n|   0 | SELECT STATEMENT  |      |       |       |     3 (100)|          |\n|   1 |  TABLE ACCESS FULL| DEPT |     4 |    80 |     3   (0)| 00:00:01 |\n--------------------------------------------------------------------------\n\n<\/code><\/pre>\n<p>This is a 12c new feature. It existed on previous versions but not enabled by default and not documented, but you can set it with the following event:<\/p>\n<pre><code>SQL&gt; host oerr ora 22829\n\nSQL&gt; alter session set events '22829 trace name context forever';\n<\/code><\/pre>\n<p>12c came with a lot of nice improvement in SQL and PL\/SQL and they are available in all editions.<\/p>\n<h3>Update<\/h3>\n<p>What is very cool about twitter is that sometimes I have to update my blog post as soon as it is published. In that case it seems that I ignored the simplest way to do that since 9i:<\/p>\n<blockquote lang=\"en\"><p><a href=\"https:\/\/twitter.com\/FranckPachot\">@FranckPachot<\/a> Why not just &#8220;from v$sql, table(dbms_xplan.display_cursor(&#8230;))&#8221;? Left correlation is official and it works since 9i<\/p>\n<p>\u2014 Vladimir Sitnikov (@VladimirSitnikv) <a href=\"https:\/\/twitter.com\/VladimirSitnikv\/status\/544177719458934784\">December 14, 2014<\/a><\/p><\/blockquote>\n<p>So here it is:<\/p>\n<pre><code>SQL&gt; select plan_table_output from\n  2   v$sql,\n  3   table(dbms_xplan.display_cursor(sql_id,child_number))\n  4  where plan_hash_value&gt;0 and module='DEMO' and parsing_schema_name='SCOTT'\n  5  ;\n\nPLAN_TABLE_OUTPUT\n------------------------------------------------------------------------------------------\nSQL_ID  5aht0fch310ca, child number 0\n-------------------------------------\nselect * from EMP\n\nPlan hash value: 3956160932\n\n--------------------------------------------------------------------------\n| Id  | Operation         | Name | Rows  | Bytes | Cost (%CPU)| Time     |\n--------------------------------------------------------------------------\n|   0 | SELECT STATEMENT  |      |       |       |     3 (100)|          |\n|   1 |  TABLE ACCESS FULL| EMP  |    14 |   532 |     3   (0)| 00:00:01 |\n--------------------------------------------------------------------------\n\nSQL_ID  18wrqtcj3ksap, child number 0\n-------------------------------------\nselect * from DEPT\n\nPlan hash value: 3383998547\n\n--------------------------------------------------------------------------\n| Id  | Operation         | Name | Rows  | Bytes | Cost (%CPU)| Time     |\n--------------------------------------------------------------------------\n|   0 | SELECT STATEMENT  |      |       |       |     3 (100)|          |\n|   1 |  TABLE ACCESS FULL| DEPT |     4 |    80 |     3   (0)| 00:00:01 |\n--------------------------------------------------------------------------\n\n\n26 rows selected.\n\n<\/code><\/pre>\n<p>That does not invalidate this blog post because I wanted to show those 3 features. It&#8217;s just my example which was badly chosen because dbms_xplan returns a table expression and left correlation can be used for it.<\/p>\n<p>Thanks to Vladimir Sitnikov, I learned a 9i feature while blogging about 12c new feature \ud83d\ude42<\/p>\n","protected":false},"excerpt":{"rendered":"<p>By Franck Pachot . I&#8217;ll present here 3 ways to run a query for each result of another query. Let&#8217;s take an exemple: get all executions plan (select from dbms_xplan.display_cursor) for each of my queries (identified from v$sql). The 90&#8217;s way was to run the first query, which generates the second queries into a spool&hellip;&nbsp;<\/p>\n","protected":false},"author":27,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"neve_meta_sidebar":"","neve_meta_container":"","neve_meta_enable_content_width":"","neve_meta_content_width":0,"neve_meta_title_alignment":"","neve_meta_author_avatar":"","neve_post_elements_order":"","neve_meta_disable_header":"","neve_meta_disable_footer":"","neve_meta_disable_title":"","neve_meta_reading_time":"","_themeisle_gutenberg_block_has_review":false,"footnotes":""},"categories":[4133,59],"tags":[209,98],"class_list":["post-4218","post","type-post","status-publish","format-standard","category-database","category-oracle","tag-oracle-12c","tag-sql"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v28.9 (Yoast SEO v28.9) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Oracle lateral inline view, cursor expression and 12c implicit statement result - dbi services Blog<\/title>\n<meta name=\"description\" content=\"Do you still have scripts generating script? Or do you use lateral inline view, cursor expression or 12c implicit statement result in order to get several execution plans?\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.dbi-services.com\/blog\/oracle-lateral-inline-view-cursor-expression-and-12c-implicit-statement-result\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Oracle lateral inline view, cursor expression and 12c implicit statement result\" \/>\n<meta property=\"og:description\" content=\"Do you still have scripts generating script? Or do you use lateral inline view, cursor expression or 12c implicit statement result in order to get several execution plans?\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.dbi-services.com\/blog\/oracle-lateral-inline-view-cursor-expression-and-12c-implicit-statement-result\/\" \/>\n<meta property=\"og:site_name\" content=\"dbi services Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/dbiservices\/\" \/>\n<meta property=\"article:published_time\" content=\"2014-12-15T12:50:00+00:00\" \/>\n<meta name=\"author\" content=\"Oracle Team\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@dbiservices\" \/>\n<meta name=\"twitter:site\" content=\"@dbiservices\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Oracle Team\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/oracle-lateral-inline-view-cursor-expression-and-12c-implicit-statement-result\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/oracle-lateral-inline-view-cursor-expression-and-12c-implicit-statement-result\\\/\"},\"author\":{\"name\":\"Oracle Team\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/#\\\/schema\\\/person\\\/bf7c7eb0bec165183207237c9d0ee1d5\"},\"headline\":\"Oracle lateral inline view, cursor expression and 12c implicit statement result\",\"datePublished\":\"2014-12-15T12:50:00+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/oracle-lateral-inline-view-cursor-expression-and-12c-implicit-statement-result\\\/\"},\"wordCount\":513,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/#organization\"},\"keywords\":[\"Oracle 12c\",\"SQL\"],\"articleSection\":[\"Database\",\"Oracle\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/oracle-lateral-inline-view-cursor-expression-and-12c-implicit-statement-result\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/oracle-lateral-inline-view-cursor-expression-and-12c-implicit-statement-result\\\/\",\"url\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/oracle-lateral-inline-view-cursor-expression-and-12c-implicit-statement-result\\\/\",\"name\":\"Oracle lateral inline view, cursor expression and 12c implicit statement result - dbi services Blog\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/#website\"},\"datePublished\":\"2014-12-15T12:50:00+00:00\",\"description\":\"Do you still have scripts generating script? Or do you use lateral inline view, cursor expression or 12c implicit statement result in order to get several execution plans?\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/oracle-lateral-inline-view-cursor-expression-and-12c-implicit-statement-result\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/oracle-lateral-inline-view-cursor-expression-and-12c-implicit-statement-result\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/oracle-lateral-inline-view-cursor-expression-and-12c-implicit-statement-result\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Oracle lateral inline view, cursor expression and 12c implicit statement result\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/\",\"name\":\"dbi services Blog\",\"description\":\"#BeSharing\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/#organization\",\"name\":\"dbi services\",\"url\":\"https:\\\/\\\/www.dbi-services.com\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/09\\\/dbi-services-logo.png\",\"contentUrl\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/09\\\/dbi-services-logo.png\",\"width\":512,\"height\":512,\"caption\":\"dbi services\"},\"image\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/dbiservices\\\/\",\"https:\\\/\\\/x.com\\\/dbiservices\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/dbi-services\\\/\",\"https:\\\/\\\/www.youtube.com\\\/user\\\/dbiservices\"],\"description\":\"Swiss IT consulting and services company specialized in efficient data infrastructures and platforms: databases, application servers, cloud, DevOps, digitalization, analytics, data quality and monitoring. Headquartered in Del\u00e9mont with offices in Nyon, Basel, Bern and Zurich.\",\"email\":\"info@dbi-services.com\",\"telephone\":\"+41 32 422 96 00\",\"legalName\":\"dbi services SA\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/#\\\/schema\\\/person\\\/bf7c7eb0bec165183207237c9d0ee1d5\",\"name\":\"Oracle Team\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/12\\\/oracle-square.png\",\"url\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/12\\\/oracle-square.png\",\"contentUrl\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/12\\\/oracle-square.png\",\"caption\":\"Oracle Team\"},\"description\":\"Posts published under the Oracle Team account are collective contributions by the dbi services Oracle consultants. The practice covers the full Oracle Database lifecycle: architecture, migration and upgrade, high availability with RAC and Data Guard, backup and recovery, performance tuning, and engineered systems such as Oracle Database Appliance and Exadata. The team holds Oracle certifications up to Certified Master level and operates customer platforms under service level agreements.\",\"url\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/author\\\/oracle-team\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Oracle lateral inline view, cursor expression and 12c implicit statement result - dbi services Blog","description":"Do you still have scripts generating script? Or do you use lateral inline view, cursor expression or 12c implicit statement result in order to get several execution plans?","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.dbi-services.com\/blog\/oracle-lateral-inline-view-cursor-expression-and-12c-implicit-statement-result\/","og_locale":"en_US","og_type":"article","og_title":"Oracle lateral inline view, cursor expression and 12c implicit statement result","og_description":"Do you still have scripts generating script? Or do you use lateral inline view, cursor expression or 12c implicit statement result in order to get several execution plans?","og_url":"https:\/\/www.dbi-services.com\/blog\/oracle-lateral-inline-view-cursor-expression-and-12c-implicit-statement-result\/","og_site_name":"dbi services Blog","article_publisher":"https:\/\/www.facebook.com\/dbiservices\/","article_published_time":"2014-12-15T12:50:00+00:00","author":"Oracle Team","twitter_card":"summary_large_image","twitter_creator":"@dbiservices","twitter_site":"@dbiservices","twitter_misc":{"Written by":"Oracle Team","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.dbi-services.com\/blog\/oracle-lateral-inline-view-cursor-expression-and-12c-implicit-statement-result\/#article","isPartOf":{"@id":"https:\/\/www.dbi-services.com\/blog\/oracle-lateral-inline-view-cursor-expression-and-12c-implicit-statement-result\/"},"author":{"name":"Oracle Team","@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/bf7c7eb0bec165183207237c9d0ee1d5"},"headline":"Oracle lateral inline view, cursor expression and 12c implicit statement result","datePublished":"2014-12-15T12:50:00+00:00","mainEntityOfPage":{"@id":"https:\/\/www.dbi-services.com\/blog\/oracle-lateral-inline-view-cursor-expression-and-12c-implicit-statement-result\/"},"wordCount":513,"commentCount":0,"publisher":{"@id":"https:\/\/www.dbi-services.com\/#organization"},"keywords":["Oracle 12c","SQL"],"articleSection":["Database","Oracle"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.dbi-services.com\/blog\/oracle-lateral-inline-view-cursor-expression-and-12c-implicit-statement-result\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.dbi-services.com\/blog\/oracle-lateral-inline-view-cursor-expression-and-12c-implicit-statement-result\/","url":"https:\/\/www.dbi-services.com\/blog\/oracle-lateral-inline-view-cursor-expression-and-12c-implicit-statement-result\/","name":"Oracle lateral inline view, cursor expression and 12c implicit statement result - dbi services Blog","isPartOf":{"@id":"https:\/\/www.dbi-services.com\/blog\/#website"},"datePublished":"2014-12-15T12:50:00+00:00","description":"Do you still have scripts generating script? Or do you use lateral inline view, cursor expression or 12c implicit statement result in order to get several execution plans?","breadcrumb":{"@id":"https:\/\/www.dbi-services.com\/blog\/oracle-lateral-inline-view-cursor-expression-and-12c-implicit-statement-result\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.dbi-services.com\/blog\/oracle-lateral-inline-view-cursor-expression-and-12c-implicit-statement-result\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.dbi-services.com\/blog\/oracle-lateral-inline-view-cursor-expression-and-12c-implicit-statement-result\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.dbi-services.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Oracle lateral inline view, cursor expression and 12c implicit statement result"}]},{"@type":"WebSite","@id":"https:\/\/www.dbi-services.com\/blog\/#website","url":"https:\/\/www.dbi-services.com\/blog\/","name":"dbi services Blog","description":"#BeSharing","publisher":{"@id":"https:\/\/www.dbi-services.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.dbi-services.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.dbi-services.com\/#organization","name":"dbi services","url":"https:\/\/www.dbi-services.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2026\/09\/dbi-services-logo.png","contentUrl":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2026\/09\/dbi-services-logo.png","width":512,"height":512,"caption":"dbi services"},"image":{"@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/dbiservices\/","https:\/\/x.com\/dbiservices","https:\/\/www.linkedin.com\/company\/dbi-services\/","https:\/\/www.youtube.com\/user\/dbiservices"],"description":"Swiss IT consulting and services company specialized in efficient data infrastructures and platforms: databases, application servers, cloud, DevOps, digitalization, analytics, data quality and monitoring. Headquartered in Del\u00e9mont with offices in Nyon, Basel, Bern and Zurich.","email":"info@dbi-services.com","telephone":"+41 32 422 96 00","legalName":"dbi services SA"},{"@type":"Person","@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/bf7c7eb0bec165183207237c9d0ee1d5","name":"Oracle Team","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2022\/12\/oracle-square.png","url":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2022\/12\/oracle-square.png","contentUrl":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2022\/12\/oracle-square.png","caption":"Oracle Team"},"description":"Posts published under the Oracle Team account are collective contributions by the dbi services Oracle consultants. The practice covers the full Oracle Database lifecycle: architecture, migration and upgrade, high availability with RAC and Data Guard, backup and recovery, performance tuning, and engineered systems such as Oracle Database Appliance and Exadata. The team holds Oracle certifications up to Certified Master level and operates customer platforms under service level agreements.","url":"https:\/\/www.dbi-services.com\/blog\/author\/oracle-team\/"}]}},"_links":{"self":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts\/4218","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/users\/27"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/comments?post=4218"}],"version-history":[{"count":0,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts\/4218\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/media?parent=4218"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/categories?post=4218"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/tags?post=4218"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}