The Great Oracle SQL Quiz – your chance to get grilled at Open World (S290735) – two sample questions

Lucas Jellema 5
0 0
Read Time:1 Minute, 37 Second

Next week, I am doing two presentations at Oracle Open World, both on Thursday. One is on ADF – more on that later. The other one is The Great Oracle SQL Quiz, with 15 brain teasers, mind warpers and soul searching questions on SQL and PL/SQL. It’s the Quiz that Alex (Nuijten) and I have been doing in various locations in Europe and the US for the past three years. The quiz that Steven Feuerstein recently participated in, describing it afterwards as ‘hilarious’. While we focus on fun, and there is a real winner who gets a real prize, the quiz is also a great opportunity to learn about some fairly useful and relatively unknown features. Well, anyway, if you are in the area, come along and play along. It’s session S290735 – Thursday, 8.30-9.30 pm, Hilton Continental Ballroom 5.

So what does a typical question look like? For example a little like this one:

1. The intelligent datebase

In SQL*Plus, the following could be be seen:

What has been done just prior to this statement? 

A)  alter system set sysdate = NLS_FRIENDLY

B)  declare
sysdate varchar2(10):= ‘Today’;
begin
C)  alter system set NLS_DATE_FORMAT=’RELATIVE’

D)  update dual set sysdate =’TODAY’

 

Or a somewhat more complex question like this one:

2. Historical Aggregation

Here we see the employees and their salaries. That is the current situation. We see nothing about the past. And we would like to answer the question: “Who has received the biggest payraise in history?” (biggest both as a percentage and an absolute number).

Which database feature do you think we can best employ for answering that question?

A. The supplied package DBMS_LOGMNR

B. Aggregate Change Index

C. Flashback Versions Query

D. Materialized View in combination with After Update Row trigger

 

You will see the answers with the complete code for the second questions in a blog article to appear later today.

About Post Author

Lucas Jellema

Lucas Jellema, active in IT (and with Oracle) since 1994. Oracle ACE Director and Oracle Developer Champion. Solution architect and developer on diverse areas including SQL, JavaScript, Kubernetes & Docker, Machine Learning, Java, SOA and microservices, events in various shapes and forms and many other things. Author of the Oracle Press book Oracle SOA Suite 12c Handbook. Frequent presenter on user groups and community events and conferences such as JavaOne, Oracle Code, CodeOne, NLJUG JFall and Oracle OpenWorld.
Happy
Happy
0 %
Sad
Sad
0 %
Excited
Excited
0 %
Sleepy
Sleepy
0 %
Angry
Angry
0 %
Surprise
Surprise
0 %

Average Rating

5 Star
0%
4 Star
0%
3 Star
0%
2 Star
0%
1 Star
0%

5 thoughts on “The Great Oracle SQL Quiz – your chance to get grilled at Open World (S290735) – two sample questions

  1. Hi Laurent.
    Will you participate in the Quiz? Seems like you are a serious candidate for the finals. However, you will have to stick to answers we provide, no matter how many more you can think of… Will we meet on Sunday? Anyways, hope to run into you next week.
    best regards, Lucas

Comments are closed.

Next Post

The Great Oracle SQL Quiz - answers to two sample questions - why we do no longer need journalling tables

Earlier today I wrote about The Great Oracle SQL Quiz session at Oracle Open World. I presented two sample questions – that will not be in the quiz at OOW but are fairly similar to the questions that will be (see: Sample Questions). Here we will look at the answers […]
%d bloggers like this: