<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-5396106166793201647</id><updated>2026-09-26T21:56:09.269+05:30</updated><category term="Oracle Apex"/><category term="PLSQL"/><category term="Difference Between"/><category term="SQL"/><category term="PLSQL Tutorial"/><category term="Math Tricks"/><category term="Variables in Oracle PL/SQL"/><category term="Add Emojis in Oracle APEX"/><category term="Advantages of PL/SQL"/><category term="Android"/><category term="Animated Login Screen in Oracle APEX"/><category term="Anonymous Block in PL/SQL with Example"/><category term="Comments in Oracle PL/SQL"/><category term="Create Application in Oracle APEX"/><category term="Create Workspace in Oracle APEX"/><category term="Data Types in Oracle PL/SQL"/><category term="Difference Between Case and Decode in Oracle"/><category term="Difference Between Function and Procedure"/><category term="Difference Between Implicit and Explicit Cursor in Oracle PLSQL"/><category term="Difference Between Primary Key and Unique Key in Oracle"/><category term="Difference Between RANK and DENSE_RANK In Oracle SQL"/><category term="Difference Between Retrofit and Volley In Android"/><category term="Difference Between SQL and PL/SQL"/><category term="Difference Between Union And Union All in Oracle"/><category term="Difference Between View and Materialized View in Oracle"/><category term="Difference between %ROWTYPE and %TYPE in Oracle PLSQL"/><category term="Difference between Delete and Truncate in Oracle"/><category term="Disable Right Click and f12 Developer Tools"/><category term="Dynamic Marquee In Oracle APEX"/><category term="Flip Region in Oracle APEX"/><category term="Function Related Interview Questions in Oracle PL/SQL"/><category term="Generate Text File in Oracle"/><category term="Get Oarcle APEX Page Item Value"/><category term="Global Page In Oracle APEX"/><category term="HIde Report Setting Area in Oracle APEX"/><category term="How to Add Favicon in Oracle APEX"/><category term="How to Preview Image Before Uploading in Oracle APEX"/><category term="Java"/><category term="Latitude and Longitude in Oracle APEX"/><category term="Low Code Development"/><category term="Mobile Number Validation in Oracle APEX"/><category term="NVL() Function in Oracle"/><category term="New Features in Oracle APEX 20.1"/><category term="OOPS Concepts in JAVA with Realtime Examples"/><category term="Oracle APEX Introduction"/><category term="Oracle APEX Logo and Text"/><category term="Oracle APEX Tutorial"/><category term="PL/SQL Program to Print Half Pyramid Using Numbers"/><category term="Password Mask in Oracle APEX"/><category term="Preview Multiple Images Before Upload in Oracle APEX"/><category term="Print Rectangular Star Pattern in PL/SQL Program"/><category term="Print Star Pattern in PLSQL Program"/><category term="Print the Inverted Right Triangle Star Pattern in PL/SQL"/><category term="Procedure Related Interview Questions in Oracle PL/SQL"/><category term="Scroll Indicator in Oracle APEX"/><category term="Select Into Statement in Oracle PL/SQL"/><category term="What is PL/SQL"/><category term="What is PL/SQL Block Structure"/><category term="decode in oracle sql"/><category term="nvl2 function in oracle"/><category term="oracle apex set page item value"/><title type='text'>Javainhand Tutorial | Learn Oracle APEX,PL/SQL,SQL</title><subtitle type='html'>JavaInhand Tutorial: Get the latest Tutorials About Oracle, SQL, PL/SQL, Oracle APEX, Oracle Apex Plugins,Oracle Apex Video Tutorials</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='https://www.javainhand.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5396106166793201647/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='https://www.javainhand.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='https://www.blogger.com/feeds/5396106166793201647/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Javainhand</name><uri>http://www.blogger.com/profile/18407148468637123743</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhQ3nnDdcQwtLM6n6XkSWHSA4HxZdM3QfdjZXOkMtR-KBzefO0yntF7wz-3fu0YIoPLtewEOUuVbc-QVdacHBnwv21VMe52xfcois-tRhWWk99hswJa8jjmV90TT8Bfzw/s113/javainhand.png'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>107</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-5396106166793201647.post-1864307034032457294</id><published>2026-05-11T22:35:00.001+05:30</published><updated>2026-05-12T17:54:54.928+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="PLSQL Tutorial"/><title type='text'>IF-THEN-ELSIF Statement in Oracle PLSQL with Examples</title><content type='html'>&lt;p style=&quot;text-align: justify;&quot;&gt;Welcome Back to &lt;b&gt;Javainhand Tutorial&lt;/b&gt;! In our previous tutorial, we covered the basics of &lt;a href=&quot;https://www.javainhand.com/2026/05/if-then-else-statement-in-oracle-plsql.html&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;IF-THEN-ELSE&lt;/a&gt; statement. Today We are going to explore a more powerful condition control structure: the &lt;b&gt;IF-THEN-ELSIF &lt;/b&gt;Statement.&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhgpwk5dA7uu9_R5etvvek8Qo2N09IpjNrVnksBkIlUYdtKZ8ajCKZY6sYd-oPIpyr-fEX8kpG2Xy0WpHk4k_xWW_ZZosn8diaG8fGnBAKtfBKvded2wOtmek3vsc62NIzkAsZwKIWyc-KjGKzEGlIos0eaiL3kgml16P7Fh-ScbLOhyphenhyphen6zeYMKixep7xPE/s1280/IF-THEN-ELSIF%20Statement%20in%20Oracle%20PLSQL.jpg&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;if-then-elsif statement in oracle plsql with example&quot; border=&quot;0&quot; data-original-height=&quot;720&quot; data-original-width=&quot;1280&quot; height=&quot;225&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhgpwk5dA7uu9_R5etvvek8Qo2N09IpjNrVnksBkIlUYdtKZ8ajCKZY6sYd-oPIpyr-fEX8kpG2Xy0WpHk4k_xWW_ZZosn8diaG8fGnBAKtfBKvded2wOtmek3vsc62NIzkAsZwKIWyc-KjGKzEGlIos0eaiL3kgml16P7Fh-ScbLOhyphenhyphen6zeYMKixep7xPE/w400-h225/IF-THEN-ELSIF%20Statement%20in%20Oracle%20PLSQL.jpg&quot; title=&quot;PL/SQL IF-THEN-ELSIF flowchart and code example&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;p style=&quot;text-align: left;&quot;&gt;When you need to choose between more than two alternatives based on different conditions, the ELSIF ladder is the most efficient way to write your logic in PLSQL.&lt;/p&gt;&lt;h1 style=&quot;text-align: left;&quot;&gt;What is the IF-THEN-ELSIF Statement?&lt;/h1&gt;&lt;p&gt;The IF-THEN-ELSIF statement allows you to check multiple conditions sequentially. It works like a decision-making chain.&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;ol style=&quot;text-align: left;&quot;&gt;&lt;li&gt;It evaluates the first condition&lt;/li&gt;&lt;li&gt;If the first condition is FALSE, it moves to the next ELSIF block.&lt;/li&gt;&lt;li&gt;As soon as a condition evaluates to TRUE, the corresponding block of code is executed.&lt;/li&gt;&lt;li&gt;Once a match is found, all subsequent conditions are skipped, and control moves to the code after END IF.&lt;/li&gt;&lt;/ol&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;Syntax of IF-THEN-ELSIF Statement in PLSQL&lt;/h2&gt;&lt;p style=&quot;text-align: left;&quot;&gt;The syntax is straightforward. NOTE: In PLSQL, it is spelled ELSIF( without the &#39;E&#39; in the middle).&lt;/p&gt;
&lt;pre&gt;IF condition1 THEN
   -- Action when condition1 is TRUE
ELSIF condition2 THEN
   -- Action when condition2 is TRUE
ELSIF condition3 THEN
   -- Action when condition3 is TRUE
ELSE
   -- Default action if NO conditions are TRUE
END IF;&lt;/pre&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;Example of IF-THEN-ELSIF Statement in Oracle PLSQL&lt;/h2&gt;&lt;p style=&quot;text-align: left;&quot;&gt;&lt;b&gt;Practical Example: Employee Bonus Calculation&lt;/b&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;Let&#39;s take a real-world scenario where we calculate a bonus based on an employee&#39;s year of service:&lt;/p&gt;&lt;p style=&quot;text-align: left;&quot;&gt;&lt;/p&gt;&lt;ol style=&quot;text-align: left;&quot;&gt;&lt;li&gt;More than 10 Years: 20% Bonus&lt;/li&gt;&lt;li&gt;More than 5 Years: 15% Bonus&lt;/li&gt;&lt;li&gt;More than 2 Years: 10% Bonus&lt;/li&gt;&lt;li&gt;Otherwise: 5% Bonus&lt;/li&gt;&lt;/ol&gt;&lt;p style=&quot;text-align: left;&quot;&gt;&lt;b&gt;PLSQL Code Example&lt;/b&gt;&lt;/p&gt;
&lt;pre&gt;DECLARE
   service_years NUMBER := 7;
   bonus_percent NUMBER;
