- 61
- 135 034
Oracle SQL and PLSQL Tricky Interview Questions
India
Приєднався 8 вер 2018
Hi Everyone, Welcome to My channel, in this tutorial videos I will cover tricky oracle sql plsql interview questions which are asked in interviews
These questions are for freshers and experienced as well. Thanks.
These questions are for freshers and experienced as well. Thanks.
Find Sqare Root Without Using SqRoot Function | Oracle Tricky SQL PLSQL Interview Questions
Find Sqare Root Without Using SqRoot Function | Oracle Tricky SQL PLSQL Interview Questions
Переглядів: 500
Відео
How Oracle Handles Null | SQL PLSQL Tricky Interview Questions
Переглядів 4652 роки тому
How Oracle Handles Null | SQL PLSQL Tricky Interview Questions
Top 5 Tips for Getting Unique Records or Rows in SQL | Oracle Database Interview Questions
Переглядів 3532 роки тому
Top 5 Tips for Getting Unique Records or Rows in SQL | Oracle Database Interview Questions
Create Your Own UPPER Function | Oracle Tricky SQL and PLSQL Interview Questions
Переглядів 4522 роки тому
Create Your Own UPPER Function | Oracle Tricky SQL and PLSQL Interview Questions
How to Split Delimited or Fixed Width String into Columns in Oracle | SQL Tricky Interview Questions
Переглядів 2,6 тис.2 роки тому
How to Split Delimited or Fixed Width String into Columns in Oracle | SQL Tricky Interview Questions
Analytical Vs. Aggregate Functions: What's the Difference? Oracle SQL Tricky Interview Questions
Переглядів 2,1 тис.2 роки тому
Analytical Vs. Aggregate Functions: What's the Difference? Oracle SQL Tricky Interview Questions
Interesting Complex Scenario | Oracle SQL Database Tricky Interview Questions
Переглядів 9323 роки тому
Interesting Complex Scenario | Oracle SQL Database Tricky Interview Questions
Scenario Based Question | Oracle Database SQL Tricky Interview Questions
Переглядів 30 тис.4 роки тому
Scenario Based Question | Oracle Database SQL Tricky Interview Questions
Print string in reverse order in SQL | Find Palindrome (Oracle Tricky Interview Questions)
Переглядів 2,1 тис.4 роки тому
Print string in reverse order in SQL | Find Palindrome (Oracle Tricky Interview Questions)
Puzzle: Scenario Based-Write a query for the output? (Oracle SQL PLSQL Interview Questions)
Переглядів 2,3 тис.4 роки тому
Puzzle: Scenario Based-Write a query for the output? (Oracle SQL PLSQL Interview Questions)
Fibonacci Series in SQL Oracle. (Oracle Tricky Interview Questions)
Переглядів 2 тис.4 роки тому
Fibonacci Series in SQL Oracle. (Oracle Tricky Interview Questions)
25 SQL/PLSQL Questions With One Word Answer (Oracle Tricky Interview Questions)
Переглядів 23 тис.4 роки тому
25 SQL/PLSQL Questions With One Word Answer (Oracle Tricky Interview Questions)
Puzzle - Find Prime Number? Oracle Database Tricky SQL PLSQL Interview Questions
Переглядів 5 тис.4 роки тому
Puzzle - Find Prime Number? Oracle Database Tricky SQL PLSQL Interview Questions
Oracle Index Part 2 (Virtual and Invisible) Oracle SQL PLSQL Tricky Interview Questions
Переглядів 7395 років тому
Oracle Index Part 2 (Virtual and Invisible) Oracle SQL PLSQL Tricky Interview Questions
Oracle Index With Examples (Btree, Bitmap, Functional) Part 1| SQL PLSQL Tricky Interview Questions
Переглядів 1 тис.5 років тому
Oracle Index With Examples (Btree, Bitmap, Functional) Part 1| SQL PLSQL Tricky Interview Questions
Dont know correct table name? Still find it out. (Oracle SQL PLSQL Tricky Interview Questions)
Переглядів 3,3 тис.5 років тому
Dont know correct table name? Still find it out. (Oracle SQL PLSQL Tricky Interview Questions)
Case vs Decode- Top 5 MAJOR Differences (Oracle SQL PLSQL Tricky Interview Questions)
Переглядів 2,5 тис.5 років тому
Case vs Decode- Top 5 MAJOR Differences (Oracle SQL PLSQL Tricky Interview Questions)
Create function with OUT parameter (Oracle SQL PLSQL Tricky Interview Questions)
Переглядів 1,4 тис.5 років тому
Create function with OUT parameter (Oracle SQL PLSQL Tricky Interview Questions)
HTML in SQL Queries (Oracle PL SQL Tricky Interview Questions)
Переглядів 3,6 тис.5 років тому
HTML in SQL Queries (Oracle PL SQL Tricky Interview Questions)
DML Error Logging (Oracle PL SQL Tricky Interview Questions)
Переглядів 5 тис.5 років тому
DML Error Logging (Oracle PL SQL Tricky Interview Questions)
How To Reset High Water Mark (Oracle SQL PLSQL Tricky Interview Questions)
Переглядів 4,3 тис.6 років тому
How To Reset High Water Mark (Oracle SQL PLSQL Tricky Interview Questions)
When composite index would be used by Oracle (SQL PLSQL Tricky Interview Questions)
Переглядів 4,7 тис.6 років тому
When composite index would be used by Oracle (SQL PLSQL Tricky Interview Questions)
Create Primary Key On Column With Duplicate Values (Oracle SQL PL SQL Tricky Interview Questions)
Переглядів 8 тис.6 років тому
Create Primary Key On Column With Duplicate Values (Oracle SQL PL SQL Tricky Interview Questions)
Difference Between Counts (Oracle SQL PLSQL Tricky Interview Questions)
Переглядів 7 тис.6 років тому
Difference Between Counts (Oracle SQL PLSQL Tricky Interview Questions)
Varchar Data Types And Difference | Oracle SQL PLSQL Tricky Interview Questions
Переглядів 2,6 тис.6 років тому
Varchar Data Types And Difference | Oracle SQL PLSQL Tricky Interview Questions
Comparing null in case: Select case when null is null then 0 else 1 end from dual Answer is 0.
WITH ABC AS (SELECT QUOTE_ID , LISTAGG(ORDER_STATUS,',') WITHIN GROUP ( ORDER BY ORDER_STATUS) STATUS, COUNT(*) TOTAL FROM ORDERS GROUP BY QUOTE_ID) SELECT QUOTE_ID, CASE WHEN REGEXP_COUNT(STATUS,'DELIVERED') = TOTAL THEN 'COMPLETE' WHEN REGEXP_COUNT(STATUS,'DELIVERED') >=1 THEN 'IN DELIVERY' WHEN REGEXP_COUNT(STATUS,'SUBMITTED') >=1 THEN 'AWAITING FOR SUBMISSION' ELSE 'AWAITING FOR ENTRY' END AS ORDER_STATE FROM ABC; WITH ABC AS (SELECT QUOTE_ID, (SELECT COUNT(*) FROM ORDERS B WHERE A.QUOTE_ID = B.QUOTE_ID AND B.ORDER_STATUS = 'DELIVERED') DELIVER, (SELECT COUNT(*) FROM ORDERS B WHERE A.QUOTE_ID = B.QUOTE_ID AND B.ORDER_STATUS = 'SUBMITTED') SUBMIT, (SELECT COUNT(*) FROM ORDERS B WHERE A.QUOTE_ID = B.QUOTE_ID AND B.ORDER_STATUS = 'CREATED') CREATETED, COUNT(*) TOTAL FROM ORDERS A GROUP BY QUOTE_ID) SELECT QUOTE_ID , CASE WHEN TOTAL = DELIVER THEN 'COMPLETE' WHEN DELIVER >=1 THEN 'IN DELIVERY' WHEN SUBMIT>=1 THEN 'AWAITING FOR SUBMISSION' ELSE 'AWAITING FOR ENTRY' END ORDER_STATUS FROM ABC;
concept got cleared ❤thnks
C
C
Count (0) ?
👍
👍
wasn't aware of that function ....thanks for the information
very informative ..thanks
Very Informative
Thanks for the vital information
Excellent
Thanks for the information in such easy to understand when you teach
Thanks
very Helpful ...thanks for sharing.
gracias me sirvió mucho
Keep continue using WITH
Supper
Thansk. This exactly what I wa s looking for. Keep posting new videos for other plsql scenarios.
"promosm"
Do more interview questions and and you giving nice explanation for us ❤️
Is it possible to use for loop in it and display record in table
This table gives 0 record output
It is a custom table
You can use it for other tables
SELECT ID,CASE WHEN DEL>=3 THEN 'Complete' WHEN DEL>=1 AND SUB>=1 THEN 'In Delivery' WHEN SUB>=1 AND CRE>=1 THEN 'Pen Submit' WHEN SUB=0 AND CRE>=1 THEN 'In Entry' END sts FROM( SELECT * FROM SCHK PIVOT ( Count(STATUS) FOR STATUS IN ( 'DELIVERED' "DEL",'SUBMITTED' "SUB",'CREATED' "CRE") ) ORDER BY ID)
Complete
Good explanation, thank you
select QUOTE_ID, case when DELIVERED_COUNT = ORDER_COUNT then 'COMPLETE' when DELIVERED_COUNT > =1 then 'IN DELIVERY' when SUBMITTED_COUNT > = 1 then 'AWAITING FOR SUBMISSION' else 'AWAITING FOR ENTRY' end status from (SELECT QUOTE_ID, COUNT (ORDER_ID) order_count, SUM (CASE WHEN ORDER_STATUS = 'DELIVERED' THEN 1 ELSE 0 END) DELIVERED_COUNT, SUM (CASE WHEN ORDER_STATUS = 'SUBMITTED' THEN 1 ELSE 0 END) SUBMITTED_COUNT, SUM (CASE WHEN ORDER_STATUS = 'CREATED' THEN 1 ELSE 0 END) CREATED_COUNT FROM order_status GROUP BY QUOTE_ID )
Ho to use with INSERT ALL log errors into OBJECT_NAME reject limit unlimited;
Thank you for helping us
Super and well explanation 👍
Great man, I can say wow , simply superb.
Good information sir jee
Great question bro.. Literally I was searching this question 2 years back but not able to find satisfactory explaination... Thanks a lot..
Thank you very much sir ,I learned very important and useful information from this vedio.
something new to learn 👍
Clickbait
Well explained...I was asked this question recently in an interview...
Thank you from Guatemala Central America . It was very usefull to me because I coudn't use split, if you can a split video could be great
Great 👍 and upload more ...
Nice bro
Nice question. Thank you.
-->> PROBLEM STATEMENT: Ungroup the given input data. Display the result as per expected output id item_name total_count 1 Water Bottle 2 2 Tent 1 3 Apple 4 -->> EXPECTED OUTPUT: ID ITEM_NAME 1 Water Bottle 1 Water Bottle 2 Tent 3 Apple 3 Apple 3 Apple 3 Apple
Here you go - create table item (id number, item_name varchar2(50), total_count number); insert into item values (1,'Water Bottle',2); insert into item values (2,'Tent',1); insert into item values (3,'Apple',4); select item_name from item, (select level lvl from dual connect by level <= (select max(total_count) from item)) where lvl <= total_count order by id ; Output ========================= Water Bottle Water Bottle Tent Apple Apple Apple Apple
Very good concept, ,try more
Please place the query in comment section, video is not clear
Oh sure. Give me some time
@@trickyinterviewquestions One Month passed bro please share the query in comment, so we can see it properly
select bytes/1024/1024 || ' MB ' as tab_size from user_segments where segment_name=<table_name>;
@@gautamsahni3613 Here is the query. Sorry for being late. It slipped from my mind.
Brilliant 👏
thank you sir , your videos are realy helpful... please make a video on SQL and plsql important pre defined error ...some time as a beginner I don't understand what is the meaning of that particular error.
Sure, will do.
Hey, thank you for sharing! Helps me a lot! Are you in audea?
Thanks. Audea??
Thanks buddy