473,748 Members | 2,214 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

What are good questions for a DBA?

After 3 years of using DB2 on Linux, I'm leaving my current employers
to go work for a SQL Server shop instead. In order to find my
replacement, they're trying to put together a set of questions to get
both some understanding of how wide candidates knowledge is, and how
much DB2 specifics they know. Of the questions below, how many do you
think are useful in determining if you've got somebody capable of
keeping a DB2 instance up, developing new structures as new business
problems arrive, and writing useful/performant SQL? (these therefore
range from the inane to quite specific - how many do people feel are
actually unfair? or should I just get some questions from Celko?)
[I'm not trawling for a job or for other recruitment purposes here,
honest...]

1. I've got a bookings table with 20 million rows, broken down by
product, region, date and customer number. It's not loading new data
or querying very quickly. What should I do?
2. Do you like stored procedures?
3. What's an inline view?
4. How do you do a running sum when GROUP BY just gives you a total
per row?
5. Do you prefer star schemas or snowflake schemas? Why?
6. I have a table with three columns: date (date), country
(varchar(10)), bookings (int).
Write me a query that gives me a total by country of bookings made
in the last 2 weeks, AND that displays the total number of bookings
made in the last 2 weeks too.
7. Do you know what an MQT is?
8. If all my customers have been given x-y coordinates that describe
the position of their house (ie every line in customer has x_coordinate
(int) and y_coordinate (int), and Birmingham is at (35000, 55000), and
Manchester is at (25000, 65000) and York is at (33000, 70000), then,
assuming Euclidean geometry, give me a WHERE clause against the
customer table to return only customers who live north of Birmingham
and south of a line that passes through both York and Manchester.
9. I have two sets of customers with the same 15 columns. What's the
best way to return only those customers that are in both sets, for whom
the data is the same in both sets?
10. Give me a way to get the database to check on a daily basis if
something surprising is happening to sales when compared with last year
at the same time.
11. DB2 UDB LUW 8.1.4. For the next six months, ten new tables need
to be created every day and automated routines set up to load them
every day after they're created. You are the only person in the company
responsible for administering the database. Do you use a DMS or SMS
tablespace? Why?
12. Your manager has written some code that 'should take 5 minutes to
run'. It takes 4 hours. What do you do?
13. Cube Views?
14. What SQL that you've written are you most proud of?
15. What are the disadvantages of HADR vis a vis RAC?
16. SQL Server federation vs DB2 Information Integrator - any
thoughts?
Thanks

JCSJF

Sep 4 '06 #1
30 15441
"James Conrad StJohn Foreman" <ja************ **********@gmai l.comwrote in
message news:11******** *************@m 73g2000cwd.goog legroups.com...
After 3 years of using DB2 on Linux, I'm leaving my current employers
to go work for a SQL Server shop instead. In order to find my
replacement, they're trying to put together a set of questions to get
both some understanding of how wide candidates knowledge is, and how
much DB2 specifics they know. Of the questions below, how many do you
think are useful in determining if you've got somebody capable of
keeping a DB2 instance up, developing new structures as new business
problems arrive, and writing useful/performant SQL? (these therefore
range from the inane to quite specific - how many do people feel are
actually unfair? or should I just get some questions from Celko?)
[I'm not trawling for a job or for other recruitment purposes here,
honest...]

1. I've got a bookings table with 20 million rows, broken down by
product, region, date and customer number. It's not loading new data
or querying very quickly. What should I do?
2. Do you like stored procedures?
3. What's an inline view?
4. How do you do a running sum when GROUP BY just gives you a total
per row?
5. Do you prefer star schemas or snowflake schemas? Why?
6. I have a table with three columns: date (date), country
(varchar(10)), bookings (int).
Write me a query that gives me a total by country of bookings made
in the last 2 weeks, AND that displays the total number of bookings
made in the last 2 weeks too.
7. Do you know what an MQT is?
8. If all my customers have been given x-y coordinates that describe
the position of their house (ie every line in customer has x_coordinate
(int) and y_coordinate (int), and Birmingham is at (35000, 55000), and
Manchester is at (25000, 65000) and York is at (33000, 70000), then,
assuming Euclidean geometry, give me a WHERE clause against the
customer table to return only customers who live north of Birmingham
and south of a line that passes through both York and Manchester.
9. I have two sets of customers with the same 15 columns. What's the
best way to return only those customers that are in both sets, for whom
the data is the same in both sets?
10. Give me a way to get the database to check on a daily basis if
something surprising is happening to sales when compared with last year
at the same time.
11. DB2 UDB LUW 8.1.4. For the next six months, ten new tables need
to be created every day and automated routines set up to load them
every day after they're created. You are the only person in the company
responsible for administering the database. Do you use a DMS or SMS
tablespace? Why?
12. Your manager has written some code that 'should take 5 minutes to
run'. It takes 4 hours. What do you do?
13. Cube Views?
14. What SQL that you've written are you most proud of?
15. What are the disadvantages of HADR vis a vis RAC?
16. SQL Server federation vs DB2 Information Integrator - any
thoughts?

Thanks

JCSJF
Most of the questions are very open-ended and highly subjective, and I doubt
that the person reading the answers from an answer sheet will be able to
understand equally valid answers that don't agree with the answer sheet.

The questions seem highly skewed toward decision support databases, but
maybe you are looking for someone with those skills. But if you are, I don't
see any questions about intra or inter partition parallelism which is much
more important than most of the questions you asked..

Seem to be a lot of questions about complex SQL. Are you looking for a DBA
or an SQL person?

If you are looking for a DB2 DBA, whey do they need to know about Oracle
RAC?

BTW, what is an inline view in DB2?
Sep 4 '06 #2

"James Conrad StJohn Foreman" <ja************ **********@gmai l.comwrote in
message news:11******** *************@m 73g2000cwd.goog legroups.com...
After 3 years of using DB2 on Linux, I'm leaving my current employers
to go work for a SQL Server shop instead. In order to find my
replacement, they're trying to put together a set of questions to get
both some understanding of how wide candidates knowledge is, and how
much DB2 specifics they know. Of the questions below, how many do you
think are useful in determining if you've got somebody capable of
keeping a DB2 instance up, developing new structures as new business
problems arrive, and writing useful/performant SQL? (these therefore
range from the inane to quite specific - how many do people feel are
actually unfair? or should I just get some questions from Celko?)
[I'm not trawling for a job or for other recruitment purposes here,
honest...]

1. I've got a bookings table with 20 million rows, broken down by
product, region, date and customer number. It's not loading new data
or querying very quickly. What should I do?
2. Do you like stored procedures?
3. What's an inline view?
4. How do you do a running sum when GROUP BY just gives you a total
per row?
5. Do you prefer star schemas or snowflake schemas? Why?
6. I have a table with three columns: date (date), country
(varchar(10)), bookings (int).
Write me a query that gives me a total by country of bookings made
in the last 2 weeks, AND that displays the total number of bookings
made in the last 2 weeks too.
7. Do you know what an MQT is?
8. If all my customers have been given x-y coordinates that describe
the position of their house (ie every line in customer has x_coordinate
(int) and y_coordinate (int), and Birmingham is at (35000, 55000), and
Manchester is at (25000, 65000) and York is at (33000, 70000), then,
assuming Euclidean geometry, give me a WHERE clause against the
customer table to return only customers who live north of Birmingham
and south of a line that passes through both York and Manchester.
9. I have two sets of customers with the same 15 columns. What's the
best way to return only those customers that are in both sets, for whom
the data is the same in both sets?
10. Give me a way to get the database to check on a daily basis if
something surprising is happening to sales when compared with last year
at the same time.
11. DB2 UDB LUW 8.1.4. For the next six months, ten new tables need
to be created every day and automated routines set up to load them
every day after they're created. You are the only person in the company
responsible for administering the database. Do you use a DMS or SMS
tablespace? Why?
12. Your manager has written some code that 'should take 5 minutes to
run'. It takes 4 hours. What do you do?
13. Cube Views?
14. What SQL that you've written are you most proud of?
15. What are the disadvantages of HADR vis a vis RAC?
16. SQL Server federation vs DB2 Information Integrator - any
thoughts?
If you think these questions are going to be enough, good luck. I have a
certified DBA who can't do squat in front of a keyboard.
Sep 4 '06 #3
"Bob Jones" <em***@me.notwr ote in message
news:LD******** *********@newss vr29.news.prodi gy.net...
>
If you think these questions are going to be enough, good luck. I have a
certified DBA who can't do squat in front of a keyboard.
Hmm. None of the questions the OP listed is anything like those on the IBM
DB2 DBA Certification test.

If your DBA can't do squat in front of keyboard, is that because they don't
Linux/UNIX, vi, etc, or some other reason.
Sep 4 '06 #4
James Conrad StJohn Foreman wrote:
15. What are the disadvantages of HADR vis a vis RAC?
This doesn't seem to be a valid question. I'm not sure of it's relevance
to the interview process, but assuming it has some, then it should be
HADR vs Oracle Data Guard. RAC is not a DR solution.
Sep 4 '06 #5

"Mark A" <no****@nowhere .comwrote in message
news:aZ******** *************** *******@comcast .com...
"Bob Jones" <em***@me.notwr ote in message
news:LD******** *********@newss vr29.news.prodi gy.net...
>>
If you think these questions are going to be enough, good luck. I have a
certified DBA who can't do squat in front of a keyboard.

Hmm. None of the questions the OP listed is anything like those on the IBM
DB2 DBA Certification test.
Those questions are not enough regardless.
If your DBA can't do squat in front of keyboard, is that because they
don't Linux/UNIX, vi, etc, or some other reason.
Not just UNIX, but basic DBA stuff like configurating CLI, moving
containers, upgrading, and most of all using the right tool for the job.

Certifications may look good on paper, but they are no replacement for real
experience.
Sep 5 '06 #6
James Conrad StJohn Foreman wrote:
After 3 years of using DB2 on Linux, I'm leaving my current employers
to go work for a SQL Server shop instead. In order to find my
replacement, they're trying to put together a set of questions to get
both some understanding of how wide candidates knowledge is, and how
much DB2 specifics they know. Of the questions below, how many do you
think are useful in determining if you've got somebody capable of
keeping a DB2 instance up, developing new structures as new business
problems arrive, and writing useful/performant SQL? (these therefore
range from the inane to quite specific - how many do people feel are
actually unfair? or should I just get some questions from Celko?)
[I'm not trawling for a job or for other recruitment purposes here,
honest...]

1. I've got a bookings table with 20 million rows, broken down by
product, region, date and customer number. It's not loading new data
or querying very quickly. What should I do?
2. Do you like stored procedures?
3. What's an inline view?
4. How do you do a running sum when GROUP BY just gives you a total
per row?
5. Do you prefer star schemas or snowflake schemas? Why?
6. I have a table with three columns: date (date), country
(varchar(10)), bookings (int).
Write me a query that gives me a total by country of bookings made
in the last 2 weeks, AND that displays the total number of bookings
made in the last 2 weeks too.
7. Do you know what an MQT is?
8. If all my customers have been given x-y coordinates that describe
the position of their house (ie every line in customer has x_coordinate
(int) and y_coordinate (int), and Birmingham is at (35000, 55000), and
Manchester is at (25000, 65000) and York is at (33000, 70000), then,
assuming Euclidean geometry, give me a WHERE clause against the
customer table to return only customers who live north of Birmingham
and south of a line that passes through both York and Manchester.
9. I have two sets of customers with the same 15 columns. What's the
best way to return only those customers that are in both sets, for whom
the data is the same in both sets?
10. Give me a way to get the database to check on a daily basis if
something surprising is happening to sales when compared with last year
at the same time.
11. DB2 UDB LUW 8.1.4. For the next six months, ten new tables need
to be created every day and automated routines set up to load them
every day after they're created. You are the only person in the company
responsible for administering the database. Do you use a DMS or SMS
tablespace? Why?
12. Your manager has written some code that 'should take 5 minutes to
run'. It takes 4 hours. What do you do?
13. Cube Views?
14. What SQL that you've written are you most proud of?
15. What are the disadvantages of HADR vis a vis RAC?
16. SQL Server federation vs DB2 Information Integrator - any
thoughts?
Thanks

JCSJF
Assuming your DBA is intended to perform DBA duties how about?

1. What are the things that can go wrong that may require recovery
and/or restoration. What are the various strategies that you would
recommend to mitigate the dangers thing that can go wrong and for each
contrast the strengths and weaknesses.

2. Describe the architecture of DB2 and the basic concepts for locking
and the transaction model.

3. What is the most oldest version of DB2 on which you have worked? The
newest? Contrast them in terms of capabilities and features.

4. What is the worst situation you have ever faced as a DBA and what
did you personally do to solve it?

5. What is the largest database on which you have worked in terms of the
number of objects and the amount of data? Describe the challenges faced.

6. What is the single biggest mistake you see when you look at DB2
databases and what do you recommend to rectify it.

Also open ended. But pointedly intended to ferret out the poser.

And as Mark Townsend said ... DB2 has no technology equivalent to RAC so
bringing up an Oracle product serves no obvious purpose.
--
Daniel Morgan
University of Washington
Sep 5 '06 #7
"Bob Jones" <em***@me.notwr ote in message
news:X5******** ********@newssv r21.news.prodig y.com...
Certifications may look good on paper, but they are no replacement for
real experience.
No one is suggesting that there is any substitute for experience, but it is
useful in an interview to ask the applicant technical questions as one part
of the qualification process.

In my "experience " the questions on the DB2 DBA certification exam are
specifically designed so they are difficult to answer if one has not had
experience with the product. But obviously, there are no perfect questions.
Sep 5 '06 #8
Thanks Mark,
>
Most of the questions are very open-ended and highly subjective, and I doubt
that the person reading the answers from an answer sheet will be able to
understand equally valid answers that don't agree with the answer sheet.
Indeed. These are questions intended to be asked at interview, rather
than on paper. I tend to like open ended questions because there's
more opportunity for the candidate to get themselves in/out of trouble
than where there's one obvious right answer.
The questions seem highly skewed toward decision support databases, but
maybe you are looking for someone with those skills. But if you are, I don't
see any questions about intra or inter partition parallelism which is much
more important than most of the questions you asked..
Thanks. I'll follow up on that.
>
Seem to be a lot of questions about complex SQL. Are you looking for a DBA
or an SQL person?
Very good point, and my current employer has a certain level of
ambiguity about this. I guess I would have doubts about any DBA that
wasn't highly competent with SQL, but maybe that's an unfair
constraint.
>
If you are looking for a DB2 DBA, whey do they need to know about Oracle
RAC?
Some advice we hear is that a DBA is a DBA (or sometimes, a SQL
Server/Oracle DBA might be closer to what we want than a DB2 on z/OS
DBA) - trying to ferret out experience of clustering, federation, or
any other high availability or partitioned solution (yes, I know
there's a lot of concepts packed up in there that could be successfully
taken apart...)

BTW, what is an inline view in DB2?
OK:
SELECT max(bookings)
FROM (SELECT booking_date, count(bookings)
FROM generic.booking _table
GROUP BY booking_date) as a;
This gives me the most bookings I've had in one day. What's being
referred to as a is an inline view.

Or at least, that's what we've been told to call it in the past.

Sep 5 '06 #9

DA Morgan wrote:
>
And as Mark Townsend said ... DB2 has no technology equivalent to RAC so
bringing up an Oracle product serves no obvious purpose.
--
Daniel Morgan
University of Washington
Thanks Daniel. 4 & 6 are particularly nice questions. As to the RAC
question, as I think I said in my reply to Mark, it's more a general
question to get an idea of what they've touched in that general space.
Plus when you have salespeople telling you that HADR is the same as
RAC, and you have your own misgivings about believing this, it's always
interesting to canvas a few other opinions.

Sep 5 '06 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

29
3025
by: RAY | last post by:
Hi , my boss has asked I sit in on an interview this afternoon and that I create some interview questions on the person's experience. What is C++ used for and why would a company benefit from someone who could use it? I would like you guys/and gals to give me some good questions & the correct answers so I can give this person a good review for my boss.
72
5884
by: E. Robert Tisdale | last post by:
What makes a good C/C++ programmer? Would you be surprised if I told you that it has almost nothing to do with your knowledge of C or C++? There isn't much difference in productivity, for example, between a C/C++ programmers with a few weeks of experience and a C/C++ programmer with years of experience. You don't really need to understand the subtle details or use the obscure features of either language
5
1370
by: opistobranchia | last post by:
I know this gets asked all the time but..... I am a fresh grad. I have taken a year of java and 1/2 year of C++ and OO Design and Analysis. I have strong Java skills and I have done projects in c++. But I am pretty sure that I am getting this job as a java/C++ software engineer. I want to put out a good impression since it is with a real good company and a great opportunity for me with real smart people. What book do you rec. that I...
121
10130
by: typingcat | last post by:
First of all, I'm an Asian and I need to input Japanese, Korean and so on. I've tried many PHP IDEs today, but almost non of them supported Unicode (UTF-8) file. I've found that the only Unicode support IDEs are DreamWeaver 8 and Zend PHP Studio. DreamWeaver provides full support for Unicode. However, DreamWeaver is a web editor rather than a PHP IDE. It only supports basic IntelliSense (or code completion) and doesn't have anything...
1
4282
by: cylin | last post by:
Dear all, I am a newbie using lex and yacc. I really don't know what's wrong with my code, because the output is not what I want. My yacc rules don't match, and yylex seems just read only one line of the text file. Please help...thx.
4
3612
by: Alan | last post by:
Is anyone know the equivalent term used for Dynamic Link Library (DLL) in unix environment?? Thanks Alan
56
4338
by: Cherrish Vaidiyan | last post by:
Frinds, Hope everyone is doing fine.i feel pointers to be the most toughest part in C. i have just completed learning pointers & arrays related portions. I need to attend technical interview on C. wat type of questions should be expected? Which part of C language do the staff give more concern? The interviewers have just mentioned that .. i will have interview on C. Also can anyone can help me with sites where i can go thru sample
8
3170
by: Midnight Java Junkie | last post by:
Dear Colleagues: I feel that the dumbest questions are those that are never asked. I have been given the opportunity to get into .NET. Our organization has a subscription with Microsoft that basically entitled to us to just about every .Net development tool you can imagine. I cant even begin to mention them. To begin with, my background is not that of a programmer, but a systems engineer and the closest I have come to "programming"...
7
2805
by: Michael | last post by:
Hi, What's the benefit to dynamically allocate memory? using namespace std; int main() { char* ptr; ptr="abc";
0
8991
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8831
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
9326
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9249
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8245
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6796
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4607
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
2787
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2215
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.