BEGIN
   IF service_years &amp;gt; 10 THEN
      bonus_percent := 20;
   ELSIF service_years &amp;gt; 5 THEN
      bonus_percent := 15;
   ELSIF service_years &amp;gt; 2 THEN
      bonus_percent := 10;
   ELSE
      bonus_percent := 5;
   END IF;

   DBMS_OUTPUT.PUT_LINE(&#39;The eligible bonus is: &#39; || bonus_percent || &#39;%&#39;);
END;
/&lt;/pre&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;b&gt;OUTPUT&lt;br /&gt;&lt;/b&gt;&lt;/p&gt;&lt;pre style=&quot;text-align: justify;&quot;&gt;The eligible bonus is: 15%&lt;/pre&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;b&gt;Key Points for Better Coding&lt;/b&gt;&lt;/p&gt;&lt;p style=&quot;text-align: left;&quot;&gt;&lt;/p&gt;&lt;ol style=&quot;text-align: left;&quot;&gt;&lt;li style=&quot;text-align: justify;&quot;&gt;Spelling Matters: Beginners often make the mistake of writing ELSEIF. Remember, Oracle uses ELSIF.&lt;/li&gt;&lt;li style=&quot;text-align: justify;&quot;&gt;Efficiency: The compiler stops checking conditions as soon as it finds TRUE statement, making it faster than multiple independent IF blocks.&lt;/li&gt;&lt;li style=&quot;text-align: justify;&quot;&gt;The ELSE Block: While the ELSE block as optional, it is recommended to include as a &quot;catch-all&quot; for scenarios that don&#39;t meet any specific criteria.&lt;/li&gt;&lt;/ol&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;b&gt;Video Tutorial&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;For a step-by-step visual guide and live coding demonstration of this topic, check out my YouTube Video.&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;a href=&quot;https://youtu.be/XT4HFw3GVUI&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;Watch Video Tutorial Here&lt;/a&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;b&gt;Conclusion&lt;/b&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;The IF-THEN-ELSIF Statement is an essential tool for any Oracle developer to handle complex login clearly and concisely.&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;I hope this tutorial helped you understand how to implement multiple conditions in your PLSQL blocks.&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;If you found this helpful, please share it with your friends and fellow learners. Have any questions? Drop then in the comment below! Happy Coding !&lt;/p&gt;&lt;p&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='https://www.javainhand.com/feeds/1864307034032457294/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.javainhand.com/2026/05/if-then-elsif-statement-oracle-plsql-examples.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/5396106166793201647/posts/default/1864307034032457294'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5396106166793201647/posts/default/1864307034032457294'/><link rel='alternate' type='text/html' href='https://www.javainhand.com/2026/05/if-then-elsif-statement-oracle-plsql-examples.html' title='IF-THEN-ELSIF Statement in Oracle PLSQL with Examples'/><author><name>Javainhand</name><uri>http://www.blogger.com/profile/18407148468637123743</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhQ3nnDdcQwtLM6n6XkSWHSA4HxZdM3QfdjZXOkMtR-KBzefO0yntF7wz-3fu0YIoPLtewEOUuVbc-QVdacHBnwv21VMe52xfcois-tRhWWk99hswJa8jjmV90TT8Bfzw/s113/javainhand.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhgpwk5dA7uu9_R5etvvek8Qo2N09IpjNrVnksBkIlUYdtKZ8ajCKZY6sYd-oPIpyr-fEX8kpG2Xy0WpHk4k_xWW_ZZosn8diaG8fGnBAKtfBKvded2wOtmek3vsc62NIzkAsZwKIWyc-KjGKzEGlIos0eaiL3kgml16P7Fh-ScbLOhyphenhyphen6zeYMKixep7xPE/s72-w400-h225-c/IF-THEN-ELSIF%20Statement%20in%20Oracle%20PLSQL.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5396106166793201647.post-6089238959044003846</id><published>2026-05-10T13:03:00.001+05:30</published><updated>2026-05-10T13:03:25.634+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="PLSQL Tutorial"/><title type='text'>IF-THEN-ELSE Statement in Oracle PLSQL</title><content type='html'>&lt;p style=&quot;clear: both; text-align: justify;&quot;&gt;Hello Readers, This is another blog post of PLSQL Tutorial. In this Oracle PLSQL Tutorial, we will explain the &lt;b&gt;IF-THEN-ELSE Statement in Oracle PLSQL&lt;/b&gt; with syntax and Examples.&lt;/p&gt;&lt;p style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjln3bHYvwXcWyRn-Hljowhvm0GirtF2SnudmG6lwC0Z_crrBDYg4Y6j6XQLDb6x9I8OK2L9OQXpIt-xyS87HnYfnWFWRAh0IF41M8L4CM2MdxFkEsoE_WA0kObKX6tSL3Df6Iygrw3ORbjNcW1Xe2QgQ8EJxyjxXObWtaysDsKSR38qTXQOf-CejtwLMg/s1280/IF-THEN-ELSE%20Statement%20in%20Oracle%20PLSQL.jpg&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;IF-THEN-ELSE Statement in Oracle PLSQL By Javainhand&quot; border=&quot;0&quot; data-original-height=&quot;720&quot; data-original-width=&quot;1280&quot; height=&quot;225&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjln3bHYvwXcWyRn-Hljowhvm0GirtF2SnudmG6lwC0Z_crrBDYg4Y6j6XQLDb6x9I8OK2L9OQXpIt-xyS87HnYfnWFWRAh0IF41M8L4CM2MdxFkEsoE_WA0kObKX6tSL3Df6Iygrw3ORbjNcW1Xe2QgQ8EJxyjxXObWtaysDsKSR38qTXQOf-CejtwLMg/w400-h225/IF-THEN-ELSE%20Statement%20in%20Oracle%20PLSQL.jpg&quot; title=&quot;IF-THEN-ELSE Statement in Oracle PLSQL Tutorial&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&lt;h1 style=&quot;text-align: justify;&quot;&gt;IF-THEN-ELSE STATEMENT IN ORACLE SQL&lt;/h1&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;In this post, we will discuss the below following topics:&lt;/p&gt;&lt;p style=&quot;text-align: left;&quot;&gt;&lt;/p&gt;&lt;ol style=&quot;text-align: left;&quot;&gt;&lt;li style=&quot;text-align: justify;&quot;&gt;What is the IF-THEN-ELSE Statement in Oracle PLSQL&lt;/li&gt;&lt;li&gt;Syntax of IF-THEN-ELSE Statement in Oracle PLSQL&lt;/li&gt;&lt;li&gt;Example of IF-THEN-ELSE Statement in Oracle PLSQL&lt;/li&gt;&lt;/ol&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;What is the IF-THEN-ELSE Statement in Oracle PLSQL&lt;/h2&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;In the Oracle, the &lt;b&gt;if-then-else statement&lt;/b&gt; is control structure statement that provides two alternative path of execution.&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;If the Boolean Expression(condition) evaluates to TRUE, it executes the sequence of statement inside the THEN block. if condition evaluates to FALSE or NULL, it executes the sequence of statement inside the ELSE block&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;It is an extension of&amp;nbsp; the simple&lt;a href=&quot;https://www.javainhand.com/2025/04/if-statement-in-oracle-plsql.html&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt; IF-THEN Statement&lt;/a&gt;. By adding ELSE keyword, we guarantee that exactly one set of statement will execute based on the condition.&lt;/p&gt;&lt;h2 style=&quot;text-align: justify;&quot;&gt;Syntax of&amp;nbsp; IF-THEN-ELSE Statement in Oracle PLSQL&lt;/h2&gt;&lt;pre&gt;IF condition THEN 
-- sequence_of_statements if condition is TRUE 
ELSE -- sequence_of_statements if condition is FALSE or NULL 
END IF;&lt;/pre&gt;&lt;h2 style=&quot;text-align: justify;&quot;&gt;Example of IF-THEN-ELSE Statement in Oracle PLSQL&lt;/h2&gt;&lt;p style=&quot;text-align: left;&quot;&gt;Let&#39;s understand the &lt;b&gt;IF-THEN-ELSE Statement in Oracle PLSQL &lt;/b&gt;with a simple example where we check if given number is even or odd.&lt;/p&gt;&lt;pre&gt;DECLARE 
   V_NUMBER NUMBER := 15; 
BEGIN 
   -- Checking if the number is divided by 2 
   IF MOD(V_NUMBER, 2) = 0 THEN 
      DBMS_OUTPUT.PUT_LINE(&#39;The Given Number &#39; || V_NUMBER || &#39; is an EVEN Number.&#39;); 
   ELSE 
      DBMS_OUTPUT.PUT_LINE(&#39;The Given Number &#39; || V_NUMBER || &#39; is an ODD Number.&#39;); 
   END IF; 
END;
/&lt;/pre&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;b&gt;OUTPUT&lt;/b&gt;&lt;br /&gt;&lt;/p&gt;&lt;pre&gt;The Given Number 15 is an ODD Number.&lt;/pre&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;b&gt;Example 2: Comparing Two Number&lt;br /&gt;&lt;/b&gt;&lt;/p&gt;&lt;pre&gt;DECLARE 
   V_NUM1 NUMBER := 50; 
   V_NUM2 NUMBER := 100; 
BEGIN 
   IF V_NUM1 &amp;gt; V_NUM2 THEN 
      DBMS_OUTPUT.PUT_LINE(V_NUM1 || &#39; is greater than &#39; || V_NUM2); 
   ELSE 
      DBMS_OUTPUT.PUT_LINE(V_NUM2 || &#39; is greater than &#39; || V_NUM1); 
   END IF; 
END;
/&lt;/pre&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;That&#39;s all for today, I think (IF-THEN-ELSE Statement in Oracle PLSQL) post will be helpful for you. If you like the post then share your view in the comment box.&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;If you want to watch this topic then &lt;a href=&quot;https://youtu.be/FX2ASpnPXYk&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;click here&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='https://www.javainhand.com/feeds/6089238959044003846/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.javainhand.com/2026/05/if-then-else-statement-in-oracle-plsql.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/5396106166793201647/posts/default/6089238959044003846'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5396106166793201647/posts/default/6089238959044003846'/><link rel='alternate' type='text/html' href='https://www.javainhand.com/2026/05/if-then-else-statement-in-oracle-plsql.html' title='IF-THEN-ELSE Statement in Oracle PLSQL'/><author><name>Javainhand</name><uri>http://www.blogger.com/profile/18407148468637123743</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhQ3nnDdcQwtLM6n6XkSWHSA4HxZdM3QfdjZXOkMtR-KBzefO0yntF7wz-3fu0YIoPLtewEOUuVbc-QVdacHBnwv21VMe52xfcois-tRhWWk99hswJa8jjmV90TT8Bfzw/s113/javainhand.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjln3bHYvwXcWyRn-Hljowhvm0GirtF2SnudmG6lwC0Z_crrBDYg4Y6j6XQLDb6x9I8OK2L9OQXpIt-xyS87HnYfnWFWRAh0IF41M8L4CM2MdxFkEsoE_WA0kObKX6tSL3Df6Iygrw3ORbjNcW1Xe2QgQ8EJxyjxXObWtaysDsKSR38qTXQOf-CejtwLMg/s72-w400-h225-c/IF-THEN-ELSE%20Statement%20in%20Oracle%20PLSQL.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5396106166793201647.post-3631813718883781226</id><published>2025-04-30T15:09:00.000+05:30</published><updated>2025-04-30T15:09:59.837+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Difference Between"/><category scheme="http://www.blogger.com/atom/ns#" term="Difference between %ROWTYPE and %TYPE in Oracle PLSQL"/><title type='text'>Difference between %ROWTYPE and %TYPE in Oracle PLSQL</title><content type='html'>&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Roboto Serif; font-size: medium;&quot;&gt;In this Oracle Blog Post, We are sharing another PLSQL Interview question in Oracle PLSQL which is &lt;b&gt;Difference Between %ROWTYPE and %TYPE in Oracle PLSQL&lt;/b&gt;.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;/p&gt;&lt;p style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh9xLOHrT_DOI1l5CvhwN_7kJUb0_ySX_A5GCgrr_vi10jwzsPCnnWJFzNAgamNrhHMvnak3xSWePNdEZicQwst_saa52l5QgvzoQEqWsenLdwbBSifIr9ipdkkzvSx7tL7m026BqyFSIsz7FekvrmbpIDGKbfcg5NTMe5sbYmrRwmHedxO9S3ZhuoNqvw/s1280/TYPE%20VS%20ROWTYPE%20IN%20ORACLE%20PLSQL.jpg&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span style=&quot;font-family: Roboto Serif; font-size: large;&quot;&gt;&lt;img alt=&quot;Difference between %ROWTYPE VS %TYPE in Oracle PLSQL&quot; border=&quot;0&quot; data-original-height=&quot;720&quot; data-original-width=&quot;1280&quot; height=&quot;360&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh9xLOHrT_DOI1l5CvhwN_7kJUb0_ySX_A5GCgrr_vi10jwzsPCnnWJFzNAgamNrhHMvnak3xSWePNdEZicQwst_saa52l5QgvzoQEqWsenLdwbBSifIr9ipdkkzvSx7tL7m026BqyFSIsz7FekvrmbpIDGKbfcg5NTMe5sbYmrRwmHedxO9S3ZhuoNqvw/w640-h360/TYPE%20VS%20ROWTYPE%20IN%20ORACLE%20PLSQL.jpg&quot; title=&quot;Difference between %ROWTYPE VS %TYPE in Oracle PLSQL&quot; width=&quot;640&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;p style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Roboto Serif; font-size: medium;&quot;&gt;Before going to understand &lt;b&gt;%ROWTYPE and %TYPE in Oracle PLSQL,&lt;/b&gt; First we should understand &lt;b&gt;&lt;a href=&quot;https://www.javainhand.com/2021/04/variables-in-oracle-plsql-part-1.html&quot; target=&quot;_blank&quot;&gt;VARIABLE in Oracle PLSQL&lt;/a&gt;&lt;/b&gt;.&lt;/span&gt;&lt;/p&gt;&lt;h3 style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Roboto Serif; font-size: large;&quot;&gt;UNDERSTANDING PLSQL VARIABLES&lt;/span&gt;&lt;/h3&gt;&lt;p&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Roboto Serif;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Variables
are fundamental in PL/SQL. They hold data temporarily during program execution,
allowing you to manipulate and store values across operations. But here&#39;s the
catch—if the variable&#39;s data type doesn&#39;t match the actual column in the table,
you might end up with errors or, worse, corrupt data handling&lt;/span&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;div style=&quot;text-align: left;&quot;&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;font-family: Roboto Serif;&quot;&gt;That&#39;s
where %TYPE and %ROWTYPE&lt;/span&gt;&lt;span style=&quot;font-family: Roboto Serif;&quot;&gt; come into play. These attributes ensure that your
variables are always consistent with the table or column they&#39;re derived from.
Instead of manually specifying a data type (and risking mismatches), you let
Oracle handle it for you. This makes your code not only cleaner but also
future-proof—no need to rewrite your declarations if the schema changes.&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Times New Roman, serif; font-size: 12pt;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;/div&gt;&lt;h3 style=&quot;line-height: normal; text-align: left;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 18pt;&quot;&gt;&lt;span style=&quot;font-family: Roboto Serif;&quot;&gt;What is %TYPE in PL/SQL&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,serif; font-size: 18pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;?&lt;/span&gt;&lt;/b&gt;&lt;/h3&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;font-family: Roboto Serif;&quot;&gt;%TYPE&lt;/span&gt;&lt;span style=&quot;font-family: Roboto Serif;&quot;&gt; is a PL/SQL attribute used to
declare a variable with the same data type as a specific table column or
another variable. It&#39;s like telling Oracle, “Hey, I want this variable to act
just like that column over there.”&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Times New Roman, serif; font-size: 12pt;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;h3 style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Roboto Serif; font-size: x-large;&quot;&gt;Syntax of %TYPE in PLSQL&lt;/span&gt;&lt;/h3&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Roboto Serif; font-size: x-large;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;&lt;span style=&quot;font-family: Roboto Serif; font-size: medium;&quot;&gt;variable_name table_name.column_name%TYPE;&lt;/span&gt;&lt;/pre&gt;&lt;span style=&quot;font-family: Roboto Serif;&quot;&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;b&gt;Use Case:&lt;/b&gt; You want to create a variable
that stores a value from a specific column in a table, and you want to ensure
the variable always has the same data type as that column, even if the column’s
type changes later.&lt;/span&gt;&lt;span style=&quot;font-family: Times New Roman, serif; font-size: 12pt;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;b&gt;Real-world
Scenario:&amp;nbsp;&lt;/b&gt;You’re
creating a stored procedure that needs to reference a customer’s email address.
Rather than hardcoding the data type as VARCHAR2(100) (or
whatever the length is), you simply say:&lt;/span&gt;&lt;span style=&quot;font-family: Times New Roman, serif; font-size: 12pt;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;&lt;span style=&quot;font-family: Times New Roman, serif; font-size: 12pt;&quot;&gt;DECLARE 
&lt;/span&gt;&lt;span style=&quot;font-family: Times New Roman, serif; font-size: medium;&quot;&gt;customer_email customers.email%TYPE;&lt;/span&gt;&lt;/pre&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Now, if someone changes the column type in the future—say, extends the email field to 150 characters—your code will still work without modification.&lt;/span&gt;&lt;/p&gt;&lt;h3 style=&quot;line-height: normal; text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Key Features of %TYPE&lt;/span&gt;&lt;/h3&gt;&lt;p style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Let’s break down what makes %TYPE so valuable:&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: left;&quot;&gt;&lt;/p&gt;&lt;ol style=&quot;text-align: left;&quot;&gt;&lt;li style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;b&gt;Automatic Data Type Inheritance&lt;/b&gt;:&amp;nbsp;&lt;span style=&quot;line-height: 107%;&quot;&gt;%TYPE&lt;/span&gt;&lt;span style=&quot;line-height: 107%;&quot;&gt; ensures your variable always aligns with the
current definition of the column it references. This eliminates data-type
mismatches and enhances maintainability.&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;line-height: 107%;&quot;&gt;&lt;b&gt;Error Reduction&lt;/b&gt;:&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;line-height: 107%;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;No
more guessing or mismatching data types between your code and the table. This
helps avoid run-time errors and logic bugs.&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;line-height: 107%;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;b&gt;Improved Maintainability&lt;/b&gt;:&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;line-height: 107%;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;When
the structure of a table changes (e.g., the column data type changes), you
don’t need to update your PL/SQL code. Oracle takes care of that behind the
scenes.&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;p&gt;&lt;/p&gt;&lt;h3 style=&quot;line-height: normal; text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Example of %TYPE Usage&lt;/span&gt;&lt;/h3&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;pre&gt;DECLARE
   emp_salary employees.salary%TYPE;
   emp_name employees.last_name%TYPE;
BEGIN
   SELECT salary, last_name INTO emp_salary, emp_name
   FROM employees
   WHERE employee_id = 101;

   DBMS_OUTPUT.PUT_LINE(&#39;Employee Name: &#39; || emp_name);
   DBMS_OUTPUT.PUT_LINE(&#39;Salary: &#39; || emp_salary);
END;
&lt;/pre&gt;&lt;/span&gt;&lt;p&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;b&gt;Explanation&lt;/b&gt;:&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;ul type=&quot;disc&quot;&gt;
 &lt;li class=&quot;MsoNormal&quot; style=&quot;line-height: normal; text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;b&gt;Line 2-3:&lt;/b&gt; We declare two variables, emp_salary and emp_name, that will inherit the data
     types of salary and last_name columns from the employees table.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
 &lt;li class=&quot;MsoNormal&quot; style=&quot;line-height: normal; text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;b&gt;Line 5-7:&lt;/b&gt; We select the values from
     the table directly into these variables.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
 &lt;li class=&quot;MsoNormal&quot; style=&quot;line-height: normal; text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;b&gt;Line 9-10:&lt;/b&gt; We print the values using DBMS_OUTPUT.&lt;/span&gt;&lt;span style=&quot;font-family: Times New Roman, serif; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;If USER ever updates the data type of salary from NUMBER(8,2) to NUMBER(10,2) or
changes last_name to a longer VARCHAR2, this code still works flawlessly. No edits
needed.&lt;/span&gt;&lt;/p&gt;&lt;h3 style=&quot;line-height: normal;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;What is %ROWTYPE in PLSQL?&lt;/span&gt;&lt;/h3&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Now that we’ve tackled %TYPE, let’s explore its big brother: %ROWTYPE. If %TYPE lets you mirror a single column’s data type, %ROWTYPE lets you grab the entire row’s structure. Think of it as a shortcut to declare a record that matches a whole table row, field by field.&lt;/span&gt;&lt;/p&gt;&lt;h3 style=&quot;line-height: normal;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Syntax of %ROWTYPE in PLSQL&lt;/span&gt;&lt;/h3&gt;&lt;p&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;&lt;span style=&quot;font-size: large;&quot;&gt;record_variable table_name%ROWTYPE;&lt;/span&gt;&lt;/pre&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;b&gt;Use Case&lt;/b&gt;: You need to fetch or process an entire row from a table and don’t want to declare a separate variable for each column manually.&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;b&gt;Real-world Scenario&lt;/b&gt;: Say you want to retrieve all the data for a specific employee from the employees table. Instead of declaring variables for employee_id, first_name, last_name, salary, and every other field, you just say:&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;DECLARE
   emp_record employees%ROWTYPE;&lt;span style=&quot;font-family: Roboto Serif;&quot;&gt;&lt;span style=&quot;white-space: normal;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;p&gt;&lt;span&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Boom! You’ve now got a single variable (emp_record) that contains every column from the employees table, each as a field within that record. It&#39;s like grabbing an entire row into one container.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;h3&gt;Key Feature&#39;s of %ROWTYPE&lt;/h3&gt;&lt;p&gt;&lt;/p&gt;&lt;ol&gt;&lt;li&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;b&gt;Schema Synchronization&lt;/b&gt;: Just like %TYPE, if the table structure changes—say, a new column is added—your %ROWTYPE variable automatically includes it. No code changes required.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;b&gt;Perfect for Cursor Operation&lt;/b&gt;s: %ROWTYPE works beautifully with explicit and implicit cursors. It simplifies row-by-row processing in loops.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;b&gt;Readable &amp;amp; Maintainable&lt;/b&gt;: One variable that reflects the entire row makes your code easier to read, understand, and maintain over time.&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;p&gt;&lt;/p&gt;&lt;h3 style=&quot;line-height: normal;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Example of %ROWTYPE&lt;/span&gt;&lt;/h3&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;DECLARE
   emp_rec employees%ROWTYPE;
BEGIN
   SELECT * INTO emp_rec
   FROM employees
   WHERE employee_id = 101;

   DBMS_OUTPUT.PUT_LINE(&#39;ID: &#39; || emp_rec.employee_id);
   DBMS_OUTPUT.PUT_LINE(&#39;Name: &#39; || emp_rec.first_name || &#39; &#39; || emp_rec.last_name);
   DBMS_OUTPUT.PUT_LINE(&#39;Salary: &#39; || emp_rec.salary);
END;&lt;span style=&quot;font-family: Roboto Serif;&quot;&gt;&lt;span style=&quot;white-space: normal;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;b&gt;Explanation&lt;/b&gt;:&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;&lt;/p&gt;&lt;ol&gt;&lt;li&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;b&gt;Line 2&lt;/b&gt;: We declare emp_rec as a record based on the structure of the employees table.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;b&gt;Line 4&lt;/b&gt;: We select an entire row into the record using SELECT * INTO.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;b&gt;Line 6-8&lt;/b&gt;: We access individual fields using dot notation to print employee details.&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;p&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;This method is especially handy when dealing with tables that have lots of columns. Instead of juggling 10+ variables, one %ROWTYPE record handles everything gracefully.&lt;/span&gt;&lt;/p&gt;&lt;h1 style=&quot;line-height: normal;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Difference Between %TYPE and %ROWTYPE&lt;/span&gt;&lt;/h1&gt;&lt;table border=&quot;1&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;MsoTable15Plain1&quot; style=&quot;border-collapse: collapse; border: none; mso-border-alt: solid #BFBFBF .5pt; mso-border-themecolor: background1; mso-border-themeshade: 191; mso-padding-alt: 0cm 5.4pt 0cm 5.4pt; mso-yfti-tbllook: 1184;&quot;&gt;
 &lt;tbody&gt;&lt;tr&gt;
  &lt;td style=&quot;border: 1pt solid rgb(191, 191, 191); mso-border-alt: solid #BFBFBF .5pt; mso-border-themecolor: background1; mso-border-themeshade: 191; padding: 0cm 5.4pt;&quot; valign=&quot;top&quot;&gt;
  &lt;p align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm; mso-yfti-cnfc: 5; text-align: center;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;b&gt;Feature&lt;/b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
  &lt;/td&gt;
  &lt;td style=&quot;border-left: none; border: 1pt solid rgb(191, 191, 191); mso-border-alt: solid #BFBFBF .5pt; mso-border-left-alt: solid #BFBFBF .5pt; mso-border-left-themecolor: background1; mso-border-left-themeshade: 191; mso-border-themecolor: background1; mso-border-themeshade: 191; padding: 0cm 5.4pt;&quot; valign=&quot;top&quot;&gt;
  &lt;p align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm; mso-yfti-cnfc: 1; text-align: center;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;b&gt;%TYPE&lt;/b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
  &lt;/td&gt;
  &lt;td style=&quot;border-left: none; border: 1pt solid rgb(191, 191, 191); mso-border-alt: solid #BFBFBF .5pt; mso-border-left-alt: solid #BFBFBF .5pt; mso-border-left-themecolor: background1; mso-border-left-themeshade: 191; mso-border-themecolor: background1; mso-border-themeshade: 191; padding: 0cm 5.4pt;&quot; valign=&quot;top&quot;&gt;
  &lt;p align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm; mso-yfti-cnfc: 1; text-align: center;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;b&gt;%ROWTYPE&lt;/b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
  &lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
  &lt;td style=&quot;background: rgb(242, 242, 242); border-top: none; border: 1pt solid rgb(191, 191, 191); mso-background-themecolor: background1; mso-background-themeshade: 242; mso-border-alt: solid #BFBFBF .5pt; mso-border-themecolor: background1; mso-border-themeshade: 191; mso-border-top-alt: solid #BFBFBF .5pt; mso-border-top-themecolor: background1; mso-border-top-themeshade: 191; padding: 0cm 5.4pt;&quot; valign=&quot;top&quot;&gt;
  &lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm; mso-yfti-cnfc: 68;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Scope&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;
  &lt;/td&gt;
  &lt;td style=&quot;background: rgb(242, 242, 242); border-bottom: 1pt solid rgb(191, 191, 191); border-left: none; border-right: 1pt solid rgb(191, 191, 191); border-top: none; mso-background-themecolor: background1; mso-background-themeshade: 242; mso-border-alt: solid #BFBFBF .5pt; mso-border-bottom-themecolor: background1; mso-border-bottom-themeshade: 191; mso-border-left-alt: solid #BFBFBF .5pt; mso-border-left-themecolor: background1; mso-border-left-themeshade: 191; mso-border-right-themecolor: background1; mso-border-right-themeshade: 191; mso-border-themecolor: background1; mso-border-themeshade: 191; mso-border-top-alt: solid #BFBFBF .5pt; mso-border-top-themecolor: background1; mso-border-top-themeshade: 191; padding: 0cm 5.4pt;&quot; valign=&quot;top&quot;&gt;
  &lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm; mso-yfti-cnfc: 64;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Single
  column&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
  &lt;/td&gt;
  &lt;td style=&quot;background: rgb(242, 242, 242); border-bottom: 1pt solid rgb(191, 191, 191); border-left: none; border-right: 1pt solid rgb(191, 191, 191); border-top: none; mso-background-themecolor: background1; mso-background-themeshade: 242; mso-border-alt: solid #BFBFBF .5pt; mso-border-bottom-themecolor: background1; mso-border-bottom-themeshade: 191; mso-border-left-alt: solid #BFBFBF .5pt; mso-border-left-themecolor: background1; mso-border-left-themeshade: 191; mso-border-right-themecolor: background1; mso-border-right-themeshade: 191; mso-border-themecolor: background1; mso-border-themeshade: 191; mso-border-top-alt: solid #BFBFBF .5pt; mso-border-top-themecolor: background1; mso-border-top-themeshade: 191; padding: 0cm 5.4pt;&quot; valign=&quot;top&quot;&gt;
  &lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm; mso-yfti-cnfc: 64;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Entire
  row&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
  &lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
  &lt;td style=&quot;border-top: none; border: 1pt solid rgb(191, 191, 191); mso-border-alt: solid #BFBFBF .5pt; mso-border-themecolor: background1; mso-border-themeshade: 191; mso-border-top-alt: solid #BFBFBF .5pt; mso-border-top-themecolor: background1; mso-border-top-themeshade: 191; padding: 0cm 5.4pt;&quot; valign=&quot;top&quot;&gt;
  &lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm; mso-yfti-cnfc: 4;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Usage&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;
  &lt;/td&gt;
  &lt;td style=&quot;border-bottom: 1pt solid rgb(191, 191, 191); border-left: none; border-right: 1pt solid rgb(191, 191, 191); border-top: none; mso-border-alt: solid #BFBFBF .5pt; mso-border-bottom-themecolor: background1; mso-border-bottom-themeshade: 191; mso-border-left-alt: solid #BFBFBF .5pt; mso-border-left-themecolor: background1; mso-border-left-themeshade: 191; mso-border-right-themecolor: background1; mso-border-right-themeshade: 191; mso-border-themecolor: background1; mso-border-themeshade: 191; mso-border-top-alt: solid #BFBFBF .5pt; mso-border-top-themecolor: background1; mso-border-top-themeshade: 191; padding: 0cm 5.4pt;&quot; valign=&quot;top&quot;&gt;
  &lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Declares
  variable with same type as a column&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
  &lt;/td&gt;
  &lt;td style=&quot;border-bottom: 1pt solid rgb(191, 191, 191); border-left: none; border-right: 1pt solid rgb(191, 191, 191); border-top: none; mso-border-alt: solid #BFBFBF .5pt; mso-border-bottom-themecolor: background1; mso-border-bottom-themeshade: 191; mso-border-left-alt: solid #BFBFBF .5pt; mso-border-left-themecolor: background1; mso-border-left-themeshade: 191; mso-border-right-themecolor: background1; mso-border-right-themeshade: 191; mso-border-themecolor: background1; mso-border-themeshade: 191; mso-border-top-alt: solid #BFBFBF .5pt; mso-border-top-themecolor: background1; mso-border-top-themeshade: 191; padding: 0cm 5.4pt;&quot; valign=&quot;top&quot;&gt;
  &lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Declares
  record matching row structure of table&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
  &lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
  &lt;td style=&quot;background: rgb(242, 242, 242); border-top: none; border: 1pt solid rgb(191, 191, 191); mso-background-themecolor: background1; mso-background-themeshade: 242; mso-border-alt: solid #BFBFBF .5pt; mso-border-themecolor: background1; mso-border-themeshade: 191; mso-border-top-alt: solid #BFBFBF .5pt; mso-border-top-themecolor: background1; mso-border-top-themeshade: 191; padding: 0cm 5.4pt;&quot; valign=&quot;top&quot;&gt;
  &lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm; mso-yfti-cnfc: 68;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Syntax&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;
  &lt;/td&gt;
  &lt;td style=&quot;background: rgb(242, 242, 242); border-bottom: 1pt solid rgb(191, 191, 191); border-left: none; border-right: 1pt solid rgb(191, 191, 191); border-top: none; mso-background-themecolor: background1; mso-background-themeshade: 242; mso-border-alt: solid #BFBFBF .5pt; mso-border-bottom-themecolor: background1; mso-border-bottom-themeshade: 191; mso-border-left-alt: solid #BFBFBF .5pt; mso-border-left-themecolor: background1; mso-border-left-themeshade: 191; mso-border-right-themecolor: background1; mso-border-right-themeshade: 191; mso-border-themecolor: background1; mso-border-themeshade: 191; mso-border-top-alt: solid #BFBFBF .5pt; mso-border-top-themecolor: background1; mso-border-top-themeshade: 191; padding: 0cm 5.4pt;&quot; valign=&quot;top&quot;&gt;
  &lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm; mso-yfti-cnfc: 64;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;var_name
  table.column%TYPE&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
  &lt;/td&gt;
  &lt;td style=&quot;background: rgb(242, 242, 242); border-bottom: 1pt solid rgb(191, 191, 191); border-left: none; border-right: 1pt solid rgb(191, 191, 191); border-top: none; mso-background-themecolor: background1; mso-background-themeshade: 242; mso-border-alt: solid #BFBFBF .5pt; mso-border-bottom-themecolor: background1; mso-border-bottom-themeshade: 191; mso-border-left-alt: solid #BFBFBF .5pt; mso-border-left-themecolor: background1; mso-border-left-themeshade: 191; mso-border-right-themecolor: background1; mso-border-right-themeshade: 191; mso-border-themecolor: background1; mso-border-themeshade: 191; mso-border-top-alt: solid #BFBFBF .5pt; mso-border-top-themecolor: background1; mso-border-top-themeshade: 191; padding: 0cm 5.4pt;&quot; valign=&quot;top&quot;&gt;
  &lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm; mso-yfti-cnfc: 64;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;record_name
  table%ROWTYPE&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
  &lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
  &lt;td style=&quot;border-top: none; border: 1pt solid rgb(191, 191, 191); mso-border-alt: solid #BFBFBF .5pt; mso-border-themecolor: background1; mso-border-themeshade: 191; mso-border-top-alt: solid #BFBFBF .5pt; mso-border-top-themecolor: background1; mso-border-top-themeshade: 191; padding: 0cm 5.4pt;&quot; valign=&quot;top&quot;&gt;
  &lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm; mso-yfti-cnfc: 4;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Access
  Type&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;
  &lt;/td&gt;
  &lt;td style=&quot;border-bottom: 1pt solid rgb(191, 191, 191); border-left: none; border-right: 1pt solid rgb(191, 191, 191); border-top: none; mso-border-alt: solid #BFBFBF .5pt; mso-border-bottom-themecolor: background1; mso-border-bottom-themeshade: 191; mso-border-left-alt: solid #BFBFBF .5pt; mso-border-left-themecolor: background1; mso-border-left-themeshade: 191; mso-border-right-themecolor: background1; mso-border-right-themeshade: 191; mso-border-themecolor: background1; mso-border-themeshade: 191; mso-border-top-alt: solid #BFBFBF .5pt; mso-border-top-themecolor: background1; mso-border-top-themeshade: 191; padding: 0cm 5.4pt;&quot; valign=&quot;top&quot;&gt;
  &lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Direct
  variable&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
  &lt;/td&gt;
  &lt;td style=&quot;border-bottom: 1pt solid rgb(191, 191, 191); border-left: none; border-right: 1pt solid rgb(191, 191, 191); border-top: none; mso-border-alt: solid #BFBFBF .5pt; mso-border-bottom-themecolor: background1; mso-border-bottom-themeshade: 191; mso-border-left-alt: solid #BFBFBF .5pt; mso-border-left-themecolor: background1; mso-border-left-themeshade: 191; mso-border-right-themecolor: background1; mso-border-right-themeshade: 191; mso-border-themecolor: background1; mso-border-themeshade: 191; mso-border-top-alt: solid #BFBFBF .5pt; mso-border-top-themecolor: background1; mso-border-top-themeshade: 191; padding: 0cm 5.4pt;&quot; valign=&quot;top&quot;&gt;
  &lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Dot
  notation (record.field)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
  &lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
  &lt;td style=&quot;background: rgb(242, 242, 242); border-top: none; border: 1pt solid rgb(191, 191, 191); mso-background-themecolor: background1; mso-background-themeshade: 242; mso-border-alt: solid #BFBFBF .5pt; mso-border-themecolor: background1; mso-border-themeshade: 191; mso-border-top-alt: solid #BFBFBF .5pt; mso-border-top-themecolor: background1; mso-border-top-themeshade: 191; padding: 0cm 5.4pt;&quot; valign=&quot;top&quot;&gt;
  &lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm; mso-yfti-cnfc: 68;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Use in
  Cursors&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;
  &lt;/td&gt;
  &lt;td style=&quot;background: rgb(242, 242, 242); border-bottom: 1pt solid rgb(191, 191, 191); border-left: none; border-right: 1pt solid rgb(191, 191, 191); border-top: none; mso-background-themecolor: background1; mso-background-themeshade: 242; mso-border-alt: solid #BFBFBF .5pt; mso-border-bottom-themecolor: background1; mso-border-bottom-themeshade: 191; mso-border-left-alt: solid #BFBFBF .5pt; mso-border-left-themecolor: background1; mso-border-left-themeshade: 191; mso-border-right-themecolor: background1; mso-border-right-themeshade: 191; mso-border-themecolor: background1; mso-border-themeshade: 191; mso-border-top-alt: solid #BFBFBF .5pt; mso-border-top-themecolor: background1; mso-border-top-themeshade: 191; padding: 0cm 5.4pt;&quot; valign=&quot;top&quot;&gt;
  &lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm; mso-yfti-cnfc: 64;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Not
  suitable&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
  &lt;/td&gt;
  &lt;td style=&quot;background: rgb(242, 242, 242); border-bottom: 1pt solid rgb(191, 191, 191); border-left: none; border-right: 1pt solid rgb(191, 191, 191); border-top: none; mso-background-themecolor: background1; mso-background-themeshade: 242; mso-border-alt: solid #BFBFBF .5pt; mso-border-bottom-themecolor: background1; mso-border-bottom-themeshade: 191; mso-border-left-alt: solid #BFBFBF .5pt; mso-border-left-themecolor: background1; mso-border-left-themeshade: 191; mso-border-right-themecolor: background1; mso-border-right-themeshade: 191; mso-border-themecolor: background1; mso-border-themeshade: 191; mso-border-top-alt: solid #BFBFBF .5pt; mso-border-top-themecolor: background1; mso-border-top-themeshade: 191; padding: 0cm 5.4pt;&quot; valign=&quot;top&quot;&gt;
  &lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm; mso-yfti-cnfc: 64;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Ideal
  for row-by-row cursor operations&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
  &lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
  &lt;td style=&quot;border-top: none; border: 1pt solid rgb(191, 191, 191); mso-border-alt: solid #BFBFBF .5pt; mso-border-themecolor: background1; mso-border-themeshade: 191; mso-border-top-alt: solid #BFBFBF .5pt; mso-border-top-themecolor: background1; mso-border-top-themeshade: 191; padding: 0cm 5.4pt;&quot; valign=&quot;top&quot;&gt;
  &lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm; mso-yfti-cnfc: 4;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Flexibility&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;
  &lt;/td&gt;
  &lt;td style=&quot;border-bottom: 1pt solid rgb(191, 191, 191); border-left: none; border-right: 1pt solid rgb(191, 191, 191); border-top: none; mso-border-alt: solid #BFBFBF .5pt; mso-border-bottom-themecolor: background1; mso-border-bottom-themeshade: 191; mso-border-left-alt: solid #BFBFBF .5pt; mso-border-left-themecolor: background1; mso-border-left-themeshade: 191; mso-border-right-themecolor: background1; mso-border-right-themeshade: 191; mso-border-themecolor: background1; mso-border-themeshade: 191; mso-border-top-alt: solid #BFBFBF .5pt; mso-border-top-themecolor: background1; mso-border-top-themeshade: 191; padding: 0cm 5.4pt;&quot; valign=&quot;top&quot;&gt;
  &lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Limited
  to one column&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
  &lt;/td&gt;
  &lt;td style=&quot;border-bottom: 1pt solid rgb(191, 191, 191); border-left: none; border-right: 1pt solid rgb(191, 191, 191); border-top: none; mso-border-alt: solid #BFBFBF .5pt; mso-border-bottom-themecolor: background1; mso-border-bottom-themeshade: 191; mso-border-left-alt: solid #BFBFBF .5pt; mso-border-left-themecolor: background1; mso-border-left-themeshade: 191; mso-border-right-themecolor: background1; mso-border-right-themeshade: 191; mso-border-themecolor: background1; mso-border-themeshade: 191; mso-border-top-alt: solid #BFBFBF .5pt; mso-border-top-themecolor: background1; mso-border-top-themeshade: 191; padding: 0cm 5.4pt;&quot; valign=&quot;top&quot;&gt;
  &lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Adapts
  to table structure entirely&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
  &lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
  &lt;td style=&quot;background: rgb(242, 242, 242); border-top: none; border: 1pt solid rgb(191, 191, 191); mso-background-themecolor: background1; mso-background-themeshade: 242; mso-border-alt: solid #BFBFBF .5pt; mso-border-themecolor: background1; mso-border-themeshade: 191; mso-border-top-alt: solid #BFBFBF .5pt; mso-border-top-themecolor: background1; mso-border-top-themeshade: 191; padding: 0cm 5.4pt;&quot; valign=&quot;top&quot;&gt;
  &lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm; mso-yfti-cnfc: 68;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Readability&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;
  &lt;/td&gt;
  &lt;td style=&quot;background: rgb(242, 242, 242); border-bottom: 1pt solid rgb(191, 191, 191); border-left: none; border-right: 1pt solid rgb(191, 191, 191); border-top: none; mso-background-themecolor: background1; mso-background-themeshade: 242; mso-border-alt: solid #BFBFBF .5pt; mso-border-bottom-themecolor: background1; mso-border-bottom-themeshade: 191; mso-border-left-alt: solid #BFBFBF .5pt; mso-border-left-themecolor: background1; mso-border-left-themeshade: 191; mso-border-right-themecolor: background1; mso-border-right-themeshade: 191; mso-border-themecolor: background1; mso-border-themeshade: 191; mso-border-top-alt: solid #BFBFBF .5pt; mso-border-top-themecolor: background1; mso-border-top-themeshade: 191; padding: 0cm 5.4pt;&quot; valign=&quot;top&quot;&gt;
  &lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm; mso-yfti-cnfc: 64;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Good&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
  &lt;/td&gt;
  &lt;td style=&quot;background: rgb(242, 242, 242); border-bottom: 1pt solid rgb(191, 191, 191); border-left: none; border-right: 1pt solid rgb(191, 191, 191); border-top: none; mso-background-themecolor: background1; mso-background-themeshade: 242; mso-border-alt: solid #BFBFBF .5pt; mso-border-bottom-themecolor: background1; mso-border-bottom-themeshade: 191; mso-border-left-alt: solid #BFBFBF .5pt; mso-border-left-themecolor: background1; mso-border-left-themeshade: 191; mso-border-right-themecolor: background1; mso-border-right-themeshade: 191; mso-border-themecolor: background1; mso-border-themeshade: 191; mso-border-top-alt: solid #BFBFBF .5pt; mso-border-top-themecolor: background1; mso-border-top-themeshade: 191; padding: 0cm 5.4pt;&quot; valign=&quot;top&quot;&gt;
  &lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm; mso-yfti-cnfc: 64;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Better
  for full-row operations&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
  &lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
  &lt;td style=&quot;border-top: none; border: 1pt solid rgb(191, 191, 191); mso-border-alt: solid #BFBFBF .5pt; mso-border-themecolor: background1; mso-border-themeshade: 191; mso-border-top-alt: solid #BFBFBF .5pt; mso-border-top-themecolor: background1; mso-border-top-themeshade: 191; padding: 0cm 5.4pt;&quot; valign=&quot;top&quot;&gt;
  &lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm; mso-yfti-cnfc: 4;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Maintenance&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;
  &lt;/td&gt;
  &lt;td style=&quot;border-bottom: 1pt solid rgb(191, 191, 191); border-left: none; border-right: 1pt solid rgb(191, 191, 191); border-top: none; mso-border-alt: solid #BFBFBF .5pt; mso-border-bottom-themecolor: background1; mso-border-bottom-themeshade: 191; mso-border-left-alt: solid #BFBFBF .5pt; mso-border-left-themecolor: background1; mso-border-left-themeshade: 191; mso-border-right-themecolor: background1; mso-border-right-themeshade: 191; mso-border-themecolor: background1; mso-border-themeshade: 191; mso-border-top-alt: solid #BFBFBF .5pt; mso-border-top-themecolor: background1; mso-border-top-themeshade: 191; padding: 0cm 5.4pt;&quot; valign=&quot;top&quot;&gt;
  &lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Easy if
  column type changes&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
  &lt;/td&gt;
  &lt;td style=&quot;border-bottom: 1pt solid rgb(191, 191, 191); border-left: none; border-right: 1pt solid rgb(191, 191, 191); border-top: none; mso-border-alt: solid #BFBFBF .5pt; mso-border-bottom-themecolor: background1; mso-border-bottom-themeshade: 191; mso-border-left-alt: solid #BFBFBF .5pt; mso-border-left-themecolor: background1; mso-border-left-themeshade: 191; mso-border-right-themecolor: background1; mso-border-right-themeshade: 191; mso-border-themecolor: background1; mso-border-themeshade: 191; mso-border-top-alt: solid #BFBFBF .5pt; mso-border-top-themecolor: background1; mso-border-top-themeshade: 191; padding: 0cm 5.4pt;&quot; valign=&quot;top&quot;&gt;
  &lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Easier
  for dynamic row structure changes&lt;/span&gt;&lt;span style=&quot;font-family: Times New Roman, serif; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
  &lt;/td&gt;
 &lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;p&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;Conclusion&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;In the world of PL/SQL, %TYPE and %ROWTYPE aren&#39;t just conveniences—they&#39;re essential tools that boost the robustness, maintainability, and clarity of your code. %TYPE offers a precise way to align variables with column definitions, while %ROWTYPE gives you a powerful mechanism to mirror full rows without the clutter of multiple declarations.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Here&#39;s the bottom line:&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Use %TYPE when you only need one or two fields and want to stay tightly aligned with the column definitions.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Use %ROWTYPE when you want to handle or retrieve an entire row in one clean statement.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Combine both when your PL/SQL programs become more complex.&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Both attributes promote best practices in PL/SQL by eliminating hardcoding, enhancing flexibility, and making your applications more resilient to schema changes. Whether you&#39;re building enterprise HR systems, e-commerce platforms, or core banking software, leveraging %TYPE and %ROWTYPE will make your code smarter, cleaner, and more adaptable&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;Watch Video of &lt;a href=&quot;https://youtu.be/nysNmsIdSho&quot; rel=&quot;&quot; target=&quot;_blank&quot;&gt;%TYPE&lt;/a&gt; and &lt;a href=&quot;https://youtu.be/42rqDDvq8oM&quot; target=&quot;_blank&quot;&gt;%ROWTYPE&lt;/a&gt; in Oracle PLSQL.&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='https://www.javainhand.com/feeds/3631813718883781226/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.javainhand.com/2025/04/difference-between-rowtype-and-type-in-oracle-plsql.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/5396106166793201647/posts/default/3631813718883781226'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5396106166793201647/posts/default/3631813718883781226'/><link rel='alternate' type='text/html' href='https://www.javainhand.com/2025/04/difference-between-rowtype-and-type-in-oracle-plsql.html' title='Difference between %ROWTYPE and %TYPE in Oracle PLSQL'/><author><name>Javainhand</name><uri>http://www.blogger.com/profile/18407148468637123743</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhQ3nnDdcQwtLM6n6XkSWHSA4HxZdM3QfdjZXOkMtR-KBzefO0yntF7wz-3fu0YIoPLtewEOUuVbc-QVdacHBnwv21VMe52xfcois-tRhWWk99hswJa8jjmV90TT8Bfzw/s113/javainhand.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh9xLOHrT_DOI1l5CvhwN_7kJUb0_ySX_A5GCgrr_vi10jwzsPCnnWJFzNAgamNrhHMvnak3xSWePNdEZicQwst_saa52l5QgvzoQEqWsenLdwbBSifIr9ipdkkzvSx7tL7m026BqyFSIsz7FekvrmbpIDGKbfcg5NTMe5sbYmrRwmHedxO9S3ZhuoNqvw/s72-w640-h360-c/TYPE%20VS%20ROWTYPE%20IN%20ORACLE%20PLSQL.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5396106166793201647.post-8896500460398502380</id><published>2025-04-29T14:35:00.003+05:30</published><updated>2025-04-29T14:35:43.150+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Difference Between"/><category scheme="http://www.blogger.com/atom/ns#" term="Difference Between Implicit and Explicit Cursor in Oracle PLSQL"/><category scheme="http://www.blogger.com/atom/ns#" term="PLSQL"/><title type='text'>Difference Between Implicit and Explicit Cursor in Oracle PLSQL</title><content type='html'>&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;&lt;span style=&quot;text-align: justify;&quot;&gt;In this Oracle Blog Post, We are sharing most asked interview question in Oracle PLSQL which is&amp;nbsp;&lt;/span&gt;&lt;b style=&quot;text-align: justify;&quot;&gt;difference between&amp;nbsp;&lt;/b&gt;&lt;span style=&quot;text-align: justify;&quot;&gt;&lt;b&gt;&amp;nbsp;Implicit and Explicit Cursor&amp;nbsp;&amp;nbsp;in Oracle PLSQL&lt;/b&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;text-align: justify;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgiv3Pwr59YYnQDOMSokgz2ySonYYrOUAK5RDjoyGinKfqWm0ZyzyTT0UVoqoiLmBsYtyFwKTSzwMfBxad-CNa4eQzQvIz5y2-JRYfSJGVMe2oN3jSbkHvQeJMwqEs5w4I4nbs-pxzoXIX7L6ok93UN-yXMM_1lnIzsXYj0fXEY65pZ8QkHo51XAU6aYvY/s1280/Implicit%20vs.%20Explicit%20Cursors%20.jpg&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;Difference Between Implicit and Explicit Cursor in Oracle PLSQL&quot; border=&quot;0&quot; data-original-height=&quot;720&quot; data-original-width=&quot;1280&quot; height=&quot;360&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgiv3Pwr59YYnQDOMSokgz2ySonYYrOUAK5RDjoyGinKfqWm0ZyzyTT0UVoqoiLmBsYtyFwKTSzwMfBxad-CNa4eQzQvIz5y2-JRYfSJGVMe2oN3jSbkHvQeJMwqEs5w4I4nbs-pxzoXIX7L6ok93UN-yXMM_1lnIzsXYj0fXEY65pZ8QkHo51XAU6aYvY/w640-h360/Implicit%20vs.%20Explicit%20Cursors%20.jpg&quot; title=&quot;Difference Between Implicit and Explicit Cursor in Oracle PLSQL&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&lt;h1 style=&quot;line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-outline-level: 2;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;Implicit vs Explicit Cursor in Oracle PLSQL: Understanding the Difference&lt;/span&gt;&lt;/b&gt;&lt;/h1&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;When
working with Oracle databases and its procedural language extension, PL/SQL,
you&#39;ll inevitably need to interact with data retrieved from SQL queries.
Cursors are fundamental mechanisms that allow PL/SQL to handle the result sets
of these queries, essentially acting as pointers to the memory area where the
query results are processed.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;

&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;Oracle
provides two main types of cursors: &lt;b&gt;Implicit Cursors&lt;/b&gt; and &lt;b&gt;Explicit
Cursors&lt;/b&gt;. Understanding when and how to use each is crucial for writing
efficient and effective PL/SQL code. Let&#39;s dive into the details.&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;, serif; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;h3 style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;What is Cursor, Briefly?&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;&lt;div&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;At its
core, a cursor is a pointer to a private SQL area, a region in memory allocated
by Oracle to process SQL statements. This area contains information about the
statement, including the parsed representation and, for queries, the result set
(or a pointer to it). Cursors allow your PL/SQL code to process rows returned
by a query, potentially one at a time.&lt;/span&gt;&lt;span style=&quot;font-family: Times New Roman, serif; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;h3 style=&quot;line-height: normal; text-align: left;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;Implicit Cursors: The Automatic Choice&lt;/span&gt;&lt;/b&gt;&lt;/h3&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Oracle
automatically manages implicit cursors whenever you execute a SQL DML statement
(like INSERT, UPDATE, DELETE) or a SELECT INTO&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt; statement that is expected to return only &lt;b&gt;one
row&lt;/b&gt;. You don&#39;t declare them; Oracle handles the opening, fetching, and
closing behind the scenes.&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;, serif; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;Key
Characteristics:&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,serif; font-size: 12pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;ol start=&quot;1&quot; type=&quot;1&quot;&gt;
 &lt;li class=&quot;MsoNormal&quot; style=&quot;line-height: normal; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;&lt;b&gt;Automatic:&lt;/b&gt; Managed entirely by Oracle.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
 &lt;li class=&quot;MsoNormal&quot; style=&quot;line-height: normal; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;&lt;b&gt;No Declaration:&lt;/b&gt; You don&#39;t write code to
     declare an implicit cursor.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
 &lt;li class=&quot;MsoNormal&quot; style=&quot;line-height: normal; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;&lt;b&gt;Default Name:&lt;/b&gt; Oracle uses the default
     identifier SQL to refer to the most
     recently executed implicit cursor.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
 &lt;li class=&quot;MsoNormal&quot; style=&quot;line-height: normal; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;Use Cases:&lt;/b&gt; Primarily for DML
     statements and single-row SELECT INTO&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;
     queries.&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;, serif; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; text-align: justify;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;Cursor
Attributes:&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,serif; font-size: 12pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: georgia;&quot;&gt;Even
though they are managed implicitly, you can access information about the
execution of the &lt;i&gt;most recent&lt;/i&gt; SQL statement using cursor attributes
prefixed with SQL%&lt;/span&gt;&lt;span style=&quot;font-family: georgia;&quot;&gt;:&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Times New Roman, serif; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; text-align: justify;&quot;&gt;

&lt;/p&gt;&lt;ul type=&quot;disc&quot;&gt;
 &lt;li class=&quot;MsoNormal&quot; style=&quot;line-height: normal; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;&lt;b&gt;SQL%FOUND&lt;/b&gt;: Boolean. TRUE if the recent DML statement
     affected one or more rows, or if a SELECT INTO returned a row. FALSE otherwise.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
 &lt;li class=&quot;MsoNormal&quot; style=&quot;line-height: normal; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;&lt;b&gt;SQL%NOTFOUND&lt;/b&gt;: Boolean. The logical
     opposite of SQL%FOUND. TRUE if the recent DML affected
     zero rows, or if SELECT
     INTO
     returned no rows.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
 &lt;li class=&quot;MsoNormal&quot; style=&quot;line-height: normal; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;&lt;b&gt;SQL%ROWCOUNT&lt;/b&gt;: Number. Returns the number
     of rows affected by the most recent DML statement. For SELECT INTO, it&#39;s 1 if a row is found,
     0 otherwise (though NO_DATA_FOUND exception is usually raised
     before you check if no row is found).&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
 &lt;li class=&quot;MsoNormal&quot; style=&quot;line-height: normal; text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: georgia;&quot;&gt;&lt;b&gt;SQL%ISOPEN&lt;/b&gt;: Boolean. Always FALSE&lt;/span&gt;&lt;span style=&quot;font-family: georgia;&quot;&gt; for implicit cursors
     because Oracle opens and closes them automatically around the statement
     execution.&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Times New Roman, serif; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;&lt;b&gt;Example
1: Using Implicit Cursor with &lt;/b&gt;&lt;b&gt;UPDATE&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,serif; font-size: 12pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;Let&#39;s assume we have an &lt;b&gt;EMPLOYEE &lt;/b&gt;table.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;SQL:-&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;&lt;span style=&quot;font-family: inherit; font-size: large;&quot;&gt;DECLARE
  v_dept_id employees.department_id%TYPE := 90; -- Example department ID
BEGIN
  -- Update the salary for employees in a specific department
  UPDATE employees
  SET salary = salary * 1.05
  WHERE department_id = v_dept_id;

  -- Check if any rows were updated
  IF SQL%FOUND THEN
    DBMS_OUTPUT.PUT_LINE(&#39;Update successful. &#39; || SQL%ROWCOUNT || &#39; employee(s) updated in department &#39; || v_dept_id);
  ELSE
    DBMS_OUTPUT.PUT_LINE(&#39;No employees found in department &#39; || v_dept_id || &#39;. No updates made.&#39;);
  END IF;

EXCEPTION
  WHEN OTHERS THEN
    DBMS_OUTPUT.PUT_LINE(&#39;An error occurred: &#39; || SQLERRM);
END;
/&lt;/span&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;
&lt;/span&gt;&lt;/pre&gt;&lt;p&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;&lt;b&gt;Example
2: Using Implicit Cursor with &lt;/b&gt;&lt;b&gt;SELECT INTO&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,serif; font-size: 12pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;This
statement implicitly uses a cursor. Oracle expects exactly one row.&lt;/span&gt;&lt;span style=&quot;font-family: Times New Roman, serif; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;SQL:-&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;&lt;span style=&quot;font-family: inherit; font-size: large;&quot;&gt;DECLARE
  v_employee_name employees.first_name%TYPE;
  v_salary        employees.salary%TYPE;
  v_employee_id   employees.employee_id%TYPE := 100; -- Example employee ID
BEGIN
  -- Retrieve details for a specific employee
  SELECT first_name, salary
  INTO v_employee_name, v_salary
  FROM employees
  WHERE employee_id = v_employee_id;

  -- If SELECT INTO succeeds, SQL%FOUND is TRUE and SQL%ROWCOUNT is 1
  -- We typically don&#39;t check SQL%FOUND here because exceptions handle the failure cases.
  DBMS_OUTPUT.PUT_LINE(&#39;Employee: &#39; || v_employee_name || &#39;, Salary: &#39; || v_salary);

EXCEPTION
  WHEN NO_DATA_FOUND THEN -- Specific exception if no rows are returned
    DBMS_OUTPUT.PUT_LINE(&#39;Employee with ID &#39; || v_employee_id || &#39; not found.&#39;);
  WHEN TOO_MANY_ROWS THEN -- Specific exception if more than one row is returned
    DBMS_OUTPUT.PUT_LINE(&#39;Error: Multiple employees found with ID &#39; || v_employee_id || &#39;.&#39;);
  WHEN OTHERS THEN
    DBMS_OUTPUT.PUT_LINE(&#39;An error occurred: &#39; || SQLERRM);
END;
/&lt;/span&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;
&lt;/span&gt;&lt;/pre&gt;&lt;p&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;Watch
Out:&lt;/b&gt; The
primary challenge with &lt;b&gt;SELECT
INTO&lt;/b&gt; (and
implicit cursors) is that it &lt;i&gt;must&lt;/i&gt; return exactly one row. If it returns
zero rows, Oracle raises &lt;b&gt;NO_DATA_FOUND&lt;/b&gt;. If it returns more than one
row, Oracle raises &lt;b&gt;TOO_MANY_ROWS&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;. You need to handle these
exceptions explicitly.&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;, serif; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;h3 style=&quot;line-height: normal; text-align: left;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;Explicit Cursors: Taking Control&lt;/span&gt;&lt;/b&gt;&lt;/h3&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;When you
need to process a query that might return &lt;b&gt;multiple rows&lt;/b&gt; (or zero rows,
without raising an error immediately), you need an explicit cursor. You, the
developer, declare, open, fetch rows from, and close the cursor manually.&lt;/span&gt;&lt;span style=&quot;font-family: Times New Roman, serif; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;Key
Characteristics:&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,serif; font-size: 12pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;ol start=&quot;1&quot; type=&quot;1&quot;&gt;
 &lt;li class=&quot;MsoNormal&quot; style=&quot;line-height: normal; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;&lt;b&gt;Manual Control:&lt;/b&gt; You explicitly manage the
     cursor&#39;s lifecycle.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
 &lt;li class=&quot;MsoNormal&quot; style=&quot;line-height: normal; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;&lt;b&gt;Declaration:&lt;/b&gt; Declared in the DECLARE section of your PL/SQL
     block using the CURSOR
     cursor_name IS select_statement; syntax.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
 &lt;li class=&quot;MsoNormal&quot; style=&quot;line-height: normal; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;&lt;b&gt;User-Defined Name:&lt;/b&gt; You give the cursor a
     meaningful name.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
 &lt;li class=&quot;MsoNormal&quot; style=&quot;line-height: normal; text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: georgia;&quot;&gt;Use Cases:&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: georgia;&quot;&gt; Processing multi-row result
     sets, row-by-row processing logic.&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Times New Roman, serif; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;The
Lifecycle:&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,serif; font-size: 12pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;ol start=&quot;1&quot; type=&quot;1&quot;&gt;
 &lt;li class=&quot;MsoNormal&quot; style=&quot;line-height: normal; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;&lt;b&gt;DECLARE:&lt;/b&gt; Define the cursor and
     associate it with a SELECT statement.&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0cm 0cm 0.0001pt 36pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: #fcff01; font-family: georgia; font-size: large;&quot;&gt;CURSOR c_employee_cursor IS&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0cm 0cm 0.0001pt 36pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: #fcff01; font-family: georgia; font-size: large;&quot;&gt;&amp;nbsp; SELECT
employee_id, first_name, salary&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0cm 0cm 0.0001pt 36pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: #fcff01; font-family: georgia; font-size: large;&quot;&gt;&amp;nbsp; FROM
employees&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0cm 0cm 0.0001pt 36pt; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;&lt;span style=&quot;background-color: #fcff01;&quot;&gt;&amp;nbsp; WHERE
department_id = 90;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;ol start=&quot;2&quot; type=&quot;1&quot;&gt;
 &lt;li class=&quot;MsoNormal&quot; style=&quot;line-height: normal; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;&lt;b&gt;OPEN:&lt;/b&gt; Execute the query and
     populate the result set. The cursor now points &lt;i&gt;before&lt;/i&gt; the first
     row.&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0cm 0cm 0.0001pt 36pt; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;&lt;span style=&quot;background-color: #fcff01;&quot;&gt;OPEN c_employee_cursor;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;ol start=&quot;3&quot; type=&quot;1&quot;&gt;
 &lt;li class=&quot;MsoNormal&quot; style=&quot;line-height: normal; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;&lt;b&gt;FETCH:&lt;/b&gt; Retrieve the &lt;i&gt;next&lt;/i&gt;
     row from the result set into variables. You typically do this inside a
     loop.&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0cm 0cm 0.0001pt 36pt; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;&lt;span style=&quot;background-color: #fcff01;&quot;&gt;FETCH c_employee_cursor INTO v_emp_id, v_fname,
v_salary;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;ol start=&quot;4&quot; type=&quot;1&quot;&gt;
 &lt;li class=&quot;MsoNormal&quot; style=&quot;line-height: normal; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;&lt;b&gt;CLOSE:&lt;/b&gt; Release the resources
     associated with the cursor. It&#39;s crucial to close cursors you open.&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0cm 0cm 0.0001pt 36pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: #fcff01; font-family: georgia; font-size: large;&quot;&gt;CLOSE c_employee_cursor;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;Cursor
Attributes:&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,serif; font-size: 12pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;Explicit
cursors also have attributes, but you access them using the &lt;i&gt;cursor&#39;s name&lt;/i&gt;:&lt;/span&gt;&lt;span style=&quot;font-family: Times New Roman, serif; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;ul type=&quot;disc&quot;&gt;
 &lt;li class=&quot;MsoNormal&quot; style=&quot;line-height: normal; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;&lt;b&gt;cursor_name%FOUND&lt;/b&gt;: Boolean. TRUE if the most recent Workspace returned a row. FALSE otherwise. Useful for loop
     termination.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
 &lt;li class=&quot;MsoNormal&quot; style=&quot;line-height: normal; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;&lt;b&gt;cursor_name%NOTFOUND&lt;/b&gt;: Boolean. The logical
     opposite of %FOUND. TRUE if the most recent Workspace did &lt;i&gt;not&lt;/i&gt; return a
     row. Often used as the exit condition for a loop.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
 &lt;li class=&quot;MsoNormal&quot; style=&quot;line-height: normal; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;&lt;b&gt;cursor_name%ROWCOUNT&lt;/b&gt;: Number. The total number
     of rows fetched &lt;i&gt;so far&lt;/i&gt;.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
 &lt;li class=&quot;MsoNormal&quot; style=&quot;line-height: normal; text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: georgia;&quot;&gt;&lt;b&gt;cursor_name%ISOPEN&lt;/b&gt;: Boolean. TRUE if the cursor is open, FALSE&lt;/span&gt;&lt;span style=&quot;font-family: georgia;&quot;&gt; otherwise.&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Times New Roman, serif; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;
&lt;/span&gt;&lt;/p&gt;&lt;h3 style=&quot;line-height: normal; text-align: left;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;Example:
Using an Explicit Cursor&lt;/span&gt;&lt;/b&gt;&lt;/h3&gt;&lt;div&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;&lt;pre&gt;DECLARE
  -- Declare variables to hold fetched data
  v_emp_id    employees.employee_id%TYPE;
  v_fname     employees.first_name%TYPE;
  v_salary    employees.salary%TYPE;
  v_dept_id   employees.department_id%TYPE := 90; -- Department to query

  -- Declare the explicit cursor
  CURSOR c_employee_cursor IS
    SELECT employee_id, first_name, salary
    FROM employees
    WHERE department_id = v_dept_id
    ORDER BY salary DESC;

BEGIN
  -- Open the cursor
  OPEN c_employee_cursor;

  DBMS_OUTPUT.PUT_LINE(&#39;Employees in Department &#39; || v_dept_id || &#39;:&#39;);

  -- Loop to fetch rows
  LOOP
    -- Fetch the next row into variables
    FETCH c_employee_cursor INTO v_emp_id, v_fname, v_salary;

    -- Exit the loop if no more rows are found
    EXIT WHEN c_employee_cursor%NOTFOUND;

    -- Process the fetched row (e.g., print it)
    DBMS_OUTPUT.PUT_LINE(&#39; ID: &#39; || v_emp_id || &#39;, Name: &#39; || v_fname || &#39;, Salary: &#39; || v_salary);

    -- Optional: Check row count during processing
    -- DBMS_OUTPUT.PUT_LINE(&#39; Rows fetched so far: &#39; || c_employee_cursor%ROWCOUNT);

  END LOOP;

  -- Check how many rows were processed in total after the loop
  DBMS_OUTPUT.PUT_LINE(&#39;Total employees processed: &#39; || c_employee_cursor%ROWCOUNT);

  -- Close the cursor (VERY IMPORTANT!)
  CLOSE c_employee_cursor;

EXCEPTION
  WHEN OTHERS THEN
    -- Ensure cursor is closed even if an error occurs mid-processing
    IF c_employee_cursor%ISOPEN THEN
      CLOSE c_employee_cursor;
    END IF;
    DBMS_OUTPUT.PUT_LINE(&#39;An error occurred: &#39; || SQLERRM);
END;
/
&lt;/pre&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-outline-level: 3;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;Implicit vs. Explicit: Quick Comparison&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;table border=&quot;1&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;MsoTable15Plain1&quot; style=&quot;border-collapse: collapse; border: none; mso-border-alt: solid #BFBFBF .5pt; mso-border-themecolor: background1; mso-border-themeshade: 191; mso-padding-alt: 0cm 5.4pt 0cm 5.4pt; mso-yfti-tbllook: 1184;&quot;&gt;
 &lt;tbody&gt;&lt;tr&gt;
  &lt;td style=&quot;border: solid #BFBFBF 1.0pt; mso-border-alt: solid #BFBFBF .5pt; mso-border-themecolor: background1; mso-border-themecolor: background1; mso-border-themeshade: 191; mso-border-themeshade: 191; padding: 0cm 5.4pt 0cm 5.4pt;&quot; valign=&quot;top&quot;&gt;
  &lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-yfti-cnfc: 5;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,serif; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;Feature&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;
  &lt;/td&gt;
  &lt;td style=&quot;border-left: none; border: solid #BFBFBF 1.0pt; mso-border-alt: solid #BFBFBF .5pt; mso-border-left-alt: solid #BFBFBF .5pt; mso-border-left-themecolor: background1; mso-border-left-themeshade: 191; mso-border-themecolor: background1; mso-border-themecolor: background1; mso-border-themeshade: 191; mso-border-themeshade: 191; padding: 0cm 5.4pt 0cm 5.4pt;&quot; valign=&quot;top&quot;&gt;
  &lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-yfti-cnfc: 1;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,serif; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;Implicit
  Cursor (&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;SQL%&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,serif; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;
  &lt;/td&gt;
  &lt;td style=&quot;border-left: none; border: solid #BFBFBF 1.0pt; mso-border-alt: solid #BFBFBF .5pt; mso-border-left-alt: solid #BFBFBF .5pt; mso-border-left-themecolor: background1; mso-border-left-themeshade: 191; mso-border-themecolor: background1; mso-border-themecolor: background1; mso-border-themeshade: 191; mso-border-themeshade: 191; padding: 0cm 5.4pt 0cm 5.4pt;&quot; valign=&quot;top&quot;&gt;
  &lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-yfti-cnfc: 1;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,serif; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;Explicit
  Cursor (&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;cursor_name%&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,serif; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;
  &lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
  &lt;td style=&quot;background: #F2F2F2; border-top: none; border: solid #BFBFBF 1.0pt; mso-background-themecolor: background1; mso-background-themeshade: 242; mso-border-alt: solid #BFBFBF .5pt; mso-border-themecolor: background1; mso-border-themecolor: background1; mso-border-themeshade: 191; mso-border-themeshade: 191; mso-border-top-alt: solid #BFBFBF .5pt; mso-border-top-themecolor: background1; mso-border-top-themeshade: 191; padding: 0cm 5.4pt 0cm 5.4pt;&quot; valign=&quot;top&quot;&gt;
  &lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;, serif;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Declaration&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;
  &lt;/td&gt;
  &lt;td style=&quot;background: #F2F2F2; border-bottom: solid #BFBFBF 1.0pt; border-left: none; border-right: solid #BFBFBF 1.0pt; border-top: none; mso-background-themecolor: background1; mso-background-themeshade: 242; mso-border-alt: solid #BFBFBF .5pt; mso-border-bottom-themecolor: background1; mso-border-bottom-themeshade: 191; mso-border-left-alt: solid #BFBFBF .5pt; mso-border-left-themecolor: background1; mso-border-left-themeshade: 191; mso-border-right-themecolor: background1; mso-border-right-themeshade: 191; mso-border-themecolor: background1; mso-border-themeshade: 191; mso-border-top-alt: solid #BFBFBF .5pt; mso-border-top-themecolor: background1; mso-border-top-themeshade: 191; padding: 0cm 5.4pt 0cm 5.4pt;&quot; valign=&quot;top&quot;&gt;
  &lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;, serif;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Automatic&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
  &lt;/td&gt;
  &lt;td style=&quot;background: #F2F2F2; border-bottom: solid #BFBFBF 1.0pt; border-left: none; border-right: solid #BFBFBF 1.0pt; border-top: none; mso-background-themecolor: background1; mso-background-themeshade: 242; mso-border-alt: solid #BFBFBF .5pt; mso-border-bottom-themecolor: background1; mso-border-bottom-themeshade: 191; mso-border-left-alt: solid #BFBFBF .5pt; mso-border-left-themecolor: background1; mso-border-left-themeshade: 191; mso-border-right-themecolor: background1; mso-border-right-themeshade: 191; mso-border-themecolor: background1; mso-border-themeshade: 191; mso-border-top-alt: solid #BFBFBF .5pt; mso-border-top-themecolor: background1; mso-border-top-themeshade: 191; padding: 0cm 5.4pt 0cm 5.4pt;&quot; valign=&quot;top&quot;&gt;
  &lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;, serif;&quot;&gt;Manual
  (&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;;&quot;&gt;CURSOR c IS SELECT...&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;, serif;&quot;&gt;)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
  &lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
  &lt;td style=&quot;border-top: none; border: solid #BFBFBF 1.0pt; mso-border-alt: solid #BFBFBF .5pt; mso-border-themecolor: background1; mso-border-themecolor: background1; mso-border-themeshade: 191; mso-border-themeshade: 191; mso-border-top-alt: solid #BFBFBF .5pt; mso-border-top-themecolor: background1; mso-border-top-themeshade: 191; padding: 0cm 5.4pt 0cm 5.4pt;&quot; valign=&quot;top&quot;&gt;
  &lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;, serif;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Naming&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;
  &lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid #BFBFBF 1.0pt; border-left: none; border-right: solid #BFBFBF 1.0pt; border-top: none; mso-border-alt: solid #BFBFBF .5pt; mso-border-bottom-themecolor: background1; mso-border-bottom-themeshade: 191; mso-border-left-alt: solid #BFBFBF .5pt; mso-border-left-themecolor: background1; mso-border-left-themeshade: 191; mso-border-right-themecolor: background1; mso-border-right-themeshade: 191; mso-border-themecolor: background1; mso-border-themeshade: 191; mso-border-top-alt: solid #BFBFBF .5pt; mso-border-top-themecolor: background1; mso-border-top-themeshade: 191; padding: 0cm 5.4pt 0cm 5.4pt;&quot; valign=&quot;top&quot;&gt;
  &lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;, serif;&quot;&gt;Default
  (&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;;&quot;&gt;SQL&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;, serif;&quot;&gt;)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
  &lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid #BFBFBF 1.0pt; border-left: none; border-right: solid #BFBFBF 1.0pt; border-top: none; mso-border-alt: solid #BFBFBF .5pt; mso-border-bottom-themecolor: background1; mso-border-bottom-themeshade: 191; mso-border-left-alt: solid #BFBFBF .5pt; mso-border-left-themecolor: background1; mso-border-left-themeshade: 191; mso-border-right-themecolor: background1; mso-border-right-themeshade: 191; mso-border-themecolor: background1; mso-border-themeshade: 191; mso-border-top-alt: solid #BFBFBF .5pt; mso-border-top-themecolor: background1; mso-border-top-themeshade: 191; padding: 0cm 5.4pt 0cm 5.4pt;&quot; valign=&quot;top&quot;&gt;
  &lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;, serif;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;User-defined&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
  &lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
  &lt;td style=&quot;background: #F2F2F2; border-top: none; border: solid #BFBFBF 1.0pt; mso-background-themecolor: background1; mso-background-themeshade: 242; mso-border-alt: solid #BFBFBF .5pt; mso-border-themecolor: background1; mso-border-themecolor: background1; mso-border-themeshade: 191; mso-border-themeshade: 191; mso-border-top-alt: solid #BFBFBF .5pt; mso-border-top-themecolor: background1; mso-border-top-themeshade: 191; padding: 0cm 5.4pt 0cm 5.4pt;&quot; valign=&quot;top&quot;&gt;
  &lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;, serif;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Management&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;
  &lt;/td&gt;
  &lt;td style=&quot;background: #F2F2F2; border-bottom: solid #BFBFBF 1.0pt; border-left: none; border-right: solid #BFBFBF 1.0pt; border-top: none; mso-background-themecolor: background1; mso-background-themeshade: 242; mso-border-alt: solid #BFBFBF .5pt; mso-border-bottom-themecolor: background1; mso-border-bottom-themeshade: 191; mso-border-left-alt: solid #BFBFBF .5pt; mso-border-left-themecolor: background1; mso-border-left-themeshade: 191; mso-border-right-themecolor: background1; mso-border-right-themeshade: 191; mso-border-themecolor: background1; mso-border-themeshade: 191; mso-border-top-alt: solid #BFBFBF .5pt; mso-border-top-themecolor: background1; mso-border-top-themeshade: 191; padding: 0cm 5.4pt 0cm 5.4pt;&quot; valign=&quot;top&quot;&gt;
  &lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;, serif;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Oracle
  (Automatic Open/Fetch/Close)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
  &lt;/td&gt;
  &lt;td style=&quot;background: #F2F2F2; border-bottom: solid #BFBFBF 1.0pt; border-left: none; border-right: solid #BFBFBF 1.0pt; border-top: none; mso-background-themecolor: background1; mso-background-themeshade: 242; mso-border-alt: solid #BFBFBF .5pt; mso-border-bottom-themecolor: background1; mso-border-bottom-themeshade: 191; mso-border-left-alt: solid #BFBFBF .5pt; mso-border-left-themecolor: background1; mso-border-left-themeshade: 191; mso-border-right-themecolor: background1; mso-border-right-themeshade: 191; mso-border-themecolor: background1; mso-border-themeshade: 191; mso-border-top-alt: solid #BFBFBF .5pt; mso-border-top-themecolor: background1; mso-border-top-themeshade: 191; padding: 0cm 5.4pt 0cm 5.4pt;&quot; valign=&quot;top&quot;&gt;
  &lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;, serif;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Developer
  (Manual Open/Fetch/Close)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
  &lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
  &lt;td style=&quot;border-top: none; border: solid #BFBFBF 1.0pt; mso-border-alt: solid #BFBFBF .5pt; mso-border-themecolor: background1; mso-border-themecolor: background1; mso-border-themeshade: 191; mso-border-themeshade: 191; mso-border-top-alt: solid #BFBFBF .5pt; mso-border-top-themecolor: background1; mso-border-top-themeshade: 191; padding: 0cm 5.4pt 0cm 5.4pt;&quot; valign=&quot;top&quot;&gt;
  &lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;, serif;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Row
  Handling&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;
  &lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid #BFBFBF 1.0pt; border-left: none; border-right: solid #BFBFBF 1.0pt; border-top: none; mso-border-alt: solid #BFBFBF .5pt; mso-border-bottom-themecolor: background1; mso-border-bottom-themeshade: 191; mso-border-left-alt: solid #BFBFBF .5pt; mso-border-left-themecolor: background1; mso-border-left-themeshade: 191; mso-border-right-themecolor: background1; mso-border-right-themeshade: 191; mso-border-themecolor: background1; mso-border-themeshade: 191; mso-border-top-alt: solid #BFBFBF .5pt; mso-border-top-themecolor: background1; mso-border-top-themeshade: 191; padding: 0cm 5.4pt 0cm 5.4pt;&quot; valign=&quot;top&quot;&gt;
  &lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;, serif;&quot;&gt;Single
  Row (&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;;&quot;&gt;SELECT
  INTO&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;, serif;&quot;&gt;), DML&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
  &lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid #BFBFBF 1.0pt; border-left: none; border-right: solid #BFBFBF 1.0pt; border-top: none; mso-border-alt: solid #BFBFBF .5pt; mso-border-bottom-themecolor: background1; mso-border-bottom-themeshade: 191; mso-border-left-alt: solid #BFBFBF .5pt; mso-border-left-themecolor: background1; mso-border-left-themeshade: 191; mso-border-right-themecolor: background1; mso-border-right-themeshade: 191; mso-border-themecolor: background1; mso-border-themeshade: 191; mso-border-top-alt: solid #BFBFBF .5pt; mso-border-top-themecolor: background1; mso-border-top-themeshade: 191; padding: 0cm 5.4pt 0cm 5.4pt;&quot; valign=&quot;top&quot;&gt;
  &lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;, serif;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Multi-row
  (or single/zero)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
  &lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
  &lt;td style=&quot;background: #F2F2F2; border-top: none; border: solid #BFBFBF 1.0pt; mso-background-themecolor: background1; mso-background-themeshade: 242; mso-border-alt: solid #BFBFBF .5pt; mso-border-themecolor: background1; mso-border-themecolor: background1; mso-border-themeshade: 191; mso-border-themeshade: 191; mso-border-top-alt: solid #BFBFBF .5pt; mso-border-top-themecolor: background1; mso-border-top-themeshade: 191; padding: 0cm 5.4pt 0cm 5.4pt;&quot; valign=&quot;top&quot;&gt;
  &lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;, serif;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Error
  Handling&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;
  &lt;/td&gt;
  &lt;td style=&quot;background: #F2F2F2; border-bottom: solid #BFBFBF 1.0pt; border-left: none; border-right: solid #BFBFBF 1.0pt; border-top: none; mso-background-themecolor: background1; mso-background-themeshade: 242; mso-border-alt: solid #BFBFBF .5pt; mso-border-bottom-themecolor: background1; mso-border-bottom-themeshade: 191; mso-border-left-alt: solid #BFBFBF .5pt; mso-border-left-themecolor: background1; mso-border-left-themeshade: 191; mso-border-right-themecolor: background1; mso-border-right-themeshade: 191; mso-border-themecolor: background1; mso-border-themeshade: 191; mso-border-top-alt: solid #BFBFBF .5pt; mso-border-top-themecolor: background1; mso-border-top-themeshade: 191; padding: 0cm 5.4pt 0cm 5.4pt;&quot; valign=&quot;top&quot;&gt;
  &lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;, serif;&quot;&gt;Raises &lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;;&quot;&gt;NO_DATA_FOUND&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;, serif;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;;&quot;&gt;TOO_MANY_ROWS&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;, serif;&quot;&gt; for &lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;;&quot;&gt;SELECT INTO&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;, serif;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
  &lt;/td&gt;
  &lt;td style=&quot;background: #F2F2F2; border-bottom: solid #BFBFBF 1.0pt; border-left: none; border-right: solid #BFBFBF 1.0pt; border-top: none; mso-background-themecolor: background1; mso-background-themeshade: 242; mso-border-alt: solid #BFBFBF .5pt; mso-border-bottom-themecolor: background1; mso-border-bottom-themeshade: 191; mso-border-left-alt: solid #BFBFBF .5pt; mso-border-left-themecolor: background1; mso-border-left-themeshade: 191; mso-border-right-themecolor: background1; mso-border-right-themeshade: 191; mso-border-themecolor: background1; mso-border-themeshade: 191; mso-border-top-alt: solid #BFBFBF .5pt; mso-border-top-themecolor: background1; mso-border-top-themeshade: 191; padding: 0cm 5.4pt 0cm 5.4pt;&quot; valign=&quot;top&quot;&gt;
  &lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;, serif;&quot;&gt;Requires
  checking &lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;;&quot;&gt;%FOUND&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;, serif;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;;&quot;&gt;%NOTFOUND&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;, serif;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
  &lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
  &lt;td style=&quot;border-top: none; border: solid #BFBFBF 1.0pt; mso-border-alt: solid #BFBFBF .5pt; mso-border-themecolor: background1; mso-border-themecolor: background1; mso-border-themeshade: 191; mso-border-themeshade: 191; mso-border-top-alt: solid #BFBFBF .5pt; mso-border-top-themecolor: background1; mso-border-top-themeshade: 191; padding: 0cm 5.4pt 0cm 5.4pt;&quot; valign=&quot;top&quot;&gt;
  &lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;, serif;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Code
  Verbosity&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;
  &lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid #BFBFBF 1.0pt; border-left: none; border-right: solid #BFBFBF 1.0pt; border-top: none; mso-border-alt: solid #BFBFBF .5pt; mso-border-bottom-themecolor: background1; mso-border-bottom-themeshade: 191; mso-border-left-alt: solid #BFBFBF .5pt; mso-border-left-themecolor: background1; mso-border-left-themeshade: 191; mso-border-right-themecolor: background1; mso-border-right-themeshade: 191; mso-border-themecolor: background1; mso-border-themeshade: 191; mso-border-top-alt: solid #BFBFBF .5pt; mso-border-top-themecolor: background1; mso-border-top-themeshade: 191; padding: 0cm 5.4pt 0cm 5.4pt;&quot; valign=&quot;top&quot;&gt;
  &lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;, serif;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Low&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
  &lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid #BFBFBF 1.0pt; border-left: none; border-right: solid #BFBFBF 1.0pt; border-top: none; mso-border-alt: solid #BFBFBF .5pt; mso-border-bottom-themecolor: background1; mso-border-bottom-themeshade: 191; mso-border-left-alt: solid #BFBFBF .5pt; mso-border-left-themecolor: background1; mso-border-left-themeshade: 191; mso-border-right-themecolor: background1; mso-border-right-themeshade: 191; mso-border-themecolor: background1; mso-border-themeshade: 191; mso-border-top-alt: solid #BFBFBF .5pt; mso-border-top-themecolor: background1; mso-border-top-themeshade: 191; padding: 0cm 5.4pt 0cm 5.4pt;&quot; valign=&quot;top&quot;&gt;
  &lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;, serif;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;High&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
  &lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
  &lt;td style=&quot;background: #F2F2F2; border-top: none; border: solid #BFBFBF 1.0pt; mso-background-themecolor: background1; mso-background-themeshade: 242; mso-border-alt: solid #BFBFBF .5pt; mso-border-themecolor: background1; mso-border-themecolor: background1; mso-border-themeshade: 191; mso-border-themeshade: 191; mso-border-top-alt: solid #BFBFBF .5pt; mso-border-top-themecolor: background1; mso-border-top-themeshade: 191; padding: 0cm 5.4pt 0cm 5.4pt;&quot; valign=&quot;top&quot;&gt;
  &lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;, serif;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Typical
  Use&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;
  &lt;/td&gt;
  &lt;td style=&quot;background: #F2F2F2; border-bottom: solid #BFBFBF 1.0pt; border-left: none; border-right: solid #BFBFBF 1.0pt; border-top: none; mso-background-themecolor: background1; mso-background-themeshade: 242; mso-border-alt: solid #BFBFBF .5pt; mso-border-bottom-themecolor: background1; mso-border-bottom-themeshade: 191; mso-border-left-alt: solid #BFBFBF .5pt; mso-border-left-themecolor: background1; mso-border-left-themeshade: 191; mso-border-right-themecolor: background1; mso-border-right-themeshade: 191; mso-border-themecolor: background1; mso-border-themeshade: 191; mso-border-top-alt: solid #BFBFBF .5pt; mso-border-top-themecolor: background1; mso-border-top-themeshade: 191; padding: 0cm 5.4pt 0cm 5.4pt;&quot; valign=&quot;top&quot;&gt;
  &lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;, serif;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;DML,
  Single-row lookups&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
  &lt;/td&gt;
  &lt;td style=&quot;background: #F2F2F2; border-bottom: solid #BFBFBF 1.0pt; border-left: none; border-right: solid #BFBFBF 1.0pt; border-top: none; mso-background-themecolor: background1; mso-background-themeshade: 242; mso-border-alt: solid #BFBFBF .5pt; mso-border-bottom-themecolor: background1; mso-border-bottom-themeshade: 191; mso-border-left-alt: solid #BFBFBF .5pt; mso-border-left-themecolor: background1; mso-border-left-themeshade: 191; mso-border-right-themecolor: background1; mso-border-right-themeshade: 191; mso-border-themecolor: background1; mso-border-themeshade: 191; mso-border-top-alt: solid #BFBFBF .5pt; mso-border-top-themecolor: background1; mso-border-top-themeshade: 191; padding: 0cm 5.4pt 0cm 5.4pt;&quot; valign=&quot;top&quot;&gt;
  &lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;, serif;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Row-by-row
  processing of multi-row sets&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
  &lt;/td&gt;
 &lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-outline-level: 3;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;Conclusion&lt;/span&gt;&lt;span style=&quot;font-family: Times New Roman, serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;

&lt;ul type=&quot;disc&quot;&gt;
 &lt;li class=&quot;MsoNormal&quot; style=&quot;line-height: normal; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;Use &lt;b&gt;Implicit Cursors&lt;/b&gt;
     (via simple INSERT, UPDATE, DELETE, SELECT INTO) when dealing with DML or
     when you absolutely expect a query to return exactly one row. Be prepared
     to handle NO_DATA_FOUND and TOO_MANY_ROWS exceptions for SELECT INTO.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
 &lt;li class=&quot;MsoNormal&quot; style=&quot;line-height: normal; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;Use &lt;b&gt;Explicit Cursors&lt;/b&gt;
     when you need to process multiple rows from a query result set, requiring
     fine-grained control over fetching each row.&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;span style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='https://www.javainhand.com/feeds/8896500460398502380/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.javainhand.com/2025/04/difference-between-implicit-and-explicit-cursor-in-oracle-plsql.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/5396106166793201647/posts/default/8896500460398502380'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5396106166793201647/posts/default/8896500460398502380'/><link rel='alternate' type='text/html' href='https://www.javainhand.com/2025/04/difference-between-implicit-and-explicit-cursor-in-oracle-plsql.html' title='Difference Between Implicit and Explicit Cursor in Oracle PLSQL'/><author><name>Javainhand</name><uri>http://www.blogger.com/profile/18407148468637123743</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhQ3nnDdcQwtLM6n6XkSWHSA4HxZdM3QfdjZXOkMtR-KBzefO0yntF7wz-3fu0YIoPLtewEOUuVbc-QVdacHBnwv21VMe52xfcois-tRhWWk99hswJa8jjmV90TT8Bfzw/s113/javainhand.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgiv3Pwr59YYnQDOMSokgz2ySonYYrOUAK5RDjoyGinKfqWm0ZyzyTT0UVoqoiLmBsYtyFwKTSzwMfBxad-CNa4eQzQvIz5y2-JRYfSJGVMe2oN3jSbkHvQeJMwqEs5w4I4nbs-pxzoXIX7L6ok93UN-yXMM_1lnIzsXYj0fXEY65pZ8QkHo51XAU6aYvY/s72-w640-h360-c/Implicit%20vs.%20Explicit%20Cursors%20.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5396106166793201647.post-9036771656066580532</id><published>2025-04-26T21:58:00.005+05:30</published><updated>2026-05-10T13:03:55.400+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="PLSQL Tutorial"/><title type='text'>IF STATEMENT in Oracle PLSQL</title><content type='html'>&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;Hello Readers, This is another blog of &lt;b&gt;PLSQL Tutorial&lt;/b&gt;, In this &lt;b&gt;Oracle PLSQL Tutoria&lt;/b&gt;l, We will explain &lt;b&gt;IF Statement in Oracle PLSQL&lt;/b&gt;.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;/p&gt;&lt;p style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh1R0zBUp61h8knMKWQERKw59dn1l67o2RfSvSe39RPT5IldUbiqFuBXwAN2oMQk38oorf5hxpXcXmwGLPUacTK2k8YXiP-K9lah3EWkB0LS0yOQV-9LA0RhL7mmHTZR1OjjIwnZQkKK-JSWJwX_KK_esEGXKzr6VFWZ4Pusln-jwL9Bwan-vuEdm9l87g/s1280/IF%20Statement%20in%20Oracle%20PLSQL.webp&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;IF Statement in Oracle PLSQL&quot; border=&quot;0&quot; data-original-height=&quot;720&quot; data-original-width=&quot;1280&quot; height=&quot;225&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh1R0zBUp61h8knMKWQERKw59dn1l67o2RfSvSe39RPT5IldUbiqFuBXwAN2oMQk38oorf5hxpXcXmwGLPUacTK2k8YXiP-K9lah3EWkB0LS0yOQV-9LA0RhL7mmHTZR1OjjIwnZQkKK-JSWJwX_KK_esEGXKzr6VFWZ4Pusln-jwL9Bwan-vuEdm9l87g/w400-h225/IF%20Statement%20in%20Oracle%20PLSQL.webp&quot; title=&quot;IF Statement in Oracle PLSQL&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;In this post, we will discuss below following topic.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;What is IF statements in Oracle PLSQL?&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;Type of IF Statements in Oracle PLSQL?&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;IF-THEN Statements in Oracle PLSQL&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;Syntax of&amp;nbsp; IF-THEN Statements in Oracle PLSQL&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;Example of&amp;nbsp; IF-THEN Statements in Oracle PLSQL&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;h2&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;Discuss IF Statement in Oracle PLSQL&lt;/span&gt;&lt;/h2&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;In Oracle PLSQL, IF statement is a control structure statement that allow you to executes or skips a sequence of statements depending on the&lt;b&gt; value of Boolean expression&lt;/b&gt;.&lt;/span&gt;&lt;/p&gt;&lt;h3&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;Let&#39;s understand the meaning of Boolean Expression&lt;/span&gt;&lt;/h3&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;An expression that returns the boolean value like true, false or null. Examples are comparisons for equality, greater-than, less-than.&lt;/span&gt;&lt;/p&gt;&lt;h2&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;Type of IF Statement in Oracle PLSQL&lt;/span&gt;&lt;/h2&gt;&lt;div&gt;&lt;ul&gt;&lt;li&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;IF-THEN Statement&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;IF-THEN-ELSE Statement&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;IF-THEN-ELSIF&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;In this Post, we will proceed with IF-THEN Statement.&lt;/span&gt;&lt;/p&gt;&lt;h2&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;Let&#39;s Understand&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: georgia; font-size: x-large;&quot;&gt;IF-THEN Statement&lt;/span&gt;&lt;/h2&gt;&lt;/div&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: x-large;&quot;&gt;The simplest form of IF statements associates a condition with a sequence of statements enclosed by the keywords THEN and END IF;(Not ENDIF).&lt;/span&gt;&lt;/p&gt;&lt;h3&gt;&lt;span style=&quot;font-family: georgia; font-size: x-large;&quot;&gt;Syntax of IF-THEN Statement&lt;/span&gt;&lt;/h3&gt;&lt;pre&gt;&lt;span style=&quot;font-family: georgia; font-size: x-large;&quot;&gt;IF condition THEN
 sequence_of_statements
END IF;&lt;/span&gt;&lt;/pre&gt;&lt;p&gt;&lt;/p&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: x-large;&quot;&gt;Example of IF-THEN Statement&lt;/span&gt;&lt;/h3&gt;&lt;pre&gt;&lt;span style=&quot;font-family: georgia; font-size: x-large;&quot;&gt;DECLARE
V_NUMBER NUMBER:=10;

BEGIN

IF V_NUMBER IS NOT NULL THEN
DBMS_OUTPUT.PUT_LINE(&#39;V_NUMBER VARIABLE VALUE IS&#39;||&#39; &#39;||V_NUMBER);
END IF;

END;&lt;/span&gt;&lt;/pre&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjMS1NwqeYc3Wbt2ReXb8Qo4F_qwn_t4Fjhew0uMwgRijHInLZknMpW57xMPyfwZNdF5I2p2jXbqVI4MGCwx1EfW35Gc2MczNhHLQVtPo3NTwYkTCmKflEvAQOD_xmnfJXHj0mZte6VnXxC7R918p94-LfHLwnNgUX5Kzj0KcAolHzTvKrjnItm9amg-Vc/s878/Example%20of%20IF-THEN%20Statement%20in%20Oracle.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;Example of IF-THEN Statement in Oracle&quot; border=&quot;0&quot; data-original-height=&quot;421&quot; data-original-width=&quot;878&quot; height=&quot;306&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjMS1NwqeYc3Wbt2ReXb8Qo4F_qwn_t4Fjhew0uMwgRijHInLZknMpW57xMPyfwZNdF5I2p2jXbqVI4MGCwx1EfW35Gc2MczNhHLQVtPo3NTwYkTCmKflEvAQOD_xmnfJXHj0mZte6VnXxC7R918p94-LfHLwnNgUX5Kzj0KcAolHzTvKrjnItm9amg-Vc/w640-h306/Example%20of%20IF-THEN%20Statement%20in%20Oracle.png&quot; title=&quot;Example of IF-THEN Statement in Oracle&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;span style=&quot;font-family: georgia;&quot;&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;That&#39;s all for today, I think(&lt;b&gt;IF STATEMENT in Oracle PLSQL&lt;/b&gt;) post will be helpful for you. If you like the post then share your view in the comment box.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;If you want to watch this topic then&amp;nbsp;&lt;a href=&quot;https://youtu.be/UISUjYmQ-H8&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;click here&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;/span&gt;&lt;p&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='https://www.javainhand.com/feeds/9036771656066580532/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.javainhand.com/2025/04/if-statement-in-oracle-plsql.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/5396106166793201647/posts/default/9036771656066580532'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5396106166793201647/posts/default/9036771656066580532'/><link rel='alternate' type='text/html' href='https://www.javainhand.com/2025/04/if-statement-in-oracle-plsql.html' title='IF STATEMENT in Oracle PLSQL'/><author><name>Javainhand</name><uri>http://www.blogger.com/profile/18407148468637123743</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhQ3nnDdcQwtLM6n6XkSWHSA4HxZdM3QfdjZXOkMtR-KBzefO0yntF7wz-3fu0YIoPLtewEOUuVbc-QVdacHBnwv21VMe52xfcois-tRhWWk99hswJa8jjmV90TT8Bfzw/s113/javainhand.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh1R0zBUp61h8knMKWQERKw59dn1l67o2RfSvSe39RPT5IldUbiqFuBXwAN2oMQk38oorf5hxpXcXmwGLPUacTK2k8YXiP-K9lah3EWkB0LS0yOQV-9LA0RhL7mmHTZR1OjjIwnZQkKK-JSWJwX_KK_esEGXKzr6VFWZ4Pusln-jwL9Bwan-vuEdm9l87g/s72-w400-h225-c/IF%20Statement%20in%20Oracle%20PLSQL.webp" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5396106166793201647.post-7662329895033267482</id><published>2025-04-26T16:56:00.005+05:30</published><updated>2025-04-29T13:41:45.667+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Difference Between"/><category scheme="http://www.blogger.com/atom/ns#" term="Difference Between RANK and DENSE_RANK In Oracle SQL"/><title type='text'>Difference Between RANK and DENSE_RANK In Oracle SQL</title><content type='html'>&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;In this Oracle Blog Post, We are sharing most asked interview question in Oracle SQL which is &lt;b&gt;difference between Rank and DENSE_RANK&lt;/b&gt; in Oracle SQL.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;/p&gt;&lt;p style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjwL1DVeOxhnZWc_hkXD2fZ9X2nzNvjYhR7HI4ai5PbDBwhI78f54kmpfZ5EDgsW-DaJoRAjqbUX7DR0eRjS1-ofJtLW7BWt5Qqvi3W5TKTy-utBetYCx785LZVPf3GTDnuGp_zoohRuWhff40-UmPx1E-IohjhMVMeBo2sGydOdtEHRqDk8tGCENttWqE/s1280/RANK()%20vs%20DENSE_RANK().jpg&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;Difference Between RANK and DENSE_RANK In Oracle SQL&quot; border=&quot;0&quot; data-original-height=&quot;720&quot; data-original-width=&quot;1280&quot; height=&quot;225&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjwL1DVeOxhnZWc_hkXD2fZ9X2nzNvjYhR7HI4ai5PbDBwhI78f54kmpfZ5EDgsW-DaJoRAjqbUX7DR0eRjS1-ofJtLW7BWt5Qqvi3W5TKTy-utBetYCx785LZVPf3GTDnuGp_zoohRuWhff40-UmPx1E-IohjhMVMeBo2sGydOdtEHRqDk8tGCENttWqE/w400-h225/RANK()%20vs%20DENSE_RANK().jpg&quot; title=&quot;Difference Between RANK and DENSE_RANK In Oracle SQL&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;Discussion Topic&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;What is RANK() in Oracle SQL&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;What is DENSE_RANK() in Oracle SQL&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;Differentiate between RANK() and DENSE_RANK() in Oracle SQL.&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;When working with data in Oracle databases, especially for reporting or analysis, you often need to assign ranks to rows based on certain criteria. Maybe you want to find the top-performing salespeople, the highest-scoring students, or the most frequently ordered products.&lt;/span&gt;&lt;/p&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia;&quot;&gt;Oracle provides powerful window functions for this purpose, with RANK() and DENSE_RANK() being two of the most common.&lt;br /&gt;While they sound similar, their behavior, especially when dealing with tied values, is crucially different. Understanding this difference is key to getting accurate results. Let&#39;s dive in and clarify RANK() vs. DENSE_RANK() with a practical example.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;The Scenario: Ranking Employee Sales Performance&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia;&quot;&gt;Imagine we have a table called EmployeeSales that tracks the total sales amount for each employee in the last quarter.&lt;/span&gt;&lt;/p&gt;&lt;/span&gt;&lt;/div&gt;&lt;pre&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;-- Sample Table Structure
CREATE TABLE EmployeeSales (
    EmployeeID NUMBER,
    EmployeeName VARCHAR2(100),
    Region VARCHAR2(50),
    TotalSales NUMBER
);&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;-- Sample Data
INSERT INTO EmployeeSales VALUES (101, &#39;Alice&#39;, &#39;North&#39;, 95000);
INSERT INTO EmployeeSales VALUES (102, &#39;Bob&#39;, &#39;North&#39;, 80000);
INSERT INTO EmployeeSales VALUES (103, &#39;Charlie&#39;, &#39;South&#39;, 95000); -- Tie with Alice
INSERT INTO EmployeeSales VALUES (104, &#39;David&#39;, &#39;North&#39;, 75000);
INSERT INTO EmployeeSales VALUES (105, &#39;Eve&#39;, &#39;South&#39;, 88000);
INSERT INTO EmployeeSales VALUES (106, &#39;Frank&#39;, &#39;South&#39;, 80000); -- Tie with Bob&lt;/span&gt;&lt;/pre&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;Our goal is to rank these employees based on their TotalSales in descending order (highest sales get the best rank).&lt;/span&gt;&lt;/p&gt;&lt;h2 style=&quot;line-height: normal; text-align: left;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;&lt;b&gt;Using the
&lt;/b&gt;&lt;b&gt;RANK()&lt;/b&gt;&lt;b&gt; Function&lt;/b&gt;&lt;/span&gt;&lt;/h2&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;The RANK() function assigns a rank to each row within a partition of a result set. If rows have the same value for the ordering columns (a tie), they receive the same rank. However, the next rank assigned will skip ranks based on the number of tied rows.&lt;/span&gt;&lt;/p&gt;&lt;h2 style=&quot;line-height: normal;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;&lt;b&gt;Syntax of&amp;nbsp;&amp;nbsp;&lt;/b&gt;&lt;b&gt;RANK()&lt;/b&gt;&lt;b&gt;&amp;nbsp;Function&lt;/b&gt;&lt;/span&gt;&lt;/h2&gt;&lt;div&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;&lt;pre&gt;RANK() OVER ([PARTITION BY column1, ...] ORDER BY column2 [ASC|DESC], ...)&lt;/pre&gt;&lt;/span&gt;&lt;/div&gt;&lt;p style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;Let&#39;s apply RANK() to our sales data&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;&lt;b&gt;SQL&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;SELECT
    EmployeeID,
    EmployeeName,
    Region,
    TotalSales,
    RANK() OVER (ORDER BY TotalSales DESC) as SalesRank
FROM
    EmployeeSales;&lt;b&gt;
&lt;/b&gt;&lt;/span&gt;&lt;/pre&gt;&lt;p&gt;&lt;/p&gt;&lt;p style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;&lt;b&gt;Output&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: left;&quot;&gt;&lt;/p&gt;&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; class=&quot;MsoNormalTable&quot;&gt;
 &lt;tbody&gt;&lt;tr&gt;
  &lt;td style=&quot;padding: 0.75pt;&quot;&gt;
  &lt;p align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm; text-align: center;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;EmployeeID&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;
  &lt;/td&gt;
  &lt;td style=&quot;padding: 0.75pt;&quot;&gt;
  &lt;p align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm; text-align: center;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;EmployeeName&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;
  &lt;/td&gt;
  &lt;td style=&quot;padding: 0.75pt;&quot;&gt;
  &lt;p align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm; text-align: center;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;Region&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;
  &lt;/td&gt;
  &lt;td style=&quot;padding: 0.75pt;&quot;&gt;
  &lt;p align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm; text-align: center;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;TotalSales&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;
  &lt;/td&gt;
  &lt;td style=&quot;padding: 0.75pt;&quot;&gt;
  &lt;p align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm; text-align: center;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;SalesRank&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;
  &lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
  &lt;td style=&quot;padding: 0.75pt;&quot;&gt;
  &lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;101&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
  &lt;/td&gt;
  &lt;td style=&quot;padding: 0.75pt;&quot;&gt;
  &lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;Alice&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
  &lt;/td&gt;
  &lt;td style=&quot;padding: 0.75pt;&quot;&gt;
  &lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;North&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
  &lt;/td&gt;
  &lt;td style=&quot;padding: 0.75pt;&quot;&gt;
  &lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;95000&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
  &lt;/td&gt;
  &lt;td style=&quot;padding: 0.75pt;&quot;&gt;
  &lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;1&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
  &lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
  &lt;td style=&quot;padding: 0.75pt;&quot;&gt;
  &lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;103&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
  &lt;/td&gt;
  &lt;td style=&quot;padding: 0.75pt;&quot;&gt;
  &lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;Charlie&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
  &lt;/td&gt;
  &lt;td style=&quot;padding: 0.75pt;&quot;&gt;
  &lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;South&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
  &lt;/td&gt;
  &lt;td style=&quot;padding: 0.75pt;&quot;&gt;
  &lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;95000&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
  &lt;/td&gt;
  &lt;td style=&quot;padding: 0.75pt;&quot;&gt;
  &lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;1&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
  &lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
  &lt;td style=&quot;padding: 0.75pt;&quot;&gt;
  &lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;105&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
  &lt;/td&gt;
  &lt;td style=&quot;padding: 0.75pt;&quot;&gt;
  &lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;Eve&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
  &lt;/td&gt;
  &lt;td style=&quot;padding: 0.75pt;&quot;&gt;
  &lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;South&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
  &lt;/td&gt;
  &lt;td style=&quot;padding: 0.75pt;&quot;&gt;
  &lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;88000&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
  &lt;/td&gt;
  &lt;td style=&quot;padding: 0.75pt;&quot;&gt;
  &lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;3&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
  &lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
  &lt;td style=&quot;padding: 0.75pt;&quot;&gt;
  &lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;102&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
  &lt;/td&gt;
  &lt;td style=&quot;padding: 0.75pt;&quot;&gt;
  &lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;Bob&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
  &lt;/td&gt;
  &lt;td style=&quot;padding: 0.75pt;&quot;&gt;
  &lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;North&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
  &lt;/td&gt;
  &lt;td style=&quot;padding: 0.75pt;&quot;&gt;
  &lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;80000&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
  &lt;/td&gt;
  &lt;td style=&quot;padding: 0.75pt;&quot;&gt;
  &lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;4&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
  &lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
  &lt;td style=&quot;padding: 0.75pt;&quot;&gt;
  &lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;106&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
  &lt;/td&gt;
  &lt;td style=&quot;padding: 0.75pt;&quot;&gt;
  &lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;Frank&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
  &lt;/td&gt;
  &lt;td style=&quot;padding: 0.75pt;&quot;&gt;
  &lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;South&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
  &lt;/td&gt;
  &lt;td style=&quot;padding: 0.75pt;&quot;&gt;
  &lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;80000&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
  &lt;/td&gt;
  &lt;td style=&quot;padding: 0.75pt;&quot;&gt;
  &lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;4&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
  &lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
  &lt;td style=&quot;padding: 0.75pt;&quot;&gt;
  &lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;104&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
  &lt;/td&gt;
  &lt;td style=&quot;padding: 0.75pt;&quot;&gt;
  &lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;David&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
  &lt;/td&gt;
  &lt;td style=&quot;padding: 0.75pt;&quot;&gt;
  &lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;North&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
  &lt;/td&gt;
  &lt;td style=&quot;padding: 0.75pt;&quot;&gt;
  &lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;75000&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
  &lt;/td&gt;
  &lt;td style=&quot;padding: 0.75pt;&quot;&gt;
  &lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;6&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
  &lt;/td&gt;
 &lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;p&gt;&lt;/p&gt;&lt;p style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;&lt;span style=&quot;line-height: 107%;&quot;&gt;&lt;b&gt;Explanation&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: left;&quot;&gt;&lt;/p&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;Alice and Charlie both have the highest sales (95000), so they both get Rank = 1.&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;Because there were two employees tied for rank 1, the next rank assigned is Rank = 3 (it skips rank 2). Eve gets rank 3.&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;Bob and Frank are tied with 80000 sales. They both receive the next available rank, which is Rank = 4.&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;Again, since two employees tied for rank 4, the next rank skips one place (rank 5 is skipped). David gets Rank = 6.&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;/p&gt;&lt;p style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: red; font-family: georgia; font-size: large;&quot;&gt;Note:-&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;The gaps in the ranking sequence (2 and 5 are missing). This is characteristic of RANK().&lt;/span&gt;&lt;/p&gt;&lt;div&gt;&lt;h2 style=&quot;line-height: normal;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;&lt;b&gt;Using the DENSE_&lt;/b&gt;&lt;b&gt;RANK()&lt;/b&gt;&lt;b&gt;&amp;nbsp;Function&lt;/b&gt;&lt;/span&gt;&lt;/h2&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;The DENSE_RANK() function also assigns ranks to rows within a partition based on ordering column. Like RANK(), tied rows receive same rank . However, DENSE_RANK() assigns consecutive ranks without any gaps, regardless of ties&lt;/span&gt;&lt;/p&gt;&lt;h2 style=&quot;line-height: normal;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;&lt;b&gt;Syntax of&amp;nbsp; DENSE_&lt;/b&gt;&lt;b&gt;RANK()&lt;/b&gt;&lt;b&gt;&amp;nbsp;Function&lt;/b&gt;&lt;/span&gt;&lt;/h2&gt;&lt;div&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;&lt;pre&gt;DENSE_RANK() OVER ([PARTITION BY column1, ...] ORDER BY column2 [ASC|DESC], ...)&lt;/pre&gt;&lt;/span&gt;&lt;/div&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;Let&#39;s apply DENSE_RANK() to our sales data&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;&lt;b&gt;SQL&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;SELECT
    EmployeeID,
    EmployeeName,
    Region,
    TotalSales,
    DENSE_RANK() OVER (ORDER BY TotalSales DESC) as DenseSalesRank
FROM
    EmployeeSales;&lt;b&gt;
&lt;/b&gt;&lt;/span&gt;&lt;/pre&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;&lt;b&gt;Output&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; class=&quot;MsoNormalTable&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style=&quot;padding: 0.75pt;&quot;&gt;&lt;p align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt; text-align: center;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;EmployeeID&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;padding: 0.75pt;&quot;&gt;&lt;p align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt; text-align: center;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;EmployeeName&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;padding: 0.75pt;&quot;&gt;&lt;p align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt; text-align: center;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;Region&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;padding: 0.75pt;&quot;&gt;&lt;p align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt; text-align: center;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;TotalSales&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;padding: 0.75pt;&quot;&gt;&lt;p align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt; text-align: center;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;DenseSalesRank&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style=&quot;padding: 0.75pt;&quot;&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;101&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;padding: 0.75pt;&quot;&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;Alice&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;padding: 0.75pt;&quot;&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;North&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;padding: 0.75pt;&quot;&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;95000&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;padding: 0.75pt;&quot;&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;1&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style=&quot;padding: 0.75pt;&quot;&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;103&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;padding: 0.75pt;&quot;&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;Charlie&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;padding: 0.75pt;&quot;&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;South&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;padding: 0.75pt;&quot;&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;95000&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;padding: 0.75pt;&quot;&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;1&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style=&quot;padding: 0.75pt;&quot;&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;105&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;padding: 0.75pt;&quot;&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;Eve&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;padding: 0.75pt;&quot;&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;South&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;padding: 0.75pt;&quot;&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;88000&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;padding: 0.75pt;&quot;&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;2&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style=&quot;padding: 0.75pt;&quot;&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;102&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;padding: 0.75pt;&quot;&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;Bob&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;padding: 0.75pt;&quot;&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;North&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;padding: 0.75pt;&quot;&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;80000&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;padding: 0.75pt;&quot;&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;3&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style=&quot;padding: 0.75pt;&quot;&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;106&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;padding: 0.75pt;&quot;&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;Frank&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;padding: 0.75pt;&quot;&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;South&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;padding: 0.75pt;&quot;&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;80000&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;padding: 0.75pt;&quot;&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;3&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style=&quot;padding: 0.75pt;&quot;&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;104&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;padding: 0.75pt;&quot;&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;David&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;padding: 0.75pt;&quot;&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;North&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;padding: 0.75pt;&quot;&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;75000&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;padding: 0.75pt;&quot;&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;4&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;&lt;span style=&quot;line-height: 25.68px;&quot;&gt;&lt;b&gt;Explanation&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;ul&gt;&lt;li style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;Alice and Charlie both have the highest sales (95000), so they both get DenseRank = 1.&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;Unlike RANK(), DENSE_RANK() assigns the very next rank to the next distinct sales amount. Eve (88000) gets DenseRank = 2.&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;Bob and Frank (80000) are tied for the next rank, so they both get DenseRank = 3.&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;David (75000) gets the next consecutive rank, DenseRank = 4.&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: red; font-family: georgia; font-size: large;&quot;&gt;Note:-&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;The DenseSalesRank column has no gaps; the ranks are consecutive (1, 2, 3, 4).&lt;/span&gt;&lt;/p&gt;&lt;h1 style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;Difference Between RANK() and DENSE_RANK() in Oracle SQL&lt;/span&gt;&lt;/h1&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;1.&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;Handling Ties:&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;RANK: Assigns the same rank to tied rows. The subsequent rank number reflects the total number of preceding rows (including all tied rows), causing gaps in the sequence.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;DENSE_RANK: Assigns the same rank to tied rows. The subsequent rank number is always the next consecutive integer, ensuring no gaps in the sequence.&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;2.&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;Rank Sequence:&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;RANK: Can produce a non-consecutive sequence of ranks if ties exist (e.g., 1, 1, 3, 4, 4, 6).&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;DENSE_RANK: Always produces a consecutive sequence of ranks (e.g., 1, 1, 2, 3, 3, 4).&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;3.&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;Use Cases:&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;RANK: Often used in competitive scenarios where the rank reflects the absolute position, including ties (like Olympic medal standings where two golds mean no silver is awarded immediately after). Useful when you need to know exactly how many rows are ranked above a given row.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;DENSE_RANK: Ideal when you need a gapless ranking, often used for finding the &quot;Nth&quot; distinct value (e.g., find the employees with the 3rd highest distinct salary level). Useful when the exact count of preceding rows is less important than having a sequential rank identifier for each distinct value group.&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;&lt;b&gt;Conclusion&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;Both RANK() and DENSE_RANK() are invaluable tools in your Oracle SQL toolkit for ordering and analyzing data. The choice between them depends entirely on how you want to handle ties and whether you require a consecutive ranking sequence. By understanding their distinct behaviors, you can ensure your queries produce meaningful and accurate results for your specific analytical needs.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;p&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='https://www.javainhand.com/feeds/7662329895033267482/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.javainhand.com/2025/04/difference-between-rank-and-denserank-in-oracle-sql.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/5396106166793201647/posts/default/7662329895033267482'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5396106166793201647/posts/default/7662329895033267482'/><link rel='alternate' type='text/html' href='https://www.javainhand.com/2025/04/difference-between-rank-and-denserank-in-oracle-sql.html' title='Difference Between RANK and DENSE_RANK In Oracle SQL'/><author><name>Javainhand</name><uri>http://www.blogger.com/profile/18407148468637123743</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhQ3nnDdcQwtLM6n6XkSWHSA4HxZdM3QfdjZXOkMtR-KBzefO0yntF7wz-3fu0YIoPLtewEOUuVbc-QVdacHBnwv21VMe52xfcois-tRhWWk99hswJa8jjmV90TT8Bfzw/s113/javainhand.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjwL1DVeOxhnZWc_hkXD2fZ9X2nzNvjYhR7HI4ai5PbDBwhI78f54kmpfZ5EDgsW-DaJoRAjqbUX7DR0eRjS1-ofJtLW7BWt5Qqvi3W5TKTy-utBetYCx785LZVPf3GTDnuGp_zoohRuWhff40-UmPx1E-IohjhMVMeBo2sGydOdtEHRqDk8tGCENttWqE/s72-w400-h225-c/RANK()%20vs%20DENSE_RANK().jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5396106166793201647.post-6434988861818397755</id><published>2025-01-21T16:53:00.004+05:30</published><updated>2026-05-10T13:04:14.450+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="PLSQL Tutorial"/><title type='text'>Control Statement in Oracle PLSQL - Javainhand</title><content type='html'>&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;Hello Readers, This is another &lt;b&gt;PLSQL Tutorial&lt;/b&gt; blog. In this blog we will discuss &lt;b&gt;Control Statement in Oracle PLSQL&lt;/b&gt;.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;/p&gt;&lt;p style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi1QC9tD1wOoSyD3m4Xdt0u3B8-Gj1EqQ2dQDpPNsYnr1yNWvPTmU4LLTnPXSh_gs2ZCFyTDn72aOeB_CSj7aSp4q3wxhjBSwuW2U2xSwWU_-aUMM3f9OCaPsh0E1U8rGQpVDvc6YI5nw7aCNrmmoh8fn-npY-ClmeR9l2XI4SeP3wBB_Kg55JaYlLPNlM/s1280/control%20statement%20in%20oracle%20plsql.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;control statement in oracle plsql&quot; border=&quot;0&quot; data-original-height=&quot;720&quot; data-original-width=&quot;1280&quot; height=&quot;225&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi1QC9tD1wOoSyD3m4Xdt0u3B8-Gj1EqQ2dQDpPNsYnr1yNWvPTmU4LLTnPXSh_gs2ZCFyTDn72aOeB_CSj7aSp4q3wxhjBSwuW2U2xSwWU_-aUMM3f9OCaPsh0E1U8rGQpVDvc6YI5nw7aCNrmmoh8fn-npY-ClmeR9l2XI4SeP3wBB_Kg55JaYlLPNlM/w400-h225/control%20statement%20in%20oracle%20plsql.png&quot; title=&quot;control statement in oracle plsql by javainhand&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&lt;h1 style=&quot;clear: both; text-align: justify;&quot;&gt;Control Statements in Oracle PLSQL: Making Decisions in Your Code&lt;/h1&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;Control Statements are elements in a program that controls the flow of program execution.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;Let&#39;s understand with example,&amp;nbsp;Imagine you&#39;re cooking. You follow a recipe, but sometimes you need to make choices. &quot;If&quot; the sauce is too thick, you add water. &quot;For&quot; each ingredient, you measure a specific amount. These choices are like &quot;control statements&quot; in PL/SQL – they help your code make decisions and execute different parts based on conditions.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;1. &lt;b&gt;IF Statement&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;b&gt;•&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;The &quot;If&quot; King:&lt;/b&gt; This is the most basic control statement. It checks if a condition is true&lt;b&gt;.&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;b&gt;Example:-&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;IF age &amp;gt; 18 THEN
   DBMS_OUTPUT.PUT_LINE(&#39;You are an adult.&#39;); 
END IF;&lt;/span&gt;&lt;/pre&gt;&lt;p&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;b&gt;•	Explanation:-&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;o&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;If the variable &quot;age&quot; is greater than 18, the message &quot;You are an adult.&quot; will be displayed.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;o&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;If &quot;age&quot; is not greater than 18, nothing happens.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;b&gt;2. CASE Statement&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;•&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&lt;b&gt;The &quot;Multiple Choice&quot; Master&lt;/b&gt;: When you have more than two choices, the CASE statement is your friend.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;CASE 
    WHEN grade = &#39;A&#39; THEN
        bonus := 1000;
    WHEN grade = &#39;B&#39; THEN
        bonus := 500;
    ELSE
        bonus := 0;
END CASE;&lt;/span&gt;&lt;/pre&gt;&lt;p&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;•&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&lt;b&gt;Explanation&lt;/b&gt;:&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;o&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;If &quot;grade&quot; is &#39;A&#39;, the &quot;bonus&quot; variable gets 1000.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;o&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;If &quot;grade&quot; is &#39;B&#39;, the &quot;bonus&quot; gets 500.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;o&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;If &quot;grade&quot; is anything else, the &quot;bonus&quot; gets 0.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;b&gt;3. While Loop&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;b&gt;•&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;The &quot;Conditional Repeater&quot;: &lt;/b&gt;This loop checks a condition before each iteration.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;b&gt;Example:-&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;WHILE age &amp;lt; 18 LOOP
    -- Some code to be executed 
    age := age + 1; 
END LOOP;&lt;span style=&quot;white-space: normal;&quot;&gt;&lt;b&gt;
&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;p&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;b&gt;•&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;Explanation:&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;o&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;The code within the loop will execute as long as &quot;age&quot; is less than 18.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;o&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;In each iteration, the value of &quot;age&quot; is increased by 1.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;b&gt;4. FOR Loop&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;b&gt;•&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;The &quot;Counter&quot;: &lt;/b&gt;This loop is perfect for repeating something a specific number of times.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;b&gt;Example:-&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;FOR i IN 1..10 LOOP
    -- Some code to be executed 
END LOOP;&lt;/span&gt;&lt;/pre&gt;&lt;p&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;b&gt;•&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;Explanation:&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;o&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;The code within the loop will execute 10 times, with the variable &quot;i&quot; taking values from 1 to 10 in each iteration.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;That&#39;s all for today, I think(&lt;b&gt;Control Statement in Oracle PLSQL&lt;/b&gt;) post will be helpful for you. If you like the post then share your view in the comment box.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;If you want to watch this topic then &lt;a href=&quot;https://youtu.be/KuySvLaE-TY&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;click here&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='https://www.javainhand.com/feeds/6434988861818397755/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.javainhand.com/2025/01/control-statement-in-oracle-plsql.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/5396106166793201647/posts/default/6434988861818397755'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5396106166793201647/posts/default/6434988861818397755'/><link rel='alternate' type='text/html' href='https://www.javainhand.com/2025/01/control-statement-in-oracle-plsql.html' title='Control Statement in Oracle PLSQL - Javainhand'/><author><name>Javainhand</name><uri>http://www.blogger.com/profile/18407148468637123743</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhQ3nnDdcQwtLM6n6XkSWHSA4HxZdM3QfdjZXOkMtR-KBzefO0yntF7wz-3fu0YIoPLtewEOUuVbc-QVdacHBnwv21VMe52xfcois-tRhWWk99hswJa8jjmV90TT8Bfzw/s113/javainhand.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi1QC9tD1wOoSyD3m4Xdt0u3B8-Gj1EqQ2dQDpPNsYnr1yNWvPTmU4LLTnPXSh_gs2ZCFyTDn72aOeB_CSj7aSp4q3wxhjBSwuW2U2xSwWU_-aUMM3f9OCaPsh0E1U8rGQpVDvc6YI5nw7aCNrmmoh8fn-npY-ClmeR9l2XI4SeP3wBB_Kg55JaYlLPNlM/s72-w400-h225-c/control%20statement%20in%20oracle%20plsql.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5396106166793201647.post-4589957144805990793</id><published>2025-01-11T22:11:00.005+05:30</published><updated>2026-05-11T21:34:28.772+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="PLSQL Tutorial"/><title type='text'>%ROWTYPE in Oracle PLSQL with Example</title><content type='html'>&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;In this Post, We are going to explore &lt;b&gt;%ROWTYPE&lt;/b&gt; &lt;b&gt;in Oracle PL/SQL&lt;/b&gt;.&lt;/span&gt;&lt;/p&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjU8YC30SpSdSPTjdkgLYOl7JUOQzRk8Va24ofeGN7J9KLrhmsXcpkXt0vzSLU5MW1_8yJQQdR2GilYY-CzYbahgn0AvC4rwA5-05Dpb08RYerCGJXhmSXPg7qBrN4CMisf17IYpjDOQ3j7rjkkB8uoYnLhy6okSF5WU4bUkXLWQifQsN-87h6-aqMXlCg/s1280/ROWTYPE%20IN%20ORACLE%20PLSQL%20WITH%20EXAMPLE.jpg&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;720&quot; data-original-width=&quot;1280&quot; height=&quot;225&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjU8YC30SpSdSPTjdkgLYOl7JUOQzRk8Va24ofeGN7J9KLrhmsXcpkXt0vzSLU5MW1_8yJQQdR2GilYY-CzYbahgn0AvC4rwA5-05Dpb08RYerCGJXhmSXPg7qBrN4CMisf17IYpjDOQ3j7rjkkB8uoYnLhy6okSF5WU4bUkXLWQifQsN-87h6-aqMXlCg/w400-h225/ROWTYPE%20IN%20ORACLE%20PLSQL%20WITH%20EXAMPLE.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;h1 style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: x-large;&quot;&gt;%ROWTYPE in Oracle PL/SQL: A Simplified Guide&lt;/span&gt;&lt;/h1&gt;
&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: georgia;&quot;&gt;In Oracle PLSQL, the %ROWTYPE attribute is a powerful tool that simplifies your code by allowing you to easily work with entire rows of data from a table&lt;/span&gt;.&lt;/span&gt;&lt;/p&gt;
&lt;h2 style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: x-large;&quot;&gt;What is %ROWTYPE?&lt;/span&gt;&lt;/h2&gt;
&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;Imagine a table in your database. Each row in that table represents a record with multiple columns (like name, age, address, etc.).&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;&lt;b&gt;%ROWTYPE&lt;/b&gt; lets you create a variable that can hold the complete structure of a single row from that table.&lt;/span&gt;&lt;/p&gt;
&lt;h2 style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: x-large;&quot;&gt;Why use %ROWTYPE?&lt;/span&gt;&lt;/h2&gt;
&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;•	&lt;span style=&quot;font-family: georgia;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;Reduced Code&lt;/b&gt;&lt;/span&gt;: Instead of declaring individual variables for each column, you declare a single variable to hold the entire row. This significantly reduces code redundancy&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;•&lt;span style=&quot;font-family: georgia;&quot;&gt;	&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;Improved Readability&lt;/span&gt;&lt;/b&gt;: Code becomes more concise and easier to understand, as you&#39;re dealing with rows as a whole.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;•	&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;Flexibility&lt;/span&gt;&lt;/b&gt;: You can easily modify the structure of the variable if the table&#39;s structure changes, as %ROWTYPE automatically adapts.&lt;/span&gt;&lt;/p&gt;
&lt;h2 style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: x-large;&quot;&gt;Advantages of %ROWTYPE&lt;/span&gt;&lt;/h2&gt;
&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;•	&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;Efficiency&lt;/span&gt;&lt;/b&gt;: Reduces coding time and effort.&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;•	&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;Maintainability&lt;/span&gt;&lt;/b&gt;: Easier to modify code when table structures change&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;•	&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;Readability&lt;/span&gt;&lt;/b&gt;: Improves code clarity and understandability.&lt;/span&gt;&lt;/p&gt;
&lt;h2 style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: x-large;&quot;&gt;Syntax of %ROWTYPE&lt;/span&gt;&lt;/h2&gt;
&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;&lt;span style=&quot;font-size: large;&quot;&gt;variable_name table_name%ROWTYPE;&lt;/span&gt;&lt;/pre&gt;&lt;p&gt;&lt;/p&gt;
&lt;h2 style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: x-large;&quot;&gt;Example of %ROWTYPE&lt;/span&gt;&lt;/h2&gt;
&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;Let&#39;s say you have a table named &quot;EMPLOYEES&quot; with columns like &quot;EMPLOYEE_ID&quot;, &quot;FIRST_NAME&quot;, &quot;LAST_NAME&quot;, &quot;SALARY&quot;. Here&#39;s how you can use %ROWTYPE:&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;
  &lt;/span&gt;&lt;/p&gt;&lt;pre&gt;&lt;span style=&quot;font-size: large;&quot;&gt;DECLARE
  v_employee EMPLOYEES%ROWTYPE; 
BEGIN
  -- Fetch a row from the EMPLOYEES table
  SELECT * 
  INTO v_employee 
  FROM EMPLOYEES 
  WHERE EMPLOYEE_ID = 100;
 -- Access individual columns within the row
  DBMS_OUTPUT.PUT_LINE(&#39;Employee Name: &#39; || v_employee.FIRST_NAME || &#39; &#39; || v_employee.LAST_NAME);
  DBMS_OUTPUT.PUT_LINE(&#39;Salary: &#39; || v_employee.SALARY); 
END;
/
&lt;/span&gt;&lt;/pre&gt;&lt;p&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;In this example&lt;/b&gt;:&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;1.	v_employee EMPLOYEES%ROWTYPE; declares a variable named v_employee that can hold a complete row from the &quot;EMPLOYEES&quot; table.&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;2.	The SELECT ... INTO statement fetches a row from the table and stores it in the v_employee variable.&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;3.	You can then access individual columns within the row using dot notation (e.g., v_employee.FIRST_NAME).&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;That&#39;s all for today, this simplified explanation of &lt;b&gt;%ROWTYPE in Oracle PLSQL&lt;/b&gt; is helpful. If you like the post then share your view in the comment box.&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;You could also watch %rowtype in oracle plsql with example &lt;a herf=&quot;https://youtu.be/42rqDDvq8oM&quot;&gt;click here to watch&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='https://www.javainhand.com/feeds/4589957144805990793/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.javainhand.com/2025/01/rowtype-in-oracle-plsql-with-example.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/5396106166793201647/posts/default/4589957144805990793'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5396106166793201647/posts/default/4589957144805990793'/><link rel='alternate' type='text/html' href='https://www.javainhand.com/2025/01/rowtype-in-oracle-plsql-with-example.html' title='%ROWTYPE in Oracle PLSQL with Example'/><author><name>Javainhand</name><uri>http://www.blogger.com/profile/18407148468637123743</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhQ3nnDdcQwtLM6n6XkSWHSA4HxZdM3QfdjZXOkMtR-KBzefO0yntF7wz-3fu0YIoPLtewEOUuVbc-QVdacHBnwv21VMe52xfcois-tRhWWk99hswJa8jjmV90TT8Bfzw/s113/javainhand.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjU8YC30SpSdSPTjdkgLYOl7JUOQzRk8Va24ofeGN7J9KLrhmsXcpkXt0vzSLU5MW1_8yJQQdR2GilYY-CzYbahgn0AvC4rwA5-05Dpb08RYerCGJXhmSXPg7qBrN4CMisf17IYpjDOQ3j7rjkkB8uoYnLhy6okSF5WU4bUkXLWQifQsN-87h6-aqMXlCg/s72-w400-h225-c/ROWTYPE%20IN%20ORACLE%20PLSQL%20WITH%20EXAMPLE.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5396106166793201647.post-8814074640223579760</id><published>2024-12-28T15:33:00.010+05:30</published><updated>2026-05-11T21:34:52.277+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="PLSQL Tutorial"/><title type='text'>%TYPE in Oracle PL/SQL with Example</title><content type='html'>&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;In this Post, We are going to &lt;b&gt;explore %TYPE in Oracle PL/SQL&lt;/b&gt;.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEii4AQKqJqVffaF_tMJhz4LwA0rd31PZhtgTlkXgQmnk9Sh9p0JRn7jjgpsq0bqtMm9mtbVnXgpxLFrR1Fg4dklCU99nW3LHw6qn9Lj1fVxaK9PjQnPhWynBSQXg_2TFmSnl1begHC09wiwAkCuI7D8aT67JuKUReZXsqxA5-j4zq4PcoG-skZisnk6hi0/s1280/%25TYPE%20IN%20ORACLE%20PLSQL.webp&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;TYPE ATTRIBUTE IN ORACLE PLSQL&quot; border=&quot;0&quot; data-original-height=&quot;720&quot; data-original-width=&quot;1280&quot; height=&quot;225&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEii4AQKqJqVffaF_tMJhz4LwA0rd31PZhtgTlkXgQmnk9Sh9p0JRn7jjgpsq0bqtMm9mtbVnXgpxLFrR1Fg4dklCU99nW3LHw6qn9Lj1fVxaK9PjQnPhWynBSQXg_2TFmSnl1begHC09wiwAkCuI7D8aT67JuKUReZXsqxA5-j4zq4PcoG-skZisnk6hi0/w400-h225/%25TYPE%20IN%20ORACLE%20PLSQL.webp&quot; title=&quot;TYPE IN ORACLE PLSQL&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;p style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;/p&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-family: Roboto Serif; font-size: large;&quot;&gt;What is %TYPE in Oracle PLSQL?&lt;/span&gt;&lt;/h2&gt;&lt;div&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Roboto Serif; font-size: medium;&quot;&gt;%Type is a special&amp;nbsp; data type in PLSQL which is used for declaring variables, fields, and parameters with the same data type as an existing database column or another variable.&amp;nbsp;This mechanism enhances code maintainability and reduces the risk of data type-related errors.&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Roboto Serif; font-size: medium;&quot;&gt;%Type is also called dynamic datatype.&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;h3 style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Roboto Serif; font-size: large;&quot;&gt;Syntax of %TYPE in Oracle PLSQL&lt;/span&gt;&lt;/h3&gt;&lt;/div&gt;&lt;p style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-family: Roboto Serif; font-size: large;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;&lt;span style=&quot;font-family: Roboto Serif;&quot;&gt;v_identifier table.column_name%type;&lt;/span&gt;&lt;/pre&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: Roboto Serif; font-size: medium;&quot;&gt;Where:&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;&lt;span style=&quot;font-family: Roboto Serif; font-size: medium;&quot;&gt;v_identifier: The name you want to give to your variable.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-family: &amp;quot;Roboto Serif&amp;quot;; font-size: medium;&quot;&gt;table.column_name: The name of the column or variable whose data type you want to inherit from table.&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;/p&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-family: Roboto Serif; font-size: large;&quot;&gt;Example of %TYPE in Oracle PLSQL&lt;/span&gt;&lt;/h3&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Roboto Serif; font-size: medium;&quot;&gt;Let&#39;s say you have a table named EMPLOYEES with a column EMPLOYEE_ID of type NUMBER.&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Roboto Serif;&quot;&gt;DECLARE&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Roboto Serif&amp;quot;;&quot;&gt;v_employee_id EMPLOYEES.EMPLOYEE_ID%TYPE;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Roboto Serif&amp;quot;;&quot;&gt;BEGIN&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Roboto Serif&amp;quot;;&quot;&gt;-- ... your PL/SQL code ...&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Roboto Serif;&quot;&gt;END;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Roboto Serif;&quot;&gt;/&lt;/span&gt;&lt;/p&gt;&lt;/pre&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Roboto Serif;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Roboto Serif;&quot;&gt;I&lt;span style=&quot;font-size: medium;&quot;&gt;n this example, the variable v_employee_id will automatically have the same data type as the EMPLOYEE_ID column in the EMPLOYEES table.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Roboto Serif; font-size: large;&quot;&gt;&lt;b&gt;Real-World Use Case:&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Roboto Serif; font-size: medium;&quot;&gt;Imagine you&#39;re writing a procedure to update an employee&#39;s salary. Using %TYPE ensures that the variable holding the new salary has the exact same data type as the SALARY column in the EMPLOYEES table, preventing potential data type mismatch errors.&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Roboto Serif;&quot;&gt;CREATE OR REPLACE PROCEDURE update_employee_salary (&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Roboto Serif;&quot;&gt;&amp;nbsp; p_employee_id IN EMPLOYEES.EMPLOYEE_ID%TYPE,&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Roboto Serif;&quot;&gt;&amp;nbsp; p_new_salary IN EMPLOYEES.SALARY%TYPE&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Roboto Serif;&quot;&gt;)&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Roboto Serif;&quot;&gt;AS&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Roboto Serif;&quot;&gt;BEGIN&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Roboto Serif;&quot;&gt;&amp;nbsp; UPDATE EMPLOYEES&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Roboto Serif;&quot;&gt;&amp;nbsp; SET SALARY = p_new_salary&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Roboto Serif;&quot;&gt;&amp;nbsp; WHERE EMPLOYEE_ID = p_employee_id;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Roboto Serif;&quot;&gt;END;&lt;/span&gt;&lt;/p&gt;&lt;/pre&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Roboto Serif;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Roboto Serif;&quot;&gt;/&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;/p&gt;&lt;h3&gt;&lt;span style=&quot;font-family: Roboto Serif; font-size: large;&quot;&gt;Advantages of %TYPE in Oracle PLSQL&lt;/span&gt;&lt;/h3&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;The primary benefit of using %TYPE lies in maintainability. If the data type of the referenced column ever changes (e.g., from NUMBER to DECIMAL), all variables declared with %TYPE based on that column will automatically inherit the new data type. This eliminates the need to manually update multiple variable declarations, significantly reducing the risk of errors and making your code more robust and adaptable to schema changes.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: georgia;&quot;&gt;That&#39;s all for today, I hope this (&lt;b&gt;%TYPE in Oracle PL/SQL with Example&lt;/b&gt;)&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: georgia;&quot;&gt;post will be helpful for you. If you like the post then share your view in the comment box.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;p&gt;&lt;/p&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;p&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='https://www.javainhand.com/feeds/8814074640223579760/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.javainhand.com/2024/12/type-in-oracle-plsql-with-example.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/5396106166793201647/posts/default/8814074640223579760'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5396106166793201647/posts/default/8814074640223579760'/><link rel='alternate' type='text/html' href='https://www.javainhand.com/2024/12/type-in-oracle-plsql-with-example.html' title='%TYPE in Oracle PL/SQL with Example'/><author><name>Javainhand</name><uri>http://www.blogger.com/profile/18407148468637123743</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhQ3nnDdcQwtLM6n6XkSWHSA4HxZdM3QfdjZXOkMtR-KBzefO0yntF7wz-3fu0YIoPLtewEOUuVbc-QVdacHBnwv21VMe52xfcois-tRhWWk99hswJa8jjmV90TT8Bfzw/s113/javainhand.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEii4AQKqJqVffaF_tMJhz4LwA0rd31PZhtgTlkXgQmnk9Sh9p0JRn7jjgpsq0bqtMm9mtbVnXgpxLFrR1Fg4dklCU99nW3LHw6qn9Lj1fVxaK9PjQnPhWynBSQXg_2TFmSnl1begHC09wiwAkCuI7D8aT67JuKUReZXsqxA5-j4zq4PcoG-skZisnk6hi0/s72-w400-h225-c/%25TYPE%20IN%20ORACLE%20PLSQL.webp" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5396106166793201647.post-7879735350258056579</id><published>2023-02-11T13:44:00.000+05:30</published><updated>2023-02-11T13:44:23.342+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Oracle Apex"/><title type='text'>Show Image Instead of Icon in Oracle APEX Region Header- Javainhand Tutorial</title><content type='html'>&lt;h1 style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Roboto Serif;&quot;&gt;Show Image Instead of Icon in Oracle APEX Region Header: A Comprehensive Guide&lt;/span&gt;&lt;/h1&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Roboto Serif;&quot;&gt;Learn how to replace the standard icons in the Oracle APEX Region header with custom images in a few simple steps.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;/p&gt;&lt;p style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiR4cUUqLn3dof62qVbSs1cwt_sSvbZTjWXyrc9Mo5FFaH-i9cxaUiNhRbeot5gKoD2WtGjVaxqtKnZ_weAXCMqMPQ8PI-hPSvO_15Y4gm_WXzIhEoPsXkQ-IzDETKXUqHkg0uLiSa_TwO7YAqx1fMZiv2kDfsCalezYtwOqcqJmYX7oQQnYZupOMft/s960/Show%20Image%20Instead%20of%20Icon%20in%20Oracle%20APEX%20Region%20Header%20-%20Image%205.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;540&quot; data-original-width=&quot;960&quot; height=&quot;225&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiR4cUUqLn3dof62qVbSs1cwt_sSvbZTjWXyrc9Mo5FFaH-i9cxaUiNhRbeot5gKoD2WtGjVaxqtKnZ_weAXCMqMPQ8PI-hPSvO_15Y4gm_WXzIhEoPsXkQ-IzDETKXUqHkg0uLiSa_TwO7YAqx1fMZiv2kDfsCalezYtwOqcqJmYX7oQQnYZupOMft/w400-h225/Show%20Image%20Instead%20of%20Icon%20in%20Oracle%20APEX%20Region%20Header%20-%20Image%205.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p style=&quot;text-align: left;&quot;&gt;&lt;b style=&quot;font-family: &amp;quot;Roboto Serif&amp;quot;; text-align: justify;&quot;&gt;Step 1: Upload the Image to the Shared Components&lt;/b&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Roboto Serif;&quot;&gt;The first step in this process is to upload the image that you want to display in the Region header. To do this, you need to access the Shared Components section of the Oracle APEX workspace and select the Static Application Files option. Next, click on the Create button and select the Image option. Finally, upload the image file and give it a meaningful name.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;/p&gt;&lt;p style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhFY7VSJFmkK48XCqewMjMSU2rnVXA0Oqs9CWnHRmNZDPZKnkCxqjUiB_WrjKhHQXJpyU_uUC6vp-UFHJi75ifNSOuUoagzH5Rwy2gGXSmd7YZuCM6WJh4QKXsQuucJDOfIcnrEKAHY09t6Mut0ZdCqenJvsNfXTzd0jE1nU4MZUywHg4RTFh3ywcjK/s1366/Show%20Image%20Instead%20of%20Icon%20in%20Oracle%20APEX%20Region%20Header%20-%20Image%201.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;Show Image Instead of Icon in Oracle APEX Region Header Image 1&quot; border=&quot;0&quot; data-original-height=&quot;533&quot; data-original-width=&quot;1366&quot; height=&quot;250&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhFY7VSJFmkK48XCqewMjMSU2rnVXA0Oqs9CWnHRmNZDPZKnkCxqjUiB_WrjKhHQXJpyU_uUC6vp-UFHJi75ifNSOuUoagzH5Rwy2gGXSmd7YZuCM6WJh4QKXsQuucJDOfIcnrEKAHY09t6Mut0ZdCqenJvsNfXTzd0jE1nU4MZUywHg4RTFh3ywcjK/w640-h250/Show%20Image%20Instead%20of%20Icon%20in%20Oracle%20APEX%20Region%20Header%20-%20Image%201.png&quot; title=&quot;Show Image Instead of Icon in Oracle APEX Region Header Image 1&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;b style=&quot;font-family: &amp;quot;Roboto Serif&amp;quot;;&quot;&gt;Step 2: Copy Existing Standard Region Template with New Name&lt;/b&gt;&lt;/p&gt;&lt;p style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Roboto Serif;&quot;&gt;Second step in this process is to&amp;nbsp; copy existing standard region template with new name. To do this, You have to go in the shared components and find template section then find standard region template and Click on the copy icon and Save with the new name.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;/p&gt;&lt;p style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEirFwna-zxbdL1KX1xLhdUPVIfY4mps5StpMdYEu6nft_dHKUwyiSINE8GXbOABybLBnWJhCX7XLZQfoJHvj4HgBwMfTgbzAnkMjdsCN69v_hnxKhjKwNr02eEM6mOsmiXC-0VRtWMtZx6NIlgQ89rIv-8VUXX3bGWW9PwBVyzeiv6Inh3AFmoza1y2/s1366/Show%20Image%20Instead%20of%20Icon%20in%20Oracle%20APEX%20Region%20Header%20-%20Image%202.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;656&quot; data-original-width=&quot;1366&quot; height=&quot;308&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEirFwna-zxbdL1KX1xLhdUPVIfY4mps5StpMdYEu6nft_dHKUwyiSINE8GXbOABybLBnWJhCX7XLZQfoJHvj4HgBwMfTgbzAnkMjdsCN69v_hnxKhjKwNr02eEM6mOsmiXC-0VRtWMtZx6NIlgQ89rIv-8VUXX3bGWW9PwBVyzeiv6Inh3AFmoza1y2/w640-h308/Show%20Image%20Instead%20of%20Icon%20in%20Oracle%20APEX%20Region%20Header%20-%20Image%202.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;b style=&quot;font-family: &amp;quot;Roboto Serif&amp;quot;;&quot;&gt;Step 3: Find the New Template and Done the Below &lt;/b&gt;&lt;span style=&quot;font-family: Roboto Serif;&quot;&gt;&lt;b&gt;Changes&lt;/b&gt;&lt;/span&gt;&lt;b style=&quot;font-family: &amp;quot;Roboto Serif&amp;quot;;&quot;&gt;.&lt;/b&gt;&lt;/p&gt;&lt;span style=&quot;font-family: Roboto Serif;&quot;&gt;Third step in this process is to find the new template which have we created and click on the that template then go to the definition and find (&lt;b&gt;&amp;lt;span class=&quot;t-Region-headerIcon&quot;&amp;gt;&amp;lt;span class=&quot;t-Icon #ICON_CSS_CLASSES#&quot; aria-hidden=&quot;true&quot;&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/span&amp;gt;) &lt;/b&gt;this line of statement. After that we have to change with the below statement and Save your template.&lt;/span&gt;&lt;p&gt;&lt;/p&gt;&lt;p style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Roboto Serif;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;&lt;span style=&quot;font-family: Roboto Serif;&quot;&gt;&amp;lt;span class=&quot;t-Region-headerIcon&quot;&amp;gt;&amp;lt;img src=&quot;#ICON_CSS_CLASSES#&quot; aria-hidden=&quot;true&quot;&amp;gt;&amp;lt;/img&amp;gt;&amp;lt;/span&amp;gt;&lt;/span&gt;&lt;/pre&gt;&lt;p style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-family: Roboto Serif;&quot;&gt;&lt;b style=&quot;text-align: justify;&quot;&gt;Step 4: Use the new template in your page&lt;/b&gt;&lt;b style=&quot;text-align: justify;&quot;&gt;.&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Roboto Serif&amp;quot;; text-align: left;&quot;&gt;Fourth step in this process is to create a new region and Change region template with &lt;b&gt;new template&lt;/b&gt; then Go to template option and &lt;b&gt;Enable the show region icon&lt;/b&gt;. After that &lt;b&gt;paste your IMAGE URL in the ICON section&lt;/b&gt;. Please check the below screenshot.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;/p&gt;&lt;p style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiulgTMKYWvK3okgOUpVUQcB_but_ZnW4f3cY3al0nIhUyNd_cqsiMVirD1_X3BqwWvy6XmqfDYcTvwtOYdWds8xqTLPrVe3pMovpC1MULt8OOuPag_Es-H2bfbXgRWB7BZhHAOBz112gJLvvXpKBfQ9iTzQ1sJJDUy_QJ-TNJZBAG9mYJmlvqHByMD/s1366/Show%20Image%20Instead%20of%20Icon%20in%20Oracle%20APEX%20Region%20Header%20-%20Image%203.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;341&quot; data-original-width=&quot;1366&quot; height=&quot;160&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiulgTMKYWvK3okgOUpVUQcB_but_ZnW4f3cY3al0nIhUyNd_cqsiMVirD1_X3BqwWvy6XmqfDYcTvwtOYdWds8xqTLPrVe3pMovpC1MULt8OOuPag_Es-H2bfbXgRWB7BZhHAOBz112gJLvvXpKBfQ9iTzQ1sJJDUy_QJ-TNJZBAG9mYJmlvqHByMD/w640-h160/Show%20Image%20Instead%20of%20Icon%20in%20Oracle%20APEX%20Region%20Header%20-%20Image%203.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&lt;br /&gt;&lt;span style=&quot;font-family: &amp;quot;Roboto Serif&amp;quot;; text-align: left;&quot;&gt;Output&lt;/span&gt;&lt;p&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEglSod2UpoducabfvXue2SqCb2Du_l2sER-8rpi3ckV_URl-ujDKIYGjpWr_Vr2kLx3JSxrsQdyhpJOiJSpKaFCl3cn68V3uLIV0J_S1MeZaPVF1ChO28CWR5RpYZSKtIOu8b_xShLgk6xjk9UGChctmHQG93xUPboj_LdMHDaNU6ANtgAMkSxdl9z1/s1366/Show%20Image%20Instead%20of%20Icon%20in%20Oracle%20APEX%20Region%20Header%20-%20Image%204.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;330&quot; data-original-width=&quot;1366&quot; height=&quot;154&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEglSod2UpoducabfvXue2SqCb2Du_l2sER-8rpi3ckV_URl-ujDKIYGjpWr_Vr2kLx3JSxrsQdyhpJOiJSpKaFCl3cn68V3uLIV0J_S1MeZaPVF1ChO28CWR5RpYZSKtIOu8b_xShLgk6xjk9UGChctmHQG93xUPboj_LdMHDaNU6ANtgAMkSxdl9z1/w640-h154/Show%20Image%20Instead%20of%20Icon%20in%20Oracle%20APEX%20Region%20Header%20-%20Image%204.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Roboto Serif;&quot;&gt;Conclusion: &lt;b&gt;Showing an image instead of an icon in the Oracle APEX Region header&lt;/b&gt; is a simple and straightforward process that can enhance the visual appeal of your application. By following the steps outlined in this article, you can easily replace the default icon with a custom image in a few minutes. If you have any questions or concerns, please drop the comment in the comment section for additional information.&lt;/span&gt;&lt;/p&gt;&lt;div&gt;&lt;p&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Roboto Serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='https://www.javainhand.com/feeds/7879735350258056579/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.javainhand.com/2023/02/show-image-instead-of-icon-in-oracle-apex-region-header.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/5396106166793201647/posts/default/7879735350258056579'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5396106166793201647/posts/default/7879735350258056579'/><link rel='alternate' type='text/html' href='https://www.javainhand.com/2023/02/show-image-instead-of-icon-in-oracle-apex-region-header.html' title='Show Image Instead of Icon in Oracle APEX Region Header- Javainhand Tutorial'/><author><name>Javainhand</name><uri>http://www.blogger.com/profile/18407148468637123743</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhQ3nnDdcQwtLM6n6XkSWHSA4HxZdM3QfdjZXOkMtR-KBzefO0yntF7wz-3fu0YIoPLtewEOUuVbc-QVdacHBnwv21VMe52xfcois-tRhWWk99hswJa8jjmV90TT8Bfzw/s113/javainhand.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiR4cUUqLn3dof62qVbSs1cwt_sSvbZTjWXyrc9Mo5FFaH-i9cxaUiNhRbeot5gKoD2WtGjVaxqtKnZ_weAXCMqMPQ8PI-hPSvO_15Y4gm_WXzIhEoPsXkQ-IzDETKXUqHkg0uLiSa_TwO7YAqx1fMZiv2kDfsCalezYtwOqcqJmYX7oQQnYZupOMft/s72-w400-h225-c/Show%20Image%20Instead%20of%20Icon%20in%20Oracle%20APEX%20Region%20Header%20-%20Image%205.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5396106166793201647.post-1867610542993314038</id><published>2022-11-23T18:56:00.004+05:30</published><updated>2024-03-08T17:31:01.393+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="PLSQL"/><category scheme="http://www.blogger.com/atom/ns#" term="Procedure Related Interview Questions in Oracle PL/SQL"/><title type='text'>Procedure Related Interview Questions in Oracle PL/SQL</title><content type='html'>&lt;p&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Roboto Slab&amp;quot;; text-align: justify;&quot;&gt;In this&amp;nbsp;&lt;/span&gt;&lt;b style=&quot;font-family: &amp;quot;Roboto Slab&amp;quot;; text-align: justify;&quot;&gt;Oracle PL/SQL Tutorial,&amp;nbsp;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;Roboto Slab&amp;quot;; text-align: justify;&quot;&gt;We are sharing some Procedure Related Interview Questions in Oracle PL/SQL.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Roboto Slab; font-size: medium;&quot;&gt;We hope this questions will help you in your Oracle PL/SQL Interview. In this post we are sharing most asked questions related to Procedure in Oracle PL/SQL.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Roboto Slab; font-size: medium;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;&lt;span style=&quot;font-family: Roboto Slab; font-size: medium;&quot;&gt;Q1. What is Procedure in Oracle PL/SQL?
Q2. Syntax of Procedure in Oracle PL/SQL?
Q3. Example of Procedure in Oracle PL/SQL?
Q4. For which case, we used to Procedure in PL/SQL.
Q5. Can we use Out or InOUT Parameter in Procedure  in PL/SQL and For which Purpose, we use OUT and InOut Parameter?
Q6. Can we use RETURN Keyword in Procedure and What is the purpose of RETURN Keyword?
Q7. Can we use function in the procedure in PL/SQL?
Q8. Can we write DDL process in Procedure in PL/SQL? If yes then how?
Q9. Can we use Procedure as an Assignment Statement or Boolean Expression or SQL Statement?&lt;/span&gt;&lt;/pre&gt;&lt;span style=&quot;font-family: Roboto Slab; font-size: medium;&quot;&gt;&lt;span style=&quot;background-color: white; text-align: justify;&quot;&gt;&lt;span&gt;That&#39;s all for today, I hope this (&lt;b&gt;Procedure Related Interview Questions in Oracle PL/SQL&lt;/b&gt;.)&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; text-align: justify;&quot;&gt;post will be helpful for you. If you want to know the answer then drop your comments in comment section.&lt;/span&gt;&lt;/span&gt;&lt;p&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='https://www.javainhand.com/feeds/1867610542993314038/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.javainhand.com/2022/11/procedure-related-interview-questions-in-oracle-plsql.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/5396106166793201647/posts/default/1867610542993314038'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5396106166793201647/posts/default/1867610542993314038'/><link rel='alternate' type='text/html' href='https://www.javainhand.com/2022/11/procedure-related-interview-questions-in-oracle-plsql.html' title='Procedure Related Interview Questions in Oracle PL/SQL'/><author><name>Javainhand</name><uri>http://www.blogger.com/profile/18407148468637123743</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhQ3nnDdcQwtLM6n6XkSWHSA4HxZdM3QfdjZXOkMtR-KBzefO0yntF7wz-3fu0YIoPLtewEOUuVbc-QVdacHBnwv21VMe52xfcois-tRhWWk99hswJa8jjmV90TT8Bfzw/s113/javainhand.png'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5396106166793201647.post-4539604146341003957</id><published>2022-11-21T13:29:00.008+05:30</published><updated>2023-07-19T14:26:28.081+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Function Related Interview Questions in Oracle PL/SQL"/><category scheme="http://www.blogger.com/atom/ns#" term="PLSQL"/><title type='text'>Function Related Interview Questions in Oracle PL/SQL</title><content type='html'>&lt;p&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Roboto Slab&amp;quot;; text-align: justify;&quot;&gt;In this&amp;nbsp;&lt;/span&gt;&lt;b style=&quot;font-family: &amp;quot;Roboto Slab&amp;quot;; text-align: justify;&quot;&gt;Oracle PL/SQL Tutorial,&amp;nbsp;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;Roboto Slab&amp;quot;; text-align: justify;&quot;&gt;We are sharing some Function Related Interview Questions in Oracle PL/SQL.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Roboto Slab; font-size: medium;&quot;&gt;We hope this questions will help you in your Oracle PL/SQL Interview. In this post we are sharing most asked questions related to Function in Oracle PL/SQL.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;&lt;span style=&quot;font-family: Roboto Slab; font-size: medium;&quot;&gt;Q1. What is Function in Oracle PL/SQL?
Q2. Syntax of Function in Oracle PL/SQL?
Q3. Example of Function in Oracle PL/SQL?
Q4. For which case, we used to Function in PL/SQL.
Q5. Can we use Out or InOUT Parameter in Function in PL/SQL?
Q6. Without using RETURN Keyword, can we create Function in PL/SQL?
Q7. Can we return multiple values through Function in PL/SQL? If yes then how?
Q8. Can we write DML process in Function in PL/SQL? If yes then how?
Q9. Can we write DDL process in Function in PL/SQL? If yes then how?
Q10. Can we use function as an Assignment Statement or Boolean Expression or SQL Statement?&lt;/span&gt;&lt;/pre&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: white; font-family: Roboto Slab; font-size: medium;&quot;&gt;&lt;span color=&quot;rgba(0, 0, 0, 0.9)&quot; style=&quot;text-align: start;&quot;&gt;&lt;span style=&quot;text-align: justify;&quot;&gt;&lt;span&gt;That&#39;s all for today, I hope this (&lt;b&gt;Function Related Interview Questions in Oracle PL/SQL&lt;/b&gt;.)&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;text-align: justify;&quot;&gt;post will be helpful for you. If you want to know the answer then drop your comments in comment section.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='https://www.javainhand.com/feeds/4539604146341003957/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.javainhand.com/2022/11/function-related-interview-questions-in-oracle-plsql.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/5396106166793201647/posts/default/4539604146341003957'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5396106166793201647/posts/default/4539604146341003957'/><link rel='alternate' type='text/html' href='https://www.javainhand.com/2022/11/function-related-interview-questions-in-oracle-plsql.html' title='Function Related Interview Questions in Oracle PL/SQL'/><author><name>Javainhand</name><uri>http://www.blogger.com/profile/18407148468637123743</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhQ3nnDdcQwtLM6n6XkSWHSA4HxZdM3QfdjZXOkMtR-KBzefO0yntF7wz-3fu0YIoPLtewEOUuVbc-QVdacHBnwv21VMe52xfcois-tRhWWk99hswJa8jjmV90TT8Bfzw/s113/javainhand.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5396106166793201647.post-5775309008822547068</id><published>2022-06-26T11:51:00.003+05:30</published><updated>2022-06-26T11:51:38.492+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Preview Multiple Images Before Upload in Oracle APEX"/><title type='text'>Preview Multiple Images Before Upload Using JavaScript in Oracle APEX</title><content type='html'>&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Roboto Slab; font-size: medium;&quot;&gt;In this &lt;b&gt;Oracle APEX Tutorial, &lt;/b&gt;We will explore the Preview Multiple Images Before Upload Using JavaScript in Oracle APEX.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Roboto Slab; font-size: medium;&quot;&gt;You may also like &lt;a href=&quot;https://www.javainhand.com/2020/04/image-preview-before-upload-in-oracle-apex.html&quot; target=&quot;_blank&quot;&gt;Preview Image Before Uploading in Oracle APEX.&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh_ZiSAXd-v7Pwg-F5w83cPZduKP_gTaqCloT7I0U4JFpSg9YeB3jDlESJYsBi7v1mdK_K7wcIQRfsfmvgs6Uq25izwFwUAj6BsiPvzQU_2MRS9txueJnOkxT04kdd_wp1jKHNrWr1nkYV_a_VNZLC9dbJ4LrZ4GP6-zGRjnbaLqr08VQ0GbBE_MlK5/s960/Preview%20Multiple%20Images%20Before%20Upload%20Using%20JavaScript%20in%20Oracle%20APEX.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;How to Preview Multiple Images Before Upload Using JavaScript in Oracle APEX&quot; border=&quot;0&quot; data-original-height=&quot;540&quot; data-original-width=&quot;960&quot; height=&quot;225&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh_ZiSAXd-v7Pwg-F5w83cPZduKP_gTaqCloT7I0U4JFpSg9YeB3jDlESJYsBi7v1mdK_K7wcIQRfsfmvgs6Uq25izwFwUAj6BsiPvzQU_2MRS9txueJnOkxT04kdd_wp1jKHNrWr1nkYV_a_VNZLC9dbJ4LrZ4GP6-zGRjnbaLqr08VQ0GbBE_MlK5/w400-h225/Preview%20Multiple%20Images%20Before%20Upload%20Using%20JavaScript%20in%20Oracle%20APEX.png&quot; title=&quot;Preview Multiple Images Before Upload Using JavaScript in Oracle APEX&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;h2 style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Roboto Slab;&quot;&gt;To Preview Multiple Images Before Upload using JavaScript in Oracle APEX&lt;/span&gt;&lt;/h2&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Roboto Slab; font-size: medium;&quot;&gt;Step 1:- Create a Region with file Browse Page Item. See the below screenshot for the better understanding.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhwS4lFD7I_-jq1tRvZhCmaJ60FeaRwutl3HkQ9K5i-okzmfhiBrvFVYd2PVc0BdhHHzX8qtkkaAXLVCdw2e6wnhxHsc8r5Ln-mutDVQnxK_sTUHjX2O_ClY54wpFz_iy-LODm9BIewad2N6PUfGRknrlS0woNtfNgEf0SAyMzO_5c3xJK_9mypCvAd/s1920/To%20Preview%20Multiple%20Image%20Before%20Upload%20in%20Oracle%20APEX.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;490&quot; data-original-width=&quot;1920&quot; height=&quot;165&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhwS4lFD7I_-jq1tRvZhCmaJ60FeaRwutl3HkQ9K5i-okzmfhiBrvFVYd2PVc0BdhHHzX8qtkkaAXLVCdw2e6wnhxHsc8r5Ln-mutDVQnxK_sTUHjX2O_ClY54wpFz_iy-LODm9BIewad2N6PUfGRknrlS0woNtfNgEf0SAyMzO_5c3xJK_9mypCvAd/w640-h165/To%20Preview%20Multiple%20Image%20Before%20Upload%20in%20Oracle%20APEX.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Roboto Slab; font-size: medium;&quot;&gt;Step 2:- Create one more Region for Preview Images using below HTML code. See the below screenshot for the better understanding.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;/p&gt;&lt;p style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhabGl9BWb4dJB3iRBQ2zpQC_d-3Qzvdf6BMqCgr98gMMoLvb61ZmjyO4qgLrWcZbDrYc5pScvxggKFQVGi7Ow84gMzjR6OqxXG86z7skHyCXnTHoBrXcEU5bhsAj8Rl65FKSg24N4oqgNYCHH2FNt7lmwOh4m5X7QWIntXIeULJnHSe0hktBDXGb5f/s1920/To%20Preview%20Multiple%20Image%20Before%20Upload%20in%20Oracle%20APEX%201.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;579&quot; data-original-width=&quot;1920&quot; height=&quot;194&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhabGl9BWb4dJB3iRBQ2zpQC_d-3Qzvdf6BMqCgr98gMMoLvb61ZmjyO4qgLrWcZbDrYc5pScvxggKFQVGi7Ow84gMzjR6OqxXG86z7skHyCXnTHoBrXcEU5bhsAj8Rl65FKSg24N4oqgNYCHH2FNt7lmwOh4m5X7QWIntXIeULJnHSe0hktBDXGb5f/w640-h194/To%20Preview%20Multiple%20Image%20Before%20Upload%20in%20Oracle%20APEX%201.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Roboto Slab; font-size: medium;&quot;&gt;Step 3:- Use the below JavaScript code in the page function and Global Variable Declaration Section.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;&lt;span&gt;window.onload = function () {
    var fileUpload = document.getElementById(&quot;P33_UPLOAD&quot;);
    fileUpload.onchange = function () {
        if (typeof (FileReader) != &quot;undefined&quot;) {
            var dvPreview = document.getElementById(&quot;image_preview&quot;);
            dvPreview.innerHTML = &quot;&quot;;
            var regex = /^([a-zA-Z0-9\s_\\.\-:])+(.jpg|.jpeg|.gif|.png|.bmp)$/;
            for (var i = 0;i&amp;lt;fileUpload.files.length; i++) {
                var file = fileUpload.files[i];
                if (regex.test(file.name.toLowerCase())) {
                    var reader = new FileReader();
                    reader.onload = function (e) {
                        var img = document.createElement(&quot;IMG&quot;);
                        img.height = &quot;100&quot;;
                        img.width = &quot;100&quot;;
                        img.src = e.target.result;
                        dvPreview.appendChild(img);
                    }
                    reader.readAsDataURL(file);
                } else {
                    alert(file.name + &quot; is not a valid image file.&quot;);
                    dvPreview.innerHTML = &quot;&quot;;
                    return false;
                }
            }
        } else {
            alert(&quot;This browser does not support HTML5 FileReader.&quot;);
        }
    }
};&lt;/span&gt;&lt;/pre&gt;&lt;p style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Roboto Slab; font-size: medium;&quot;&gt;Step 4:- Use below CSS code in the page inline section which added the space between the two or more images.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Roboto; font-size: medium;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;&lt;span style=&quot;font-family: Roboto; font-size: medium;&quot;&gt;#image_preview img
{
    display: inline-block;
    margin: 0px 10px;
}&lt;/span&gt;&lt;/pre&gt;&lt;p style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Roboto Slab; font-size: medium;&quot;&gt;&lt;span&gt;&lt;span&gt;That&#39;s all for today, I hope this (&lt;b&gt;Preview Multiple Images Before Upload Using JavaScript in Oracle APEX&lt;/b&gt;)&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;post will be helpful for you. If you like the post then share your view in the comment box.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Roboto Slab; font-size: large;&quot;&gt;&lt;a href=&quot;https://apex.oracle.com/pls/apex/f?p=81446:33:101894453081165:::::&quot; target=&quot;_blank&quot;&gt;DEMO URL&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;a href=&quot;https://www.aspsnippets.com/Articles/HTML5-Show-Display-multiple-image-preview-before-upload-with-FileUpload-control-using-JavaScript-and-jQuery.aspx&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;font-family: Roboto Slab; font-size: medium;&quot;&gt;Reference  URL&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='https://www.javainhand.com/feeds/5775309008822547068/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.javainhand.com/2022/06/preview-multiple-images-before-upload-using-javascript-in-oracle-apex.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/5396106166793201647/posts/default/5775309008822547068'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5396106166793201647/posts/default/5775309008822547068'/><link rel='alternate' type='text/html' href='https://www.javainhand.com/2022/06/preview-multiple-images-before-upload-using-javascript-in-oracle-apex.html' title='Preview Multiple Images Before Upload Using JavaScript in Oracle APEX'/><author><name>Javainhand</name><uri>http://www.blogger.com/profile/18407148468637123743</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhQ3nnDdcQwtLM6n6XkSWHSA4HxZdM3QfdjZXOkMtR-KBzefO0yntF7wz-3fu0YIoPLtewEOUuVbc-QVdacHBnwv21VMe52xfcois-tRhWWk99hswJa8jjmV90TT8Bfzw/s113/javainhand.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh_ZiSAXd-v7Pwg-F5w83cPZduKP_gTaqCloT7I0U4JFpSg9YeB3jDlESJYsBi7v1mdK_K7wcIQRfsfmvgs6Uq25izwFwUAj6BsiPvzQU_2MRS9txueJnOkxT04kdd_wp1jKHNrWr1nkYV_a_VNZLC9dbJ4LrZ4GP6-zGRjnbaLqr08VQ0GbBE_MlK5/s72-w400-h225-c/Preview%20Multiple%20Images%20Before%20Upload%20Using%20JavaScript%20in%20Oracle%20APEX.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5396106166793201647.post-835575898316553336</id><published>2022-02-10T16:20:00.008+05:30</published><updated>2023-07-19T14:22:52.028+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Difference Between Function and Procedure"/><category scheme="http://www.blogger.com/atom/ns#" term="PLSQL"/><title type='text'>Difference Between Function and Procedure in PL/SQL</title><content type='html'>&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;In this Tutorial, We will explore the &lt;b&gt;Difference Between Function and Procedure in PL/SQL&lt;/b&gt;.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEgKz6D--OlSuWmAoAMh9dz1T-_ihhCgKVtz3Q4kHtJtdQj4k0dbMUPs6cDOcfGF4OG7CBPqOHKKIt_7pJPuUDlta2OcNh7YwW0F0jtvSO3QIedyMOMlSxYzf3NnW9mAr4MnliNV1E7OkmXIVF9kr6npWaWzbcG2BGBqAoCL4pf1XsY_rwj7pvLcm2_V=s960&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;Difference Between Function and Procedure in Oracle&quot; border=&quot;0&quot; data-original-height=&quot;540&quot; data-original-width=&quot;960&quot; height=&quot;225&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEgKz6D--OlSuWmAoAMh9dz1T-_ihhCgKVtz3Q4kHtJtdQj4k0dbMUPs6cDOcfGF4OG7CBPqOHKKIt_7pJPuUDlta2OcNh7YwW0F0jtvSO3QIedyMOMlSxYzf3NnW9mAr4MnliNV1E7OkmXIVF9kr6npWaWzbcG2BGBqAoCL4pf1XsY_rwj7pvLcm2_V=w400-h225&quot; title=&quot;Difference Between Function and Procedure in Oracle&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;&lt;b style=&quot;font-family: georgia; text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;What is Difference Between Function and Procedure in Oracle PL/SQL&lt;/span&gt;&lt;/b&gt;&lt;/h2&gt;&lt;p style=&quot;text-align: left;&quot;&gt;&lt;b style=&quot;font-family: georgia; text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Function:-&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p style=&quot;text-align: left;&quot;&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;ol style=&quot;text-align: left;&quot;&gt;&lt;li style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;font-family: georgia;&quot;&gt;Function must always return a value&lt;/span&gt;.&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;Function can be used in SQL statement.&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;Function used for computational purpose.&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;We can not write directly DML statements in Function(Using Autonomous transaction we can write DML statement in Function).&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;In function, We use RETURN keyword for return the value.&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;b&gt;Procedure:-&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;/p&gt;&lt;ol&gt;&lt;li&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;Procedure can not return value but using IN and INOUT parameter procedure can return the value.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;We can not run procedure in SQL statement.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;Procedure is basically use for the bussiness logic.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;In procedure, we can write DML statement.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;In procedure, We can use RETURN keyword also but the behaviour of RETURN keyword is change in the procedure. RETURN keyword means you want to exit to program.&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;font-family: georgia;&quot;&gt;That&#39;s all for today, I hope this (&lt;b&gt;Difference Between Function and Procedure in Oracle PL/SQL&lt;/b&gt;)&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: georgia; text-align: justify;&quot;&gt;post will be helpful for you. If you like the post then share your view in the comment box.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='https://www.javainhand.com/feeds/835575898316553336/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.javainhand.com/2022/02/difference-between-function-and-procedure-in-plsql.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/5396106166793201647/posts/default/835575898316553336'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5396106166793201647/posts/default/835575898316553336'/><link rel='alternate' type='text/html' href='https://www.javainhand.com/2022/02/difference-between-function-and-procedure-in-plsql.html' title='Difference Between Function and Procedure in PL/SQL'/><author><name>Javainhand</name><uri>http://www.blogger.com/profile/18407148468637123743</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhQ3nnDdcQwtLM6n6XkSWHSA4HxZdM3QfdjZXOkMtR-KBzefO0yntF7wz-3fu0YIoPLtewEOUuVbc-QVdacHBnwv21VMe52xfcois-tRhWWk99hswJa8jjmV90TT8Bfzw/s113/javainhand.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/a/AVvXsEgKz6D--OlSuWmAoAMh9dz1T-_ihhCgKVtz3Q4kHtJtdQj4k0dbMUPs6cDOcfGF4OG7CBPqOHKKIt_7pJPuUDlta2OcNh7YwW0F0jtvSO3QIedyMOMlSxYzf3NnW9mAr4MnliNV1E7OkmXIVF9kr6npWaWzbcG2BGBqAoCL4pf1XsY_rwj7pvLcm2_V=s72-w400-h225-c" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5396106166793201647.post-9090492661430002622</id><published>2022-01-23T21:55:00.006+05:30</published><updated>2022-07-11T14:46:35.117+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="decode in oracle sql"/><category scheme="http://www.blogger.com/atom/ns#" term="SQL"/><title type='text'>DECODE() Function in Oracle</title><content type='html'>&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;In this &lt;b&gt;Oracle SQL Tutorial&lt;/b&gt;, We will expolre the &lt;b&gt;DECODE() function in Oracle&lt;/b&gt;.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;/p&gt;&lt;p style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEgGHk136pMyvzcPPIoXWEq4ONSoPTfg5yhrS-n5g7vyHdJVps6YmMoZmEnf773d7lh-OyCDZ0d8J3kD40Oj6G_hAmAXnKioNq7FomSKrWhg8z1wt9dUWX1GKbJBRE2kUm8aNQTM3IrKkQt-435RKBHm7v94cgBdNnd4rv1Rsqvezl9vYMmADES79pfN=s960&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;DECODE() function in Oracle&quot; border=&quot;0&quot; data-original-height=&quot;540&quot; data-original-width=&quot;960&quot; height=&quot;225&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEgGHk136pMyvzcPPIoXWEq4ONSoPTfg5yhrS-n5g7vyHdJVps6YmMoZmEnf773d7lh-OyCDZ0d8J3kD40Oj6G_hAmAXnKioNq7FomSKrWhg8z1wt9dUWX1GKbJBRE2kUm8aNQTM3IrKkQt-435RKBHm7v94cgBdNnd4rv1Rsqvezl9vYMmADES79pfN=w400-h225&quot; title=&quot;DECODE() function in Oracle&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&lt;h2 style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;What is DECODE() Function in Oracle?&lt;/span&gt;&lt;/h2&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;Oracle DECODE is a function in Oracle which help to implement if-then-else logic in SQL query.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;span style=&quot;text-align: justify;&quot;&gt;Oracle&amp;nbsp;&lt;/span&gt;DECODE is use for transform the data to one value to another value.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;span style=&quot;text-align: justify;&quot;&gt;Oracle&amp;nbsp;&lt;/span&gt;DECODE only use for equality check logic in Oracle SQL.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;Oracle DECODE function is used in different database versions like Oracle 9i,Oracle 10g,Oracle 11g and Oracle 12c.&lt;/span&gt;&lt;/p&gt;&lt;h3&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;Syntax of DECODE() function in Oracle&lt;/span&gt;&lt;/h3&gt;&lt;p style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;DECODE(value,search_value,result,default_value)&lt;/span&gt;&lt;/pre&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;Let&#39;s understand the syntax so we can easily use the DECODE() function in Oracle SQL.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;In the DECODE() function, We pass four parameter. The first parameter is your main value or it can be your table value.Second parameter is search value which mean that&amp;nbsp; second parameter value matchs with the first parameter value if it is match then third parameter return their value otherwise fourth parameter returns their value.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;If it is not clear the let&#39;s understand with the DECODE() Examples.&lt;/span&gt;&lt;/p&gt;&lt;h3 style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;Examples of DECODE() Function in Oracle&lt;/span&gt;&lt;/h3&gt;&lt;p style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;Example 1:-&lt;/span&gt;&lt;/p&gt;&lt;div&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;pre&gt;SELECT DECODE(&#39;SQL&#39;,&#39;SQL&#39;,&#39;SQL TUTORIAL&#39;,&#39;JAVAINHAND TUTORIAL&#39;) AS DECODE_EXAMPLE_1 FROM DUAL&lt;/pre&gt;&lt;/span&gt;&lt;p style=&quot;text-align: left;&quot;&gt;&lt;/p&gt;&lt;p style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEiSGNWJOucbztkDnK_ryB_dYXWMwoxgk2hQtFXYxnpzKm_WtUVxBvnCLXMrYx5-bhB_Gjtq3ngak4nWlAKkVA9LxLSuz638_CFebMM24z3TDzu6Jr_g-3jGSxyHYCYf4K3Pzbf0R2OjvL9osxsar6VOvcyL2gZVw13Fa-uIe52DvzKDeEhdmUt28nQR=s1384&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;decode in oracle&quot; border=&quot;0&quot; data-original-height=&quot;416&quot; data-original-width=&quot;1384&quot; height=&quot;120&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEiSGNWJOucbztkDnK_ryB_dYXWMwoxgk2hQtFXYxnpzKm_WtUVxBvnCLXMrYx5-bhB_Gjtq3ngak4nWlAKkVA9LxLSuz638_CFebMM24z3TDzu6Jr_g-3jGSxyHYCYf4K3Pzbf0R2OjvL9osxsar6VOvcyL2gZVw13Fa-uIe52DvzKDeEhdmUt28nQR=w400-h120&quot; title=&quot;decode in oracle&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;In this Example, I am showing when first parameter match or equal to with the second parameter then we found third parameter as return output.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;Example 2:-&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;SELECT DECODE(&#39;SQL&#39;,&#39;SQL2&#39;,&#39;SQL TUTORIAL&#39;,&#39;JAVAINHAND TUTORIAL&#39;) AS DECODE_EXAMPLE_2 FROM DUAL&lt;/pre&gt;&lt;p style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEgCaHGcdvnhpMalIafAYDHrQZeFJt1ndMz1B9LZR8RDtKaXWoqhQ08rJoWW-bXzevoOLT7nSwFqnMjtSsygVcbs8dH1P8b6oyMwgHNDvNcWfpU8L8Knzug7qLSgu_TJ4BoQU7GOCwalZftXqNlliBp7MZOnkZY32CwRObMYKEb0q-n_vu0Rug9QhyAR=s1411&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;decode oracle&quot; border=&quot;0&quot; data-original-height=&quot;421&quot; data-original-width=&quot;1411&quot; height=&quot;119&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEgCaHGcdvnhpMalIafAYDHrQZeFJt1ndMz1B9LZR8RDtKaXWoqhQ08rJoWW-bXzevoOLT7nSwFqnMjtSsygVcbs8dH1P8b6oyMwgHNDvNcWfpU8L8Knzug7qLSgu_TJ4BoQU7GOCwalZftXqNlliBp7MZOnkZY32CwRObMYKEb0q-n_vu0Rug9QhyAR=w400-h119&quot; title=&quot;decode oracle&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;In this Example, I am showing when first parameter not match or not equal to with the second parameter then we found fourth parameter as return output.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;span style=&quot;color: red; font-family: georgia; font-size: medium;&quot;&gt;&lt;b&gt;NOTE:-&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;1. We can run DECODE function with three parameter like DECODE(value,search_value,result).&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;SELECT DECODE(&#39;SQL&#39;,&#39;SQL&#39;,&#39;SQL TUTORIAL&#39;) AS DECODE_EXAMPLE_3 FROM DUAL&lt;/span&gt;&lt;/pre&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;2. In DECODE() function if null value match with null value then it&#39;s return true.&lt;/div&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: georgia;&quot;&gt;&lt;pre style=&quot;font-size: large; text-align: justify;&quot;&gt;SELECT DECODE(&#39;&#39;,&#39;&#39;,&#39;SQL TUTORIAL&#39;) AS DECODE_EXAMPLE_4 FROM DUAL&lt;/pre&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;font-family: georgia;&quot;&gt;That&#39;s all for today, I think(&lt;/span&gt;&lt;span&gt;&lt;span style=&quot;font-family: georgia;&quot;&gt;&lt;b&gt;DECODE() Function in Oracle&lt;/b&gt;) post will be helpful for you. If you like the post then share your view in the comment box.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;/span&gt;&lt;/div&gt;&lt;p&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: justify:;&quot;&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='https://www.javainhand.com/feeds/9090492661430002622/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.javainhand.com/2022/01/decode-function-in-oracle.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/5396106166793201647/posts/default/9090492661430002622'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5396106166793201647/posts/default/9090492661430002622'/><link rel='alternate' type='text/html' href='https://www.javainhand.com/2022/01/decode-function-in-oracle.html' title='DECODE() Function in Oracle'/><author><name>Javainhand</name><uri>http://www.blogger.com/profile/18407148468637123743</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhQ3nnDdcQwtLM6n6XkSWHSA4HxZdM3QfdjZXOkMtR-KBzefO0yntF7wz-3fu0YIoPLtewEOUuVbc-QVdacHBnwv21VMe52xfcois-tRhWWk99hswJa8jjmV90TT8Bfzw/s113/javainhand.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/a/AVvXsEgGHk136pMyvzcPPIoXWEq4ONSoPTfg5yhrS-n5g7vyHdJVps6YmMoZmEnf773d7lh-OyCDZ0d8J3kD40Oj6G_hAmAXnKioNq7FomSKrWhg8z1wt9dUWX1GKbJBRE2kUm8aNQTM3IrKkQt-435RKBHm7v94cgBdNnd4rv1Rsqvezl9vYMmADES79pfN=s72-w400-h225-c" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5396106166793201647.post-2688853951518816450</id><published>2022-01-13T17:11:00.007+05:30</published><updated>2022-01-22T17:07:51.148+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="nvl2 function in oracle"/><title type='text'>NVL2() Function in Oracle</title><content type='html'>&lt;p style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;span style=&quot;text-align: justify;&quot;&gt;In this SQL Tutorial, We will explore the&amp;nbsp;&lt;/span&gt;&lt;b style=&quot;text-align: justify;&quot;&gt;NVL2() Function in Oracle&lt;/b&gt;&lt;span style=&quot;text-align: justify;&quot;&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEhzpSboPmPunwfmXAHsr7GOvpRDgzkUhqkr3hiUR_KyI6Q_VVl28RDbLVigmWzSSIUG5h3svwVK28Djz4ArKccvOPD1cCUhTiM3rZmzu9LtOV5ioj85pn1aggMEMttpfvgcA-YchSgBdlPd3cY5HbJ5TOPrEJxBdLFjek-G3QUIs8rNp0QUn5wmC_wq=s960&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;NVL2 function in oracle sql&quot; border=&quot;0&quot; data-original-height=&quot;540&quot; data-original-width=&quot;960&quot; height=&quot;225&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEhzpSboPmPunwfmXAHsr7GOvpRDgzkUhqkr3hiUR_KyI6Q_VVl28RDbLVigmWzSSIUG5h3svwVK28Djz4ArKccvOPD1cCUhTiM3rZmzu9LtOV5ioj85pn1aggMEMttpfvgcA-YchSgBdlPd3cY5HbJ5TOPrEJxBdLFjek-G3QUIs8rNp0QUn5wmC_wq=w400-h225&quot; title=&quot;NVL2 function in oracle sql&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&lt;h2 style=&quot;clear: both; text-align: justify;&quot;&gt;What is NVL2() function in Oracle?&lt;/h2&gt;&lt;div&gt;&lt;ol style=&quot;text-align: left;&quot;&gt;&lt;li style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;NVL2() is another way to handling NULL value in Oracle.&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;It is advanced version of &lt;a href=&quot;https://www.javainhand.com/2021/12/nvl-function-in-oracle.html&quot; target=&quot;_blank&quot;&gt;NVL function&lt;/a&gt;.&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;NVL2() function have functionality to handle both NULL Values and NOT NULL Values in Oracle.&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;h3 style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;Syntax of NVL2() function in Oracle&lt;/span&gt;&lt;/h3&gt;&lt;/div&gt;&lt;p style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;pre style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;nvl2(value_to_check,value_to_not_null,value_to_null);&lt;/span&gt;&lt;/pre&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;In NVL2() function used three parameter first parameter check the value if it return not null values then&amp;nbsp;second parameter executed if first parameter return null values then third parameter executed.&lt;/span&gt;&lt;/p&gt;&lt;h3 style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;Example of NVL2() function in Oracle&lt;/span&gt;&lt;/h3&gt;&lt;p style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;SELECT NVL2(&#39;Javainhand Tutorial&#39;,&#39;found&#39;,&#39;Not Found&#39;) as nvl2_example FROM DUAL;&lt;/span&gt;&lt;/pre&gt;&lt;p&gt;&lt;/p&gt;&lt;p style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEgS7xM-wI42aIW7YLrjt_wKmGfpx3LReR41tISf3anWGSkOgi1OxXs9hjvkOZAsbDkhfYBFkfYfbSSeRy17L6o7ZQ4PtV-fmhJG1gIap440Q9Hd4N9ozyKXrfmV4mvgT_I4RrrbnHbfueDphc3PhGlGnYhpy2d4o7bUVNUl4JQjJWFODDNR7ZBsz85O=s1165&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;nvl2 in oracle example&quot; border=&quot;0&quot; data-original-height=&quot;509&quot; data-original-width=&quot;1165&quot; height=&quot;175&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEgS7xM-wI42aIW7YLrjt_wKmGfpx3LReR41tISf3anWGSkOgi1OxXs9hjvkOZAsbDkhfYBFkfYfbSSeRy17L6o7ZQ4PtV-fmhJG1gIap440Q9Hd4N9ozyKXrfmV4mvgT_I4RrrbnHbfueDphc3PhGlGnYhpy2d4o7bUVNUl4JQjJWFODDNR7ZBsz85O=w400-h175&quot; title=&quot;nvl2 in oracle example&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&lt;pre&gt;SELECT NVL2(&#39;&#39;,&#39;found&#39;,&#39;Not Found&#39;) as nvl2_example FROM DUAL;&lt;/pre&gt;&lt;p&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEiRdhesPX2hRCAcnTLvmbBihDWEGgK206cnIquV73rx9f_84VDDlCmBWZ-HzORpqmkyyzP_VazA5m9LmE0ctmWIU9M7OVu8W-OQ9MVFEUkcVgbqvcqV60qw17jK3WRWpKvnBRv59t-uY4j7aLXdM-Ov_vhk-tH_vqzucN1xITxdl-iS5bVPslJIx0oz=s1126&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;nvl2 function in oracle sql with example&quot; border=&quot;0&quot; data-original-height=&quot;502&quot; data-original-width=&quot;1126&quot; height=&quot;179&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEiRdhesPX2hRCAcnTLvmbBihDWEGgK206cnIquV73rx9f_84VDDlCmBWZ-HzORpqmkyyzP_VazA5m9LmE0ctmWIU9M7OVu8W-OQ9MVFEUkcVgbqvcqV60qw17jK3WRWpKvnBRv59t-uY4j7aLXdM-Ov_vhk-tH_vqzucN1xITxdl-iS5bVPslJIx0oz=w400-h179&quot; title=&quot;nvl2 function in oracle sql with example&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;That&#39;s all for today, I think(&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: georgia;&quot;&gt;&lt;b&gt;NVL2() Function in Oracle&lt;/b&gt;) post will be helpful for you. If you like the post then share your view in the comment box.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='https://www.javainhand.com/feeds/2688853951518816450/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.javainhand.com/2022/01/nvl2-function-in-oracle.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/5396106166793201647/posts/default/2688853951518816450'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5396106166793201647/posts/default/2688853951518816450'/><link rel='alternate' type='text/html' href='https://www.javainhand.com/2022/01/nvl2-function-in-oracle.html' title='NVL2() Function in Oracle'/><author><name>Javainhand</name><uri>http://www.blogger.com/profile/18407148468637123743</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhQ3nnDdcQwtLM6n6XkSWHSA4HxZdM3QfdjZXOkMtR-KBzefO0yntF7wz-3fu0YIoPLtewEOUuVbc-QVdacHBnwv21VMe52xfcois-tRhWWk99hswJa8jjmV90TT8Bfzw/s113/javainhand.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/a/AVvXsEhzpSboPmPunwfmXAHsr7GOvpRDgzkUhqkr3hiUR_KyI6Q_VVl28RDbLVigmWzSSIUG5h3svwVK28Djz4ArKccvOPD1cCUhTiM3rZmzu9LtOV5ioj85pn1aggMEMttpfvgcA-YchSgBdlPd3cY5HbJ5TOPrEJxBdLFjek-G3QUIs8rNp0QUn5wmC_wq=s72-w400-h225-c" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5396106166793201647.post-1202200219828525308</id><published>2022-01-08T14:37:00.008+05:30</published><updated>2022-01-23T22:12:46.817+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Oracle Apex"/><category scheme="http://www.blogger.com/atom/ns#" term="oracle apex set page item value"/><title type='text'>5 Methods to Set Oracle APEX Page Item Value</title><content type='html'>&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: medium; text-align: justify;&quot;&gt;In this Oracle APEX Tutorial Session, We will explore the &lt;b&gt;5 Different Methods to Set Oracle APEX&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-family: georgia; font-size: large; text-align: justify;&quot;&gt;JavaScript&lt;/span&gt;&lt;span style=&quot;font-family: georgia; font-size: large; text-align: justify;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: georgia; font-size: large; text-align: justify;&quot;&gt;&amp;nbsp;Page Item Value.&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEiDeJgSYxWlZxoywIJJE2JfWnJT6T1zFg6PgnD2FWV0GTOtC6BU672Ih4F4xlMrDtIz4w2p43f3CmKWhs-Q4q-lWEXeeMfyqJ3vI0LF9-sSfaO5WhfTqRftb642p60WLAVgWdBqyh4-kqqmARYnh9apmV5R0jiyc9G2ZJ3hDy6K4kuInZk5FEqI86Cm=s960&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;oracle apex set page item value&quot; border=&quot;0&quot; data-original-height=&quot;540&quot; data-original-width=&quot;960&quot; height=&quot;225&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEiDeJgSYxWlZxoywIJJE2JfWnJT6T1zFg6PgnD2FWV0GTOtC6BU672Ih4F4xlMrDtIz4w2p43f3CmKWhs-Q4q-lWEXeeMfyqJ3vI0LF9-sSfaO5WhfTqRftb642p60WLAVgWdBqyh4-kqqmARYnh9apmV5R0jiyc9G2ZJ3hDy6K4kuInZk5FEqI86Cm=w400-h225&quot; title=&quot;oracle apex set page item value&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&lt;h1 style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;5 Different Ways to Set Oracle APEX Page Item Value using Javascript&lt;/span&gt;&lt;/h1&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;$(&quot;#P28_SECOND&quot; ).val(20);
$x(&quot;P28_SECOND&quot;).value = 30;
document.getElementById(&#39;P28_SECOND&#39;).value=40;
apex.item(&#39;P28_SECOND&#39;).setValue(50);
apex.items.P28_SECOND.value=60;&lt;/span&gt;&lt;/pre&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;I hope the above JavaScript Code will help you out to &lt;b&gt;Set Oracle APEX page item values with different methods&lt;/b&gt;. If you learn something for this blog then please share this post to your social sites and others plateforms.&lt;/div&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='https://www.javainhand.com/feeds/1202200219828525308/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.javainhand.com/2022/01/5-methods-to-set-oracle-apex-page-item-value.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/5396106166793201647/posts/default/1202200219828525308'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5396106166793201647/posts/default/1202200219828525308'/><link rel='alternate' type='text/html' href='https://www.javainhand.com/2022/01/5-methods-to-set-oracle-apex-page-item-value.html' title='5 Methods to Set Oracle APEX Page Item Value'/><author><name>Javainhand</name><uri>http://www.blogger.com/profile/18407148468637123743</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhQ3nnDdcQwtLM6n6XkSWHSA4HxZdM3QfdjZXOkMtR-KBzefO0yntF7wz-3fu0YIoPLtewEOUuVbc-QVdacHBnwv21VMe52xfcois-tRhWWk99hswJa8jjmV90TT8Bfzw/s113/javainhand.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/a/AVvXsEiDeJgSYxWlZxoywIJJE2JfWnJT6T1zFg6PgnD2FWV0GTOtC6BU672Ih4F4xlMrDtIz4w2p43f3CmKWhs-Q4q-lWEXeeMfyqJ3vI0LF9-sSfaO5WhfTqRftb642p60WLAVgWdBqyh4-kqqmARYnh9apmV5R0jiyc9G2ZJ3hDy6K4kuInZk5FEqI86Cm=s72-w400-h225-c" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5396106166793201647.post-6069089293445145224</id><published>2022-01-06T13:55:00.005+05:30</published><updated>2022-01-23T22:10:57.052+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Get Oarcle APEX Page Item Value"/><category scheme="http://www.blogger.com/atom/ns#" term="Oracle Apex"/><title type='text'>5 Methods to Get Oarcle APEX Page Item Value</title><content type='html'>&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;In this &lt;b&gt;Oracle APEX Tutorial&lt;/b&gt; Session, We will explore the &lt;b&gt;5 Different Methods to Get Oracle APEX JavaScript Page Item Value&lt;/b&gt;.&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEgb10cVrXIYrZvQ7DKKEzD2HmJ72CfpIAeXBKX8ILfBxVdAuSa0_pIvROVQNVoTq4HCumCgeWMQGkLcZV6v9JwWN0w8-yOzK-OvsMbwMF2af2MaL9Inv85_1l3EDbn0f--NLfw8nTzaQJlLQy2So4ZOoEVvPXi-nh8NlPr7PjzwHraORi0pn9oFwCsA=s960&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;5 Different Ways to Get Oracle APEX Page Item Value&quot; border=&quot;0&quot; data-original-height=&quot;540&quot; data-original-width=&quot;960&quot; height=&quot;225&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEgb10cVrXIYrZvQ7DKKEzD2HmJ72CfpIAeXBKX8ILfBxVdAuSa0_pIvROVQNVoTq4HCumCgeWMQGkLcZV6v9JwWN0w8-yOzK-OvsMbwMF2af2MaL9Inv85_1l3EDbn0f--NLfw8nTzaQJlLQy2So4ZOoEVvPXi-nh8NlPr7PjzwHraORi0pn9oFwCsA=w400-h225&quot; title=&quot;5 Different Ways to Get Oracle APEX Page Item Value&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;h1 style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;5 Different Ways to Get Oracle APEX Page Item Value using Javascript&lt;/span&gt;&lt;/h1&gt;&lt;p style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;$(&quot;#P28_FIRST&quot; ).val();
$v(&#39;P28_FIRST&#39;);
document.getElementById(&#39;P28_FIRST&#39;).value;
apex.item(&#39;P28_FIRST&#39;).getValue();
apex.items.P28_FIRST.value;&lt;/span&gt;&lt;/pre&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;I hope the above JavaScript Code will help you out to &lt;b&gt;get Oracle APEX page item values with different methods&lt;/b&gt;. If you learn something for this blog then please share this post to your social sites and others plateforms.&lt;/div&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='https://www.javainhand.com/feeds/6069089293445145224/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.javainhand.com/2022/01/5-methods-to-get-oarcle-apex-page-item-value.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/5396106166793201647/posts/default/6069089293445145224'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5396106166793201647/posts/default/6069089293445145224'/><link rel='alternate' type='text/html' href='https://www.javainhand.com/2022/01/5-methods-to-get-oarcle-apex-page-item-value.html' title='5 Methods to Get Oarcle APEX Page Item Value'/><author><name>Javainhand</name><uri>http://www.blogger.com/profile/18407148468637123743</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhQ3nnDdcQwtLM6n6XkSWHSA4HxZdM3QfdjZXOkMtR-KBzefO0yntF7wz-3fu0YIoPLtewEOUuVbc-QVdacHBnwv21VMe52xfcois-tRhWWk99hswJa8jjmV90TT8Bfzw/s113/javainhand.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/a/AVvXsEgb10cVrXIYrZvQ7DKKEzD2HmJ72CfpIAeXBKX8ILfBxVdAuSa0_pIvROVQNVoTq4HCumCgeWMQGkLcZV6v9JwWN0w8-yOzK-OvsMbwMF2af2MaL9Inv85_1l3EDbn0f--NLfw8nTzaQJlLQy2So4ZOoEVvPXi-nh8NlPr7PjzwHraORi0pn9oFwCsA=s72-w400-h225-c" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5396106166793201647.post-7969012736310189169</id><published>2021-12-25T18:04:00.003+05:30</published><updated>2022-01-25T21:34:48.077+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="NVL() Function in Oracle"/><category scheme="http://www.blogger.com/atom/ns#" term="SQL"/><title type='text'>NVL() Function in Oracle</title><content type='html'>&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;In this SQL Tutorial, We will explore the &lt;b&gt;NVL() Function in Oracle&lt;/b&gt;.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;/p&gt;&lt;p style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEievgGmrcGLEjSh5Mh3S6PDs578PtKjRibU4KIHCTPj1shzZST7qW5PgEttSdxTFafKKor1hlfT5iUHmTa8pR8WHpDQ-XNIinhSzRDsIjBp8PF90LhWwiQevjv9kWAcmaWTu9c7VWAtCFvaXI1LKaN-2LEdEL_ZBZld6Sm1S-5zM1Cebz1xYJ3iGBup=s960&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;NVL() Function in Oracle SQL&quot; border=&quot;0&quot; data-original-height=&quot;540&quot; data-original-width=&quot;960&quot; height=&quot;225&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEievgGmrcGLEjSh5Mh3S6PDs578PtKjRibU4KIHCTPj1shzZST7qW5PgEttSdxTFafKKor1hlfT5iUHmTa8pR8WHpDQ-XNIinhSzRDsIjBp8PF90LhWwiQevjv9kWAcmaWTu9c7VWAtCFvaXI1LKaN-2LEdEL_ZBZld6Sm1S-5zM1Cebz1xYJ3iGBup=w400-h225&quot; title=&quot;NVL() Function in Oracle SQL&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&lt;h2 style=&quot;clear: both; text-align: justify;&quot;&gt;What is NVL() Function in Oracle?&lt;/h2&gt;&lt;p style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;NVL() is used to replace&amp;nbsp; NULL string with another string or you can say in the simple words that NVL is a function for handling NULL values in the table.&lt;/span&gt;&lt;/p&gt;&lt;h3 style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;Syntax of NVL() function in Oracle&lt;/span&gt;&lt;/h3&gt;&lt;p style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;/p&gt;&lt;pre&gt;NVL(Argument1,Argument2)&lt;/pre&gt;&lt;h3 style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;Example of NVL() function in Oracle&lt;/span&gt;&lt;/h3&gt;&lt;p style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;/p&gt;&lt;pre&gt;select NVL(SAL,0) from EMP&lt;/pre&gt;&lt;p style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;Let&#39;s compare, When we are not using NVL() function in the SQL statement and when we are using the NVL() function in SQL statement. The below image will show&amp;nbsp; the difference to you.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: left;&quot;&gt;&lt;/p&gt;&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEi0Jb2JDcVHi-ZcJ1dylIApxh1fdrojjZolAYtBPQ3dF6zh1wqAskRVatLvqiATGcD63j6Qx-LdHIahrQ2qbaNnBY87BPMWIo7w8vTtWI-iBhMcQnR2hYOkh8yBEq3Xskzpd4uv5nMWRpobQkpvHHI2Eeg3GeddBqQDGbufGGJMeSmD4nnDr_Jc6K4V=s1240&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img alt=&quot;nvl() function in oracle example&quot; border=&quot;0&quot; data-original-height=&quot;607&quot; data-original-width=&quot;1240&quot; height=&quot;196&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEi0Jb2JDcVHi-ZcJ1dylIApxh1fdrojjZolAYtBPQ3dF6zh1wqAskRVatLvqiATGcD63j6Qx-LdHIahrQ2qbaNnBY87BPMWIo7w8vTtWI-iBhMcQnR2hYOkh8yBEq3Xskzpd4uv5nMWRpobQkpvHHI2Eeg3GeddBqQDGbufGGJMeSmD4nnDr_Jc6K4V=w400-h196&quot; title=&quot;nvl() function in oracle example&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Image 1&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEgGkiBFFjSyWshDPgVj_RbfGC0iJnIh5OG4rEsgVeVmA5yKtgDQPCZnaLkKoypASmAYBBHzthyOjp61bT6w8-LRuHBDhBDricIo4l7AyMBv9w9cI595yPtYmmYUIum8UrBD7BgazW0BRtmhUSWWkxTfFgutcwLj3nZ88qF-cIcDa8WCRYJN9NyxqHPB=s1106&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img alt=&quot;nvl function in oracle sql with example&quot; border=&quot;0&quot; data-original-height=&quot;593&quot; data-original-width=&quot;1106&quot; height=&quot;215&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEgGkiBFFjSyWshDPgVj_RbfGC0iJnIh5OG4rEsgVeVmA5yKtgDQPCZnaLkKoypASmAYBBHzthyOjp61bT6w8-LRuHBDhBDricIo4l7AyMBv9w9cI595yPtYmmYUIum8UrBD7BgazW0BRtmhUSWWkxTfFgutcwLj3nZ88qF-cIcDa8WCRYJN9NyxqHPB=w400-h215&quot; title=&quot;nvl function in oracle sql with example&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Image 2&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;p&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;Important Note:&lt;/span&gt;-&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;1)In the NVL function we have two arguments and both are required.if you missed any arguments in the NVL() function the oracle will return a syntax error(ORA-00936: missing expression).&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;pre&gt;Select NVL(,0) from dual---ORA-00936: missing expression--&lt;/pre&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;2)In the NVL function, we have same datatype values otherwise oracle will return an error(ORA-01722: invalid number).&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;/p&gt;&lt;pre&gt;Select NVL(0,&#39;A&#39;) from dual&lt;/pre&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;3) If you don&#39;t want to above error the convert values in the same datatype.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;pre&gt;Select NVL(to_char(0),&#39;A&#39;) from dual&lt;/pre&gt;&lt;p&gt;&lt;/p&gt;&lt;/div&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;font-family: georgia;&quot;&gt;That&#39;s all for today, I think(&lt;/span&gt;&lt;span&gt;&lt;span style=&quot;font-family: georgia;&quot;&gt;&lt;b&gt;NVL() Function in Oracle with Example&lt;/b&gt;) post will be helpful for you. If you like the post then share your view in the comment box.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='https://www.javainhand.com/feeds/7969012736310189169/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.javainhand.com/2021/12/nvl-function-in-oracle.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/5396106166793201647/posts/default/7969012736310189169'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5396106166793201647/posts/default/7969012736310189169'/><link rel='alternate' type='text/html' href='https://www.javainhand.com/2021/12/nvl-function-in-oracle.html' title='NVL() Function in Oracle'/><author><name>Javainhand</name><uri>http://www.blogger.com/profile/18407148468637123743</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhQ3nnDdcQwtLM6n6XkSWHSA4HxZdM3QfdjZXOkMtR-KBzefO0yntF7wz-3fu0YIoPLtewEOUuVbc-QVdacHBnwv21VMe52xfcois-tRhWWk99hswJa8jjmV90TT8Bfzw/s113/javainhand.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/a/AVvXsEievgGmrcGLEjSh5Mh3S6PDs578PtKjRibU4KIHCTPj1shzZST7qW5PgEttSdxTFafKKor1hlfT5iUHmTa8pR8WHpDQ-XNIinhSzRDsIjBp8PF90LhWwiQevjv9kWAcmaWTu9c7VWAtCFvaXI1LKaN-2LEdEL_ZBZld6Sm1S-5zM1Cebz1xYJ3iGBup=s72-w400-h225-c" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5396106166793201647.post-1529501356397541685</id><published>2021-11-08T23:05:00.003+05:30</published><updated>2023-07-19T14:26:41.949+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="PL/SQL Program to Print Half Pyramid Using Numbers"/><category scheme="http://www.blogger.com/atom/ns#" term="PLSQL"/><title type='text'>PL/SQL Program to Print Half Pyramid Using Numbers-Javainhand Tutorial</title><content type='html'>&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;In this PL/SQL Tutorial, We will explore how to Print Half Pyramid Using Numbers in PL/SQL.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEgQ7CT25SjL8DPXGKO2lNuTo2M8S45coI9rcLtRQpwDl85a-XhPQncqcGbouFUPJgGXL57Pio7L2ePY_5ZoJ_gqxXZ7eaucjs3-h27Bxfm0uxc-3SLT5vUU4kPQ5piYOn6C0Lpwq6mvma625nXm-qmVMDW3JwzXZS4H7gZM8SEMkE0KaBojWGPfTBY2=s1325&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;Print Half Pyramid Using Numbers in PL/SQL&quot; border=&quot;0&quot; data-original-height=&quot;364&quot; data-original-width=&quot;1325&quot; height=&quot;110&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEgQ7CT25SjL8DPXGKO2lNuTo2M8S45coI9rcLtRQpwDl85a-XhPQncqcGbouFUPJgGXL57Pio7L2ePY_5ZoJ_gqxXZ7eaucjs3-h27Bxfm0uxc-3SLT5vUU4kPQ5piYOn6C0Lpwq6mvma625nXm-qmVMDW3JwzXZS4H7gZM8SEMkE0KaBojWGPfTBY2=w400-h110&quot; title=&quot;Print Half Pyramid Using Numbers in PL/SQL&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;PL/SQL Code:-&lt;/span&gt;&lt;p&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;/p&gt;&lt;pre&gt;declare
v_number number:=5;
begin
    for i in 1..v_number
    loop
            for j in 1..i
            loop
            dbms_output.put(j);
            end loop;
    DBMS_OUTPUT.NEW_LINE;
    end loop;
end;&lt;/pre&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;That&#39;s all for today, I think(Print Half Pyramid Using Numbers in PL/SQL Program) post will be helpful for you. If you like the post then share your view in the comment box.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='https://www.javainhand.com/feeds/1529501356397541685/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.javainhand.com/2021/11/plsql-program-to-print-half-pyramid-using-numbers.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/5396106166793201647/posts/default/1529501356397541685'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5396106166793201647/posts/default/1529501356397541685'/><link rel='alternate' type='text/html' href='https://www.javainhand.com/2021/11/plsql-program-to-print-half-pyramid-using-numbers.html' title='PL/SQL Program to Print Half Pyramid Using Numbers-Javainhand Tutorial'/><author><name>Javainhand</name><uri>http://www.blogger.com/profile/18407148468637123743</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhQ3nnDdcQwtLM6n6XkSWHSA4HxZdM3QfdjZXOkMtR-KBzefO0yntF7wz-3fu0YIoPLtewEOUuVbc-QVdacHBnwv21VMe52xfcois-tRhWWk99hswJa8jjmV90TT8Bfzw/s113/javainhand.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/a/AVvXsEgQ7CT25SjL8DPXGKO2lNuTo2M8S45coI9rcLtRQpwDl85a-XhPQncqcGbouFUPJgGXL57Pio7L2ePY_5ZoJ_gqxXZ7eaucjs3-h27Bxfm0uxc-3SLT5vUU4kPQ5piYOn6C0Lpwq6mvma625nXm-qmVMDW3JwzXZS4H7gZM8SEMkE0KaBojWGPfTBY2=s72-w400-h110-c" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5396106166793201647.post-583008764385429258</id><published>2021-11-08T14:31:00.005+05:30</published><updated>2023-07-19T14:26:52.893+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="PLSQL"/><category scheme="http://www.blogger.com/atom/ns#" term="Print the Inverted Right Triangle Star Pattern in PL/SQL"/><title type='text'>PL/SQL Program to Print the Inverted Right Triangle Star Pattern- Javainhand Tutorial</title><content type='html'>&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;In this PL/SQL Tutorial, We will explore how to print inverted right triangle start pattern in PL/SQL.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEg_S_hBIBzDZ6e56UDC4eSuIUT6U40bqPAqyiUqFOHiBZZvT1OgMCpSt4fj_3XV03QpBYoKa3XVDTxUUH8qhC2X1VYABvye9TMnzOIEGUy3acuTeR_TAmwAUAgWHAeDTZNoBkn-xAlKws27hfskF4wqhYJPmXIdJ69z_7DrNjryvNmCwarhF5bh_JqM=s1569&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;how to print inverted right triangle start pattern in PL/SQL&quot; border=&quot;0&quot; data-original-height=&quot;736&quot; data-original-width=&quot;1569&quot; height=&quot;188&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEg_S_hBIBzDZ6e56UDC4eSuIUT6U40bqPAqyiUqFOHiBZZvT1OgMCpSt4fj_3XV03QpBYoKa3XVDTxUUH8qhC2X1VYABvye9TMnzOIEGUy3acuTeR_TAmwAUAgWHAeDTZNoBkn-xAlKws27hfskF4wqhYJPmXIdJ69z_7DrNjryvNmCwarhF5bh_JqM=w400-h188&quot; title=&quot;how to print inverted right triangle start pattern in PL/SQL&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;PL/SQL Code:-&lt;/span&gt;&lt;p&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;declare
v_number number:=5;
begin
    for i in 1..v_number
    loop
            for j in 1..v_number-i+1
            loop
            dbms_output.put(&#39;*&#39;);
            end loop;
    DBMS_OUTPUT.NEW_LINE;
    end loop;
end;&lt;/span&gt;&lt;/pre&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;That&#39;s all for today, I think(&lt;b&gt;Print the Inverted Right Triangle Star Pattern in PL/SQL Program&lt;/b&gt;) post will be helpful for you. If you like the post then share your view in the comment box.&lt;/p&gt;&lt;/span&gt;&lt;p&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='https://www.javainhand.com/feeds/583008764385429258/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.javainhand.com/2021/11/plsql-program-to-print-inverted-right-triangle-start-pattern.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/5396106166793201647/posts/default/583008764385429258'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5396106166793201647/posts/default/583008764385429258'/><link rel='alternate' type='text/html' href='https://www.javainhand.com/2021/11/plsql-program-to-print-inverted-right-triangle-start-pattern.html' title='PL/SQL Program to Print the Inverted Right Triangle Star Pattern- Javainhand Tutorial'/><author><name>Javainhand</name><uri>http://www.blogger.com/profile/18407148468637123743</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhQ3nnDdcQwtLM6n6XkSWHSA4HxZdM3QfdjZXOkMtR-KBzefO0yntF7wz-3fu0YIoPLtewEOUuVbc-QVdacHBnwv21VMe52xfcois-tRhWWk99hswJa8jjmV90TT8Bfzw/s113/javainhand.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/a/AVvXsEg_S_hBIBzDZ6e56UDC4eSuIUT6U40bqPAqyiUqFOHiBZZvT1OgMCpSt4fj_3XV03QpBYoKa3XVDTxUUH8qhC2X1VYABvye9TMnzOIEGUy3acuTeR_TAmwAUAgWHAeDTZNoBkn-xAlKws27hfskF4wqhYJPmXIdJ69z_7DrNjryvNmCwarhF5bh_JqM=s72-w400-h188-c" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5396106166793201647.post-2001373960652092867</id><published>2021-11-07T15:33:00.004+05:30</published><updated>2023-07-19T14:27:03.038+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="PLSQL"/><category scheme="http://www.blogger.com/atom/ns#" term="Print Rectangular Star Pattern in PL/SQL Program"/><title type='text'>PL/SQL Program To Print Rectangular Star Pattern Part 2 - Javainhand Tutorial</title><content type='html'>&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&amp;nbsp;&lt;span&gt;In this Tutorial, We will learn to make&amp;nbsp;&lt;/span&gt;&lt;span&gt;&lt;b&gt;Rectangular&lt;/b&gt;&amp;nbsp;&lt;/span&gt;&lt;b&gt;Star in PL/SQL Program&lt;/b&gt;&lt;span&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: georgia;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEiQ7_4JsIaX3CKuaxRTaAJkcMMwjAh56tmm9DDfOzODtTieqh1fbV7Y69In5L3z7ptkjJOCy_-sHLc6eulNRObqyodN3VWvsXr6e6Nk3vQ-14H-nDAIzxyWc4yVPcrqxLf_c2Fw79_KhLH-8fPodOISM30vtlFxNfASTuoT_Jzr9R6ste0RrdQLTDBM=s1914&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;Rectangular Star in PL/SQL Program&quot; border=&quot;0&quot; data-original-height=&quot;878&quot; data-original-width=&quot;1914&quot; height=&quot;184&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEiQ7_4JsIaX3CKuaxRTaAJkcMMwjAh56tmm9DDfOzODtTieqh1fbV7Y69In5L3z7ptkjJOCy_-sHLc6eulNRObqyodN3VWvsXr6e6Nk3vQ-14H-nDAIzxyWc4yVPcrqxLf_c2Fw79_KhLH-8fPodOISM30vtlFxNfASTuoT_Jzr9R6ste0RrdQLTDBM=w400-h184&quot; title=&quot;Rectangular Star in PL/SQL Program&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: georgia;&quot;&gt;&lt;br /&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;PL/SQL Code:-&lt;/span&gt;&lt;/span&gt;&lt;pre&gt;&lt;span style=&quot;font-family: georgia;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;declare
v_number number:=5;
begin
    for row in 1..v_number
    loop
            for col in 1..v_number 
            loop
            dbms_output.put(&#39;*&#39;);
            end loop;
    DBMS_OUTPUT.NEW_LINE;
    end loop;
end;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;font-family: georgia;&quot;&gt;That&#39;s all for today, I think( &lt;b&gt;Print&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-family: georgia;&quot;&gt;&lt;b&gt;Rectangular&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: georgia;&quot;&gt;&lt;b&gt;Star Pattern in PL/SQL Program&lt;/b&gt;) post will be helpful for you. If you like the post then share your view in the comment box.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='https://www.javainhand.com/feeds/2001373960652092867/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.javainhand.com/2021/11/plsql-program-to-print-rectangular-star.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/5396106166793201647/posts/default/2001373960652092867'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5396106166793201647/posts/default/2001373960652092867'/><link rel='alternate' type='text/html' href='https://www.javainhand.com/2021/11/plsql-program-to-print-rectangular-star.html' title='PL/SQL Program To Print Rectangular Star Pattern Part 2 - Javainhand Tutorial'/><author><name>Javainhand</name><uri>http://www.blogger.com/profile/18407148468637123743</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhQ3nnDdcQwtLM6n6XkSWHSA4HxZdM3QfdjZXOkMtR-KBzefO0yntF7wz-3fu0YIoPLtewEOUuVbc-QVdacHBnwv21VMe52xfcois-tRhWWk99hswJa8jjmV90TT8Bfzw/s113/javainhand.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/a/AVvXsEiQ7_4JsIaX3CKuaxRTaAJkcMMwjAh56tmm9DDfOzODtTieqh1fbV7Y69In5L3z7ptkjJOCy_-sHLc6eulNRObqyodN3VWvsXr6e6Nk3vQ-14H-nDAIzxyWc4yVPcrqxLf_c2Fw79_KhLH-8fPodOISM30vtlFxNfASTuoT_Jzr9R6ste0RrdQLTDBM=s72-w400-h184-c" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5396106166793201647.post-8754662551321943116</id><published>2021-11-07T15:20:00.004+05:30</published><updated>2023-07-19T14:27:14.217+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="PLSQL"/><category scheme="http://www.blogger.com/atom/ns#" term="Print Star Pattern in PLSQL Program"/><title type='text'>PL/SQL Program To Print Star Pattern Part 1 - Javainhand Tutorial</title><content type='html'>&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;In this Tutorial, We will learn to make &lt;b&gt;Star Triangle in PL/SQL Program&lt;/b&gt;.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEhTBF4bIQk3UjL25w2zUXn8K-dFm0Eq7wagVyRwL900s-zoutziOz5Cix5K9jN3RloGOJ69FyOEUypZbg94JGhsZ_2Y_WYA4mPEcD1XLYpOXkCizC2xL4ifNWWNfFEcTeS_fyg8VALg75bX5wNy2b7whvDpx43vB-XL-EOPzLRfx_gxllDimjCBzhw_=s1600&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;Star Triangle in PLSQL Program&quot; border=&quot;0&quot; data-original-height=&quot;900&quot; data-original-width=&quot;1600&quot; height=&quot;225&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEhTBF4bIQk3UjL25w2zUXn8K-dFm0Eq7wagVyRwL900s-zoutziOz5Cix5K9jN3RloGOJ69FyOEUypZbg94JGhsZ_2Y_WYA4mPEcD1XLYpOXkCizC2xL4ifNWWNfFEcTeS_fyg8VALg75bX5wNy2b7whvDpx43vB-XL-EOPzLRfx_gxllDimjCBzhw_=w400-h225&quot; title=&quot;Star Triangle in PLSQL Program&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;PL/SQL Code:-&lt;/span&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;declare
v_number number:=5; //Pass Your Number
begin
    for row in 1..v_number
    loop
            for col in 1..row 
            loop
            dbms_output.put(&#39;*&#39;);
            end loop;
    DBMS_OUTPUT.NEW_LINE;
    end loop;

end;&lt;/span&gt;&lt;/pre&gt;&lt;p style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;span&gt;That&#39;s all for today, I think(&lt;/span&gt;&lt;span&gt;&lt;b&gt;&amp;nbsp;Print Star Pattern in PL/SQL Program&lt;/b&gt;) post will be helpful for you. If you like the post then share your view in the comment box.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='https://www.javainhand.com/feeds/8754662551321943116/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.javainhand.com/2021/11/plsql-program-to-print-star-pattern.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/5396106166793201647/posts/default/8754662551321943116'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5396106166793201647/posts/default/8754662551321943116'/><link rel='alternate' type='text/html' href='https://www.javainhand.com/2021/11/plsql-program-to-print-star-pattern.html' title='PL/SQL Program To Print Star Pattern Part 1 - Javainhand Tutorial'/><author><name>Javainhand</name><uri>http://www.blogger.com/profile/18407148468637123743</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhQ3nnDdcQwtLM6n6XkSWHSA4HxZdM3QfdjZXOkMtR-KBzefO0yntF7wz-3fu0YIoPLtewEOUuVbc-QVdacHBnwv21VMe52xfcois-tRhWWk99hswJa8jjmV90TT8Bfzw/s113/javainhand.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/a/AVvXsEhTBF4bIQk3UjL25w2zUXn8K-dFm0Eq7wagVyRwL900s-zoutziOz5Cix5K9jN3RloGOJ69FyOEUypZbg94JGhsZ_2Y_WYA4mPEcD1XLYpOXkCizC2xL4ifNWWNfFEcTeS_fyg8VALg75bX5wNy2b7whvDpx43vB-XL-EOPzLRfx_gxllDimjCBzhw_=s72-w400-h225-c" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5396106166793201647.post-7870132674181552432</id><published>2021-10-21T22:15:00.006+05:30</published><updated>2023-07-19T14:27:27.424+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Generate Text File in Oracle"/><category scheme="http://www.blogger.com/atom/ns#" term="PLSQL"/><title type='text'>How To Generate Text File in Oracle - Javainhand Tutorial</title><content type='html'>&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;In this Session, We will explore the Generate a Text File using UTL_FILE in Oracle PL/SQL.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;The Following Steps to be needed for Generating Text file in Oracle.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;ol style=&quot;text-align: left;&quot;&gt;&lt;li&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;Create Directory&amp;nbsp;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;Create Function (&lt;b&gt;CLOB TO BLOB in Oracle&lt;/b&gt;)&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;Create Procedure for Generate TEXT file to the System Directory&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;h1 style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;How to Generate a Text File using UTL_FILE in Oracle PL/SQL&lt;/span&gt;&lt;/h1&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;Step 1:- Create a Folder to your local system. In my case, I have created an image folder to E directory. The following screenshot will help.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;/p&gt;&lt;p style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEhHDRAzQ_xSKOcilLGGb2rHHkkNvFL1kH3LpWuS6eRfjznYxdpruOw6MH558dSBhRRhutzO03XGZV4LGUlp3piVS1nGKzW5j2lh7w8MH_hsEJ9Hn7QRxTyNpprkOn5RjVnQ8CeCtj9YE5Faa1qZ58sHnr84j5fIE52PH94mdG7wRyEzZAcIluZpBl2M=s640&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;91&quot; data-original-width=&quot;640&quot; height=&quot;92&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEhHDRAzQ_xSKOcilLGGb2rHHkkNvFL1kH3LpWuS6eRfjznYxdpruOw6MH558dSBhRRhutzO03XGZV4LGUlp3piVS1nGKzW5j2lh7w8MH_hsEJ9Hn7QRxTyNpprkOn5RjVnQ8CeCtj9YE5Faa1qZ58sHnr84j5fIE52PH94mdG7wRyEzZAcIluZpBl2M=w640-h92&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;Step 2:-Open SQL Developer or CMD connect to the database with SYS User and RUN the following commands.&lt;/div&gt;&lt;/span&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;pre&gt;create directory upload_image_dir as &#39;E:\upload_images&#39;;
grant read or write on directory upload_image_dir  to anonymous;
grant read or write on directory upload_image_dir  to admin;&lt;/pre&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;Step3:- Create a function which convert &lt;b&gt;clob data to blob file in Oracle&lt;/b&gt;. Use the following function.&lt;/div&gt;&lt;/span&gt;&lt;p&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;create or replace FUNCTION clob_to_blob (p_data  IN  CLOB)
  RETURN BLOB
AS
  l_blob         BLOB;
  l_dest_offset  PLS_INTEGER := 1;
  l_src_offset   PLS_INTEGER := 1;
  l_lang_context PLS_INTEGER := DBMS_LOB.default_lang_ctx;
  l_warning      PLS_INTEGER := DBMS_LOB.warn_inconvertible_char;
BEGIN

  DBMS_LOB.createtemporary(
    lob_loc =&amp;gt; l_blob,
    cache   =&amp;gt; TRUE);

  DBMS_LOB.converttoblob(
   dest_lob      =&amp;gt; l_blob,
   src_clob      =&amp;gt; p_data,
   amount        =&amp;gt; DBMS_LOB.lobmaxsize,
   dest_offset   =&amp;gt; l_dest_offset,
   src_offset    =&amp;gt; l_src_offset, 
   blob_csid     =&amp;gt; DBMS_LOB.default_csid,
   lang_context  =&amp;gt; l_lang_context,
   warning       =&amp;gt; l_warning);

   RETURN l_blob;
END;
&lt;/span&gt;&lt;/pre&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;Step 4:- Create a SaveFile Procedure. Use the Following Procedure&lt;/span&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;pre&gt;create or replace PROCEDURE SaveFile(
     FileContent IN OUT NOCOPY BLOB
   , FolderName IN VARCHAR2
   , FileName IN VARCHAR2)
IS
    BUFFER RAW(1024);
    OFFSET PLS_INTEGER := 1;
    FileLength PLS_INTEGER;
    amount PLS_INTEGER := 1024;
    fhandle UTL_FILE.FILE_TYPE;
BEGIN
    FileLength := DBMS_LOB.GETLENGTH(FileContent);
    fhandle := UTL_FILE.FOPEN(FolderName, FileName,&#39;wb&#39;, 32767);         
    LOOP
        EXIT WHEN OFFSET &amp;gt; FileLength;
        DBMS_LOB.READ(FileContent, amount, OFFSET, BUFFER);
        UTL_FILE.PUT_RAW(fhandle, BUFFER, TRUE);
        OFFSET := OFFSET + amount;
    END LOOP;
    UTL_FILE.FCLOSE (fhandle);
EXCEPTION
    WHEN OTHERS THEN
        IF UTL_FILE.IS_OPEN(fhandle) THEN
            UTL_FILE.FCLOSE(fhandle);
        END IF;
    RAISE;
END SaveFile;
&lt;/pre&gt;&lt;/span&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;Step 5:- Create a GENERATE_FILE procedure. Use following procedure.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;
&lt;/span&gt;&lt;/p&gt;&lt;pre style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;create or replace PROCEDURE GENERATE_FILE
(P_TEXT IN VARCHAR2,P_DIRECTORY_NAME IN VARCHAR2, P_FILE_NAME IN VARCHAR2)
AS
V_FILE BLOB;
V_FILENAME VARCHAR2(500):=P_FILE_NAME||&#39;.txt&#39;;
V_CLOB CLOB:=P_TEXT;
BEGIN
		BEGIN
		SELECT CLOB_TO_BLOB(V_CLOB) INTO V_FILE FROM dual;
		EXCEPTION WHEN OTHERS THEN
		V_FILE:=NULL;
		END;
        
	    IF V_FILE IS NOT NULL AND V_FILENAME IS NOT NULL THEN
		SAVEFILE(V_FILE,P_DIRECTORY_NAME,V_FILENAME);
		ELSE
		dbms_output.put_line(&#39;Text File Not Generate&#39;);
		END IF;
END;
&lt;/span&gt;&lt;/pre&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;Step 6:- Now call GENERATE_FILE procedure with the parameters. Use the following code.&lt;/p&gt;&lt;/span&gt;&lt;p&gt;&lt;/p&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;pre&gt;BEGIN
GENERATE_FILE(&#39;This is text file&#39;,&#39;upload_image_dir&#39;,&#39;test&#39;);
END;&lt;/pre&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: medium; text-align: left;&quot;&gt;&lt;span&gt;That&#39;s all for today, I think(&lt;/span&gt;&lt;span&gt;&lt;b&gt;Generate Text File in Oracle&lt;/b&gt;) post will be helpful for you. If you like the post then share your view in the comment box.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;Please support our&amp;nbsp;&lt;a href=&quot;https://www.youtube.com/javainhand&quot; target=&quot;_blank&quot;&gt;youtube channel&lt;/a&gt;&amp;nbsp;so we will upload more&amp;nbsp;&lt;a href=&quot;https://www.javainhand.com/&quot; target=&quot;_blank&quot;&gt;Oracle APEX Tutorial&lt;/a&gt;&amp;nbsp;videos and blogs.&lt;/span&gt;&lt;/p&gt;&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='https://www.javainhand.com/feeds/7870132674181552432/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.javainhand.com/2021/10/how-to-generate-text-file-in-oracle.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/5396106166793201647/posts/default/7870132674181552432'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5396106166793201647/posts/default/7870132674181552432'/><link rel='alternate' type='text/html' href='https://www.javainhand.com/2021/10/how-to-generate-text-file-in-oracle.html' title='How To Generate Text File in Oracle - Javainhand Tutorial'/><author><name>Javainhand</name><uri>http://www.blogger.com/profile/18407148468637123743</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhQ3nnDdcQwtLM6n6XkSWHSA4HxZdM3QfdjZXOkMtR-KBzefO0yntF7wz-3fu0YIoPLtewEOUuVbc-QVdacHBnwv21VMe52xfcois-tRhWWk99hswJa8jjmV90TT8Bfzw/s113/javainhand.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/a/AVvXsEhHDRAzQ_xSKOcilLGGb2rHHkkNvFL1kH3LpWuS6eRfjznYxdpruOw6MH558dSBhRRhutzO03XGZV4LGUlp3piVS1nGKzW5j2lh7w8MH_hsEJ9Hn7QRxTyNpprkOn5RjVnQ8CeCtj9YE5Faa1qZ58sHnr84j5fIE52PH94mdG7wRyEzZAcIluZpBl2M=s72-w640-h92-c" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5396106166793201647.post-2881070803978760210</id><published>2021-10-08T15:55:00.015+05:30</published><updated>2021-10-11T17:33:22.789+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Flip Region in Oracle APEX"/><category scheme="http://www.blogger.com/atom/ns#" term="Oracle Apex"/><title type='text'>Flip Region in Oracle APEX - Javainhand Tutorial</title><content type='html'>&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;In this &lt;b&gt;Oracle APEX Tutorial&lt;/b&gt;, We will explore the &lt;b&gt;Flip Region in Oracle APEX&lt;/b&gt;.&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEietzrdvzGwRC4IUQv4eOJfYKdreum9ftmZ5T0A1e8F9-WvOqG9_Yq5oRvUm5Z8XTgl6ltcyrSQYox65aTm8pSRixCEN90rFXbWcbuN3OYpT_tb2oIrfc-9kmDDE7xcgkTJZADSmphhtCe2R4hLmWbUX6VrbAPE6SnkeaKgvmzeWdTTBpT4tttT9yyJ=s960&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;Flip Region in Oracle APEX&quot; border=&quot;0&quot; data-original-height=&quot;540&quot; data-original-width=&quot;960&quot; height=&quot;225&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEietzrdvzGwRC4IUQv4eOJfYKdreum9ftmZ5T0A1e8F9-WvOqG9_Yq5oRvUm5Z8XTgl6ltcyrSQYox65aTm8pSRixCEN90rFXbWcbuN3OYpT_tb2oIrfc-9kmDDE7xcgkTJZADSmphhtCe2R4hLmWbUX6VrbAPE6SnkeaKgvmzeWdTTBpT4tttT9yyJ=w400-h225&quot; title=&quot;Flip Region in Oracle APEX&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;Actually I have received a&amp;nbsp;&lt;a href=&quot;https://www.youtube.com/watch?v=n-jC5PdrHeU&amp;amp;lc=Ugz4krEA7sxH9x9-yU94AaABAg&quot; target=&quot;_blank&quot;&gt;comment&lt;/a&gt; on my flip region video which is uploaded on my youtube channel. One of our subscribers told us that this is not working so I have decided to write a post about Oracle APEX Flip Region.&lt;/span&gt;&lt;/p&gt;&lt;h1 style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;How to Flip Region in Oracle APEX 21.1&lt;/span&gt;&lt;/h1&gt;&lt;p style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: medium; text-align: justify;&quot;&gt;You can try the following steps to Flip Region using Jquery in Oracle APEX.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: medium; text-align: justify;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;Step 1&lt;/span&gt;&lt;/b&gt;:- Make a simple screen design which I have shared below.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: left;&quot;&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEgLZ-g_O8XadjbJVxOHXMyrhoMUQFfLqwyVG3ZeOAJdJgUJEjTVhXkuQQaw0q58XgDwNfHSmZjvaW7Fw5LRK-2-vR8OWfZE5RF6iGrClawJFZGaoD0GAlT4QZuKTlz0RZOGoYtPt63NxEs48uMhxTyatclJLtz7CKSzrXl77UcETs57Qjh2kszbqv7j=s1810&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;How to Flip Region in Oracle APEX&quot; border=&quot;0&quot; data-original-height=&quot;553&quot; data-original-width=&quot;1810&quot; height=&quot;196&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEgLZ-g_O8XadjbJVxOHXMyrhoMUQFfLqwyVG3ZeOAJdJgUJEjTVhXkuQQaw0q58XgDwNfHSmZjvaW7Fw5LRK-2-vR8OWfZE5RF6iGrClawJFZGaoD0GAlT4QZuKTlz0RZOGoYtPt63NxEs48uMhxTyatclJLtz7CKSzrXl77UcETs57Qjh2kszbqv7j=w640-h196&quot; title=&quot;How to Flip Region in Oracle APEX&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;p style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;font-family: georgia; text-align: justify;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;Step 2&lt;/span&gt;&lt;/b&gt;:-&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: georgia;&quot;&gt;Add the following Javascript library in your page file URLS section.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;https://code.jquery.com/jquery-2.1.4.min.js&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;https://cdn.rawgit.com/nnattawat/flip/master/dist/jquery.flip.min.js&lt;/span&gt;&lt;/pre&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;Step 3&lt;/span&gt;&lt;/b&gt;:- Add a static id (card) in the parent region. The following screenshot will help for better understanding.&lt;/p&gt;&lt;p style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEgDXHKocD9kndqRwSpaO72z6c7BSp6qGgO4vk7kV_55nAij8jh5az2ipk7vn0DjfToG8rhj1oRkbmfg2sh6-C38kxLihRu7LSmn4fGpXoGpYM3F5R-HqGGM3Ypt7-AHyPgrlCyz3lJGLxLG2q1wCEl_xhtEA3UBTmBwSMlXEWTirghKMuQZ3E9b4fKD=s1900&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;How to Flip Region in Oracle APEX 21.1&quot; border=&quot;0&quot; data-original-height=&quot;395&quot; data-original-width=&quot;1900&quot; height=&quot;134&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEgDXHKocD9kndqRwSpaO72z6c7BSp6qGgO4vk7kV_55nAij8jh5az2ipk7vn0DjfToG8rhj1oRkbmfg2sh6-C38kxLihRu7LSmn4fGpXoGpYM3F5R-HqGGM3Ypt7-AHyPgrlCyz3lJGLxLG2q1wCEl_xhtEA3UBTmBwSMlXEWTirghKMuQZ3E9b4fKD=w640-h134&quot; title=&quot;How to Flip Region in Oracle APEX 21.1&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;Step 4&lt;/span&gt;&lt;/b&gt;:- Add (front) class to column CSS classes in the first subregion and Add (back) class to column CSS classes in second sub region. The following screenshot will help for better understanding.&lt;/p&gt;&lt;/span&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;p style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEiK6l6MoKjJVaoOpxnytrZK67cLz7us53mJeBLCP7ydMuHRPPDGhg7OHmQ2qbJYOPKS7hnEPxE8cfUy2M_ENyldjWFk71uCdypJhKvuizXYpdzxAPbdpdxlHSZjphYAEd8J4eZ5R9OvNQcHqxzeD_fXa3TEPJDeCLo7M_DZIIIpOz6YKUh-vuW372NM=s1920&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;Oracle APEX Filp Region&quot; border=&quot;0&quot; data-original-height=&quot;1078&quot; data-original-width=&quot;1920&quot; height=&quot;360&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEiK6l6MoKjJVaoOpxnytrZK67cLz7us53mJeBLCP7ydMuHRPPDGhg7OHmQ2qbJYOPKS7hnEPxE8cfUy2M_ENyldjWFk71uCdypJhKvuizXYpdzxAPbdpdxlHSZjphYAEd8J4eZ5R9OvNQcHqxzeD_fXa3TEPJDeCLo7M_DZIIIpOz6YKUh-vuW372NM=w640-h360&quot; title=&quot;Oracle APEX Filp Region&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;Step 5&lt;/span&gt;&lt;/b&gt;:- Create click dynamic action with execute javascript code true action on both buttons.&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;/p&gt;&lt;pre&gt;Event:-Click
Selection Type:-Button
Button:-GO_TO_CHILD_2
Identification:- Execute JavaScript Code
Code:-$(&quot;#card&quot;).flip(&#39;toggle&#39;);&lt;/pre&gt;&lt;/span&gt;&lt;p style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEiJrTqd-b-nVpAc7Q3XRg2kP6IkyHdMi8_B9rUOJF4fdsuWyJV6xdoqwrWK7YrmH2j-sgAzCBlMahlxX0AdZAV5Ffi0A7kprybfT1G_8jK3RawcVEpvEtBC8EtGYcl9h61aqMA6FYOw9nw7_0pOLm0SDJ5d2l6nR6XiGscXcdkLe3pEpnxo-Gi8ON3K=s1914&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;Jquery Oracle APEX Filp Region&quot; border=&quot;0&quot; data-original-height=&quot;878&quot; data-original-width=&quot;1914&quot; height=&quot;294&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEiJrTqd-b-nVpAc7Q3XRg2kP6IkyHdMi8_B9rUOJF4fdsuWyJV6xdoqwrWK7YrmH2j-sgAzCBlMahlxX0AdZAV5Ffi0A7kprybfT1G_8jK3RawcVEpvEtBC8EtGYcl9h61aqMA6FYOw9nw7_0pOLm0SDJ5d2l6nR6XiGscXcdkLe3pEpnxo-Gi8ON3K=w640-h294&quot; title=&quot;Jquery Oracle APEX Filp Region&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p style=&quot;clear: both; text-align: left;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;Step 6&lt;/span&gt;&lt;/b&gt;:-&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;Follow &lt;b&gt;step 5&lt;/b&gt; again for the second dynamic action on the second button with the same JavaScript code.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;span style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;Step 7&lt;/span&gt;&lt;/b&gt;:- Add the following JavaScript Code in&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;Function and Global Variable Declaration Section.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;$(&quot;#card&quot;).flip({
  trigger: &#39;manual&#39;
});&lt;/span&gt;&lt;/pre&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: medium; text-align: left;&quot;&gt;&lt;span&gt;That&#39;s all for today, I think(&lt;/span&gt;&lt;span&gt;&lt;b&gt;Flip Region in Oracle APEX&lt;/b&gt;) post will be helpful for you. If you like the post then share your view in the comment box.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;Please support our&amp;nbsp;&lt;a href=&quot;https://www.youtube.com/javainhand&quot; target=&quot;_blank&quot;&gt;youtube channel&lt;/a&gt;&amp;nbsp;so we will upload more&amp;nbsp;&lt;a href=&quot;https://www.javainhand.com/&quot; target=&quot;_blank&quot;&gt;Oracle APEX Tutorial&lt;/a&gt;&amp;nbsp;videos and blogs.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;a href=&quot;https://apex.oracle.com/pls/apex/f?p=81446:4&quot; target=&quot;_blank&quot;&gt;Click here for demo&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;/span&gt;&lt;p&gt;&lt;/p&gt;&lt;p style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;Reference:-&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;a href=&quot;http://nnattawat.github.io/flip/&quot;&gt;http://nnattawat.github.io/flip/&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='https://www.javainhand.com/feeds/2881070803978760210/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.javainhand.com/2021/10/flip-region-in-oracle-apex.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/5396106166793201647/posts/default/2881070803978760210'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5396106166793201647/posts/default/2881070803978760210'/><link rel='alternate' type='text/html' href='https://www.javainhand.com/2021/10/flip-region-in-oracle-apex.html' title='Flip Region in Oracle APEX - Javainhand Tutorial'/><author><name>Javainhand</name><uri>http://www.blogger.com/profile/18407148468637123743</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhQ3nnDdcQwtLM6n6XkSWHSA4HxZdM3QfdjZXOkMtR-KBzefO0yntF7wz-3fu0YIoPLtewEOUuVbc-QVdacHBnwv21VMe52xfcois-tRhWWk99hswJa8jjmV90TT8Bfzw/s113/javainhand.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/a/AVvXsEietzrdvzGwRC4IUQv4eOJfYKdreum9ftmZ5T0A1e8F9-WvOqG9_Yq5oRvUm5Z8XTgl6ltcyrSQYox65aTm8pSRixCEN90rFXbWcbuN3OYpT_tb2oIrfc-9kmDDE7xcgkTJZADSmphhtCe2R4hLmWbUX6VrbAPE6SnkeaKgvmzeWdTTBpT4tttT9yyJ=s72-w400-h225-c" height="72" width="72"/><thr:total>0</thr:total></entry></feed>