Spaces:
Running
Running
File size: 5,235 Bytes
16fa2e6 | 1 2 | sql pl/sql interview questions, questions asked by recruiter, interview questions = What is PL/SQL?\n\nCompare SQL and PL/SQL?\n\nDo you know the basic structure of PL/SQL?\n\nWhat data types does PL/SQL have?\n\nHow can we use comments in PL/SQL code?\n\nExplain the PL/SQL compilation process?\n\nWhat are PL/SQL cursors?\n\nCan you label a PL/SQL loop?\n\nWhat is a PL/SQL block?\n\nDefine a subprogram in PL/SQL?\n\nWhat is the procedure in PL/SQL?\n\nWhat is the function in PL/SQL?\n\nWhen is a declaration statement required?\n\nWhat is an implicit cursor?\n\nHow do you return more than one row?\n\nWhat is a subquery? Name some types of subqueries in PL/SQL?\n\nWhat are pipeline Functions?\n\nWhat is a save exception?\n\nWhat is dynamic SQL?\n\nWhen do we use a REF cursor?\n\nWhat is a virtual column and its syntax?\n\nWhat does a package consist of?\n\nWhat are the benefits of using PL/SQL packages?\n\nWhat is exception handling?\n\nGive some examples of predefined exceptions?\n\nWhat are the differences between syntax and runtime errors?\n\nWhat are COMMIT, ROLLBACK, and SAVEPOINT?\n\nWhat is a mutating table error?\n\nName some schema objects that are created in PL/SQL?\n\nWhat is the purpose of SYSDATE and USER keywords?\n\nWhat is bulk bind?\n\nWhat is the difference between a nested table and a VARRAY?\n\nWhat is the difference between TYPE and ROWTYPE?\n\nHow do you access the fields of a record in PL/SQL?\n\nWhat are the different methods for tracing PL/SQL code?\n\nWhat is the overloading of a procedure?\n\nHow would you implement a standalone procedure?\n\nHow do you declare a constant in PL/SQL?\n\nExplain what the OPEN cursor command does?\n\nWhat is the difference between temporary and permanent tablespaces?\n\nWhat is an autonomous transaction?\n\nHow can you debug your PL/SQL code?\n\nHow will you restrict the string length in PL/SQL?\n\nWhat is the role of a hierarchical profiler?\n\nWhat are the roles of PLVrb and PLVcmt in PL/SQL?\n\nDescribe a problem developers might face while writing log information in a database table in PL/SQL?\n\nHow can you verify whether a CPU has executed an UPDATE statement?\n\nWhat do you know about PRAGMA EXCEPTION_INIT in PL/SQL?\n\nWhich command deletes a package in PL/SQL?\n\nWhat is the purpose of the DBMS_OUTPUT package?\n\nIn which case can we use PRAGMA AUTONOMOUS_TRANSACTION?\n\nWhat is a sort merge join?\n\nCan you explain the PL/SQL execution architecture?\n\nWhat programming constructs does PL/SQL support?\n\nExplain what a TIMESTAMP data type is in PL/SQL?\n\nHow do you include single quotes in a string literal in PL/SQL?\n\nWhat does the error ORA-03113 mean?\n\nWhat is the difference between a HASH JOIN and a SORT MERGE JOIN, and which one is more efficient for large datasets?\n\nHow do you analyze and interpret an execution plan to optimize a PL/SQL program?\n\nHow would you optimize a PL/SQL function that is being called frequently and is causing performance issues?\n\nHow would you optimize a query in PL/SQL that performs poorly due to full table scans?\n\nWhat is the role of INDEX in PL/SQL performance optimization, and how would you choose the right index?\n\nHow can you improve the performance of a query that performs JOIN operations between multiple tables?\n\nWhat is a “bind variable” and how does it improve performance in PL/SQL?\n\nWhat is the impact of using EXISTS versus IN in SQL queries, and when should each be used for better performance?\n\nWhat is partitioning, and how does it help in optimizing large tables in PL/SQL?\n\nHow would you optimize the performance of a PL/SQL program that processes a large number of DML (Data Manipulation Language) statements?\n\nHow do you identify and resolve bottlenecks in a PL/SQL program?\n\nWhat are the key differences between UNION and UNION ALL, and how do they impact performance?\n\nWhat is a materialized view, and how does it help improve query performance in PL/SQL?\n\nWhat is the difference between ROWNUM and ROW_NUMBER() in PL/SQL, and when would you use each for optimization?\n\nHow would you optimize a query that performs a GROUP BY operation on a large dataset?\n\nExplain the concept of Parallel Execution in PL/SQL and how it affects query performance?\n\nWhat are the trade-offs of using a WITH clause in PL/SQL?\n\nWhat are some best practices to follow when handling large transactions in PL/SQL?\n\nHow does AUTOTRACE help in optimizing SQL queries in PL/SQL?\n\nWhat is the difference between NESTED LOOPS and MERGE JOIN in terms of performance optimization?\n\nWhat is the role of INFORMATION_SCHEMA in optimizing PL/SQL queries?\n\nHow would you implement caching in PL/SQL to improve performance?\n\nHow do you use SQL_TRACE to optimize PL/SQL code performance?\n\nWhat are the key differences between OLTP and OLAP systems, and how do they affect PL/SQL query optimization?\n\nWhat is Dynamic Sampling in Oracle, and how does it improve query optimization?\n\nAdditionally you will get core Sql Tutorial from following website, version is old but solid background should be abstracted\n\nhttps://infycletechnologies.com/script/sql_vol_1.pdf -- Tutorial Volume 1.\n\nhttps://infycletechnologies.com/script/sql_vol_2.pdf |