How can we manage the gap in a primary key column created by a sequence? Ex:a company has empno as primary key generated by a sequence and some employees leaves in between.What is the best way to manage this gap?
2 8376SQL> CREATE TABLE to_table 2 (col1 NUMBER); Table created. SQL> CREATE OR REPLACE TRIGGER statement_trigger 2 AFTER INSERT ON to_table 3 BEGIN 4 DBMS_OUTPUT.PUT_LINE('After Insert Statement Level'); 5 END; 6 / Trigger created. SQL> CREATE OR REPLACE TRIGGER row_trigger 2 AFTER INSERT ON to_table 3 FOR EACH ROW 4 BEGIN 5 DBMS_OUTPUT.PUT_LINE('After Insert Row Level'); 6 END; 7 / Trigger created. SQL> INSERT INTO TO_TABLE VALUES(1); After Insert Row Level After Insert Statement Level 1 row created. SQL> BEGIN 2 INSERT INTO TO_TABLE VALUES(2); 3 INSERT INTO TO_TABLE VALUES(3); 4 INSERT INTO TO_TABLE VALUES(4); 5 INSERT INTO TO_TABLE VALUES(5); 6 INSERT INTO TO_TABLE VALUES(6); 7 INSERT INTO TO_TABLE VALUES(7); 8 INSERT INTO TO_TABLE VALUES(8); 9 INSERT INTO TO_TABLE VALUES(9); 10 INSERT INTO TO_TABLE VALUES(0); 11 END; 12 / WAT LL BE THE O/P??? XPLAIN IT>>>>
1 4349What query tells you how much space a tablespace named test is taking up, and how much space is remaining?
2223how to get required data from oracle source is like this ram_05_seetha lax_05_viswa bamr05frummy run_01_away sw_sas_trim i want my target data like ram_05_seetha lax_05_viswa to get data using %_05_% but it will give ram_05_seetha lax_05_viswa bamr05frummy how can i get my target data?
1 4223Is there any way to find out when one specific table/view/M-view is used last time. i.e. when one specific object is used in any SELECT statement.
1301Post New Infosys Oracle General Interview Questions
What is etl - extraction, transformation, and loading?
What is online banking?
You are working on a project that was proceeding well until a manufacturing glitch occurred that requires corrective action. It turns out the glitch was an unintentional enhancement to the product, and the marketing people are absolutely crazy about its potential. The corrective action is canceled, and you continue to produce the product with the newly discovered enhancement. As the project manager, you know that a change has occurred to the project scope. Which of the following is true? A. Project scope changes do not require CCB approval. B. Performance measurement baselines are affected by scope changes. C. Project scope change uses inspection to determine if change has occurred. D. Project scope change uses workarounds to correct unexpected problems with scope change.
What is the difference between symbol and string?
What are the advantages of inheritance in c++?
if i write the procedure.. and other person make the changes in that code then where i find who is changing my procedure
How to restrict billing information to AR?
Explain what is cells in openstack?
What is scope resolution operator in c++ with example?
What are the types of subquery?
What is qualifications subprofile?
When to use Single, SingleOrDefault, First and FirstOrDefault?
could i know the selection pattern at hpcl, am an undergradute in chemical technology, but my sujects or course do not figure out antwhere on the lists.
What is a stl vector?
Which cable is use for rtcc control panel