SlideShare ist ein Scribd-Unternehmen logo
1 von 30
Top 20 db2 interview questions and 
answers 
If you need top 7 free ebooks below for your job interview, please visit: 
4career.net 
• Free ebook: 75 interview questions and answers 
• Top 12 secrets to win every job interviews 
• 13 types of interview quesitons and how to face them 
• Top 8 interview thank you letter samples 
• Top 7 cover letter samples 
• Top 8 resume samples 
• Top 15 ways to search new jobs 
Interview questions and answers – free pdf download Page 1 of 30
Tell me about yourself? 
This is probably the most asked 
question in db2 interview. It breaks the 
ice and gets you to talk about 
something you should be fairly 
comfortable with. Have something 
prepared that doesn't sound rehearsed. 
It's not about you telling your life story 
and quite frankly, the interviewer just 
isn't interested. Unless asked to do so, 
stick to your education, career and 
current situation. Work through it 
chronologically from the furthest back 
to the present. 
Interview questions and answers – free pdf download Page 2 of 30
Why SELECT * is not preferred in embedded 
SQL programs? 
For three reasons: 
If the table structure is changed ( a 
field is added ), the program will have 
to be modified 
Program might retrieve the columns 
which it might not use, leading on I/O 
over head. 
The chance of an index only scan is 
lost. 
What are correlated subqueries? - 
A subquery in which the inner 
( nested ) query refers back to the table 
in the outer query. Correlated 
subqueries must be evaluated for each 
qualified row of the outer query that is 
referred to. 
Interview questions and answers – free pdf download Page 3 of 30
What Can You Do for Us That Other Candidates 
Can't? 
What makes you unique? This 
will take an assessment of 
your experiences, skills and 
traits. Summarize concisely: 
"I have a unique combination 
of strong technical skills, and 
the ability to build strong 
customer relationships. This 
allows me to use my 
knowledge and break down 
information to be more user-friendly." 
Interview questions and answers – free pdf download Page 4 of 30
What is UNION,UNION ALL? 
UNION : eliminates duplicates 
UNION ALL: retains duplicates 
Both these are used to combine the 
results of different SELECT statements. 
Suppose I have five SQL SELECT 
statements connected by 
UNION/UNION ALL, how many times 
should I specify UNION to eliminate 
the duplicate rows? - Once. 
Interview questions and answers – free pdf download Page 5 of 30
What is a cursor? why should it be used? 
Cursor is a programming device that 
allows the SELECT to find a set of 
rows but return them one at a time. 
Cursor should be used because the 
host language can deal with only one 
row at a time. 
Interview questions and answers – free pdf download Page 6 of 30
How would you retrieve rows from a DB2 table in 
embedded SQL? 
Either by using the single row 
SELECT statements, or by using the 
CURSOR. 
Apart from cursor, what other ways 
are available to you to retrieve a row 
from a table in embedded SQL? - 
Single row SELECTs. 
Interview questions and answers – free pdf download Page 7 of 30
Is it mandatory to use DCLGEN? If not, why 
would you use it at all? 
It is not mandatory to use DCLGEN. 
Using DCLGEN, helps detect 
wrongly spelt column names etc. 
during the pre-compile stage itself 
( because of the DECLARE 
TABLE ). DCLGEN being a tool, 
would generate accurate host variable 
definitions for the table reducing 
chances of error. 
Interview questions and answers – free pdf download Page 8 of 30
How is a typical DB2 batch pgm executed ? 
1. Use DSN utility to run a DB2 batch 
program from native TSO. An example 
is shown: 
DSN SYSTEM(DSP3) 
RUN PROGRAM(EDD470BD) 
PLAN(EDD470BD) LIB('ED 
01T.OBJ.LOADLIB') 
END 
2. Use IKJEFT01 utility program to run 
the above DSN command in a JCL. 
Assuming that a site�s standard is 
that pgm name = plan name, what is the 
easiest way to find out which pgms are 
affected by change in a table�s 
structure ? 
Query the catalogue tables 
SYSPLANDEP and SYSPACKDEP. 
Interview questions and answers – free pdf download Page 9 of 30
What is lock escalation? 
Promoting a PAGE lock-size to table 
or tablespace lock-size when a 
transaction has acquired more locks 
than specified in NUMLKTS. Locks 
should be taken on objects in single 
tablespace for escalation to occur. 
Interview questions and answers – free pdf download Page 10 of 30
When do you specify the isolation level? How 
During the BIND process. 
ISOLATION ( CS/RR )... 
I use CS and update a page. Will the 
lock be released after I am done with 
that page? 
No. 
Interview questions and answers – free pdf download Page 11 of 30
What do you accomplish by GROUP BY ... 
HAVING clause? 
GROUP BY partitions the selected 
rows on the distinct values of the 
column on which you group by. 
HAVING selects GROUPs which 
match the criteria specified 
Interview questions and answers – free pdf download Page 12 of 30
What happens when you say OPEN CURSOR? 
If there is an ORDER BY clause, 
rows are fetched, sorted and made 
available for the FETCH 
statement. Other wise simply the 
cursor is placed on the first row. 
Interview questions and answers – free pdf download Page 13 of 30
What are the contents of a DCLGEN? 
1. EXEC SQL DECLARE TABLE 
statement which gives the layout of the 
table/view in terms of DB2 datatypes. 
2. A host language copy book that gives 
the host variable definitions for the column 
names. 
Interview questions and answers – free pdf download Page 14 of 30
How does DB2 determine what lock-size to use? 
 
1. Based on the lock-size given while 
creating the tablespace 
2. Programmer can direct the DB2 what 
lock-size to use 
3. If lock-size ANY is specified, DB2 
usually chooses a lock-size of PAGE 
Interview questions and answers – free pdf download Page 15 of 30
When do you use a LIKE statement? 
To do partial search e.g. to search 
employee by name, you need not 
specify the complete name; using 
LIKE, you can search for partial string 
matches. 
Interview questions and answers – free pdf download Page 16 of 30
How do you simulate the EXPLAIN of an 
embedded SQL statement in SPUFI/QMF? Give 
an example with a host variable in WHERE 
clause. 
Use a question mark in place of a host 
variable ( or an unknown value ). e.g. 
SELECT EMP_NAME 
FROM EMP 
WHERE EMP_SALARY > ? 
Interview questions and answers – free pdf download Page 17 of 30
What is DCLGEN ? Is DECLARE TABLE in 
DCLGEN necessary? Why it used? 
DeCLarations GENerator: used to 
create the host language copy books for 
the table definitions. Also creates the 
DECLARE table. 
It not necessary to have DECLARE 
TABLE statement in DCLGEN. This is 
used by the pre-compiler to validate the 
table-name, view-name, column name 
etc., during pre-compile. 
Interview questions and answers – free pdf download Page 18 of 30
How do you do the EXPLAIN of a dynamic SQL 
statement? 
1. Use SPUFI or QMF to EXPLAIN 
the dynamic SQL statement 
2. Include EXPLAIN command in the 
embedded dynamic SQL statements 
Interview questions and answers – free pdf download Page 19 of 30
What is the use of VALUE function? 
1. Avoid -ve SQLCODEs by handling 
nulls and zeroes in computations 
2. Substitute a numeric value for any 
nulls used in computation 
Interview questions and answers – free pdf download Page 20 of 30
My SQL statement SELECT AVG(SALARY) FROM 
EMP yields inaccurate results. Why? 
Because SALARY is not declared to 
have NULLs and the employees for 
whom the salary is not known are also 
counted. 
Interview questions and answers – free pdf download Page 21 of 30
Useful job interview materials: 
If you need top free ebooks below for your job interview, please visit: 
4career.net 
• Free ebook: 75 interview questions and answers 
• Top 12 secrets to win every job interviews 
• Top 36 situational interview questions 
• 440 behavioral interview questions 
• 95 management interview questions and answers 
• 30 phone interview questions 
• Top 8 interview thank you letter samples 
• 290 competency based interview questions 
• 45 internship interview questions 
• Top 7 cover letter samples 
• Top 8 resume samples 
• Top 15 ways to search new jobs 
Interview questions and answers – free pdf download Page 22 of 30
Top 6 tips for job interview 
Interview questions and answers – free pdf download Page 23 of 30
Tip 1: Do your homework 
You'll likely be asked difficult questions 
during the interview. Preparing the list of 
likely questions in advance will help you 
easily transition from question to question. 
Spend time researching the company. Look 
at its site to understand its mission statement, 
product offerings, and management team. A 
few hours spent researching before your 
interview can impress the hiring manager 
greatly. Read the company's annual report 
(often posted on the site), review the 
employee's LinkedIn profiles, and search the 
company on Google News, to see if they've 
been mentioned in the media lately. The 
more you know about a company, the more 
you'll know how you'll fit in to it. 
Ref material: 4career.net/job-interview-checklist- 
40-points 
Interview questions and answers – free pdf download Page 24 of 30
Tip 2: First impressions 
When meeting someone for the first time, we 
instantaneously make our minds about various aspects of 
their personality. 
Prepare and plan that first impression long before you 
walk in the door. Continue that excellent impression in 
the days following, and that job could be yours. 
Therefore: 
· Never arrive late. 
· Use positive body language and turn on your 
charm right from the start. 
· Switch off your mobile before you step into the 
room. 
· Look fabulous; dress sharp and make sure you look 
your best. 
· Start the interview with a handshake; give a nice 
firm press and then some up and down movement. 
· Determine to establish a rapport with the 
interviewer right from the start. 
· Always let the interviewer finish speaking before 
giving your response. 
· Express yourself fluently with clarity and 
precision. 
Useful material: 4career.net/top-10-elements-to-make-a- 
Interview questions and answers – free pdf download Page 25 of 30
good-first-impression-at-a-job-interview 
Tip 3: The “Hidden” Job Market 
Many of us don’t recognize that hidden job 
market is a huge one and accounts for 2/3 
of total job demand from enterprises. This 
means that if you know how to exploit a 
hidden job market, you can increase your 
chance of getting the job up to 300%. 
In this section, the author shares his 
experience and useful tips to exploit hidden 
job market. 
Here are some sources to get penetrating 
into a hidden job market: Friends; Family; 
Ex-coworkers; Referral; HR communities; 
Field communities; Social networks such 
as Facebook, Twitter…; Last recruitment 
ads from recruiters; HR emails of potential 
recruiters… 
Interview questions and answers – free pdf download Page 26 of 30
Tip 4: Do-It-Yourself Interviewing Practice 
There are a number of ways to prepare 
for an interview at home without the 
help of a professional career counselor 
or coach or a fee-based service. 
You can practice interviews all by 
yourself or recruit friends and family to 
assist you. 
Useful material: 4career.net/free-ebook- 
75-interview-questions-and-answers 
Interview questions and answers – free pdf download Page 27 of 30
Tip 5: Ask questions 
Do not leave the interview without 
ensuring that you know all that you 
want to know about the position. Once 
the interview is over, your chance to 
have important questions answered has 
ended. Asking questions also can show 
that you are interested in the job. Be 
specific with your questions. Ask about 
the company and the industry. Avoid 
asking personal questions of the 
interviewer and avoid asking questions 
pertaining to politics, religion and the 
like. 
Ref material: 4career.net/25-questions-to- 
ask-employers-during-your-job- 
Interview questions and answers – free pdf download Page 28 of 30
interview 
Tip 6: Follow up and send a thank-you note 
Interview questions and answers – free pdf download Page 29 of 30
Following up after an interview can 
help you make a lasting impression and 
set you apart from the crowd. 
Philip Farina, CPP, a security career 
expert at Manta Security Management 
Recruiters, says: "Send both an email as 
well as a hard-copy thank-you note, 
expressing excitement, qualifications 
and further interest in the position. 
Invite the hiring manager to contact you 
for additional information. This is also 
an excellent time to send a strategic 
follow-up letter of interest." 
Ref material: 4career.net/top-8- 
interview-thank-you-letter-samples 
Interview questions and answers – free pdf download Page 30 of 30

Weitere ähnliche Inhalte

Andere mochten auch

Mainframe refresher-part-1
Mainframe refresher-part-1Mainframe refresher-part-1
Mainframe refresher-part-1
vishwas17
 
Mainframe jcl exec and dd statements part - 3
Mainframe jcl exec and dd statements part - 3Mainframe jcl exec and dd statements part - 3
Mainframe jcl exec and dd statements part - 3
janaki ram
 
DB2UDB_the_Basics Day 4
DB2UDB_the_Basics Day 4DB2UDB_the_Basics Day 4
DB2UDB_the_Basics Day 4
Pranav Prakash
 
Top 9 db2 interview questions answers
Top 9 db2 interview questions answersTop 9 db2 interview questions answers
Top 9 db2 interview questions answers
Jobinterviews
 
IMSBufferpool Tuning concept AMS presentation v01
IMSBufferpool Tuning concept AMS presentation v01IMSBufferpool Tuning concept AMS presentation v01
IMSBufferpool Tuning concept AMS presentation v01
Manoj Kaveri
 

Andere mochten auch (12)

Top jcl interview questions and answers job interview tips
Top jcl interview questions and answers job interview tipsTop jcl interview questions and answers job interview tips
Top jcl interview questions and answers job interview tips
 
Cobol interview-questions
Cobol interview-questionsCobol interview-questions
Cobol interview-questions
 
Mainframe interview
Mainframe interviewMainframe interview
Mainframe interview
 
Mainframe refresher-part-1
Mainframe refresher-part-1Mainframe refresher-part-1
Mainframe refresher-part-1
 
Mainframe jcl exec and dd statements part - 3
Mainframe jcl exec and dd statements part - 3Mainframe jcl exec and dd statements part - 3
Mainframe jcl exec and dd statements part - 3
 
Basic java important interview questions and answers to secure a job
Basic java important interview questions and answers to secure a jobBasic java important interview questions and answers to secure a job
Basic java important interview questions and answers to secure a job
 
DB2UDB_the_Basics Day 4
DB2UDB_the_Basics Day 4DB2UDB_the_Basics Day 4
DB2UDB_the_Basics Day 4
 
Top 9 db2 interview questions answers
Top 9 db2 interview questions answersTop 9 db2 interview questions answers
Top 9 db2 interview questions answers
 
IMSBufferpool Tuning concept AMS presentation v01
IMSBufferpool Tuning concept AMS presentation v01IMSBufferpool Tuning concept AMS presentation v01
IMSBufferpool Tuning concept AMS presentation v01
 
SKILLWISE-DB2 DBA
SKILLWISE-DB2 DBASKILLWISE-DB2 DBA
SKILLWISE-DB2 DBA
 
Major Relational Database Management Systems...
Major Relational Database Management Systems...Major Relational Database Management Systems...
Major Relational Database Management Systems...
 
Db2 For I Parallel Data Load
Db2 For I Parallel Data LoadDb2 For I Parallel Data Load
Db2 For I Parallel Data Load
 

Kürzlich hochgeladen

Gardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch LetterGardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch Letter
MateoGardella
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
heathfieldcps1
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdf
Chris Hunter
 

Kürzlich hochgeladen (20)

Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 
Gardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch LetterGardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch Letter
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdf
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 

Top db2 interview questions and answers job interview tips

  • 1. Top 20 db2 interview questions and answers If you need top 7 free ebooks below for your job interview, please visit: 4career.net • Free ebook: 75 interview questions and answers • Top 12 secrets to win every job interviews • 13 types of interview quesitons and how to face them • Top 8 interview thank you letter samples • Top 7 cover letter samples • Top 8 resume samples • Top 15 ways to search new jobs Interview questions and answers – free pdf download Page 1 of 30
  • 2. Tell me about yourself? This is probably the most asked question in db2 interview. It breaks the ice and gets you to talk about something you should be fairly comfortable with. Have something prepared that doesn't sound rehearsed. It's not about you telling your life story and quite frankly, the interviewer just isn't interested. Unless asked to do so, stick to your education, career and current situation. Work through it chronologically from the furthest back to the present. Interview questions and answers – free pdf download Page 2 of 30
  • 3. Why SELECT * is not preferred in embedded SQL programs? For three reasons: If the table structure is changed ( a field is added ), the program will have to be modified Program might retrieve the columns which it might not use, leading on I/O over head. The chance of an index only scan is lost. What are correlated subqueries? - A subquery in which the inner ( nested ) query refers back to the table in the outer query. Correlated subqueries must be evaluated for each qualified row of the outer query that is referred to. Interview questions and answers – free pdf download Page 3 of 30
  • 4. What Can You Do for Us That Other Candidates Can't? What makes you unique? This will take an assessment of your experiences, skills and traits. Summarize concisely: "I have a unique combination of strong technical skills, and the ability to build strong customer relationships. This allows me to use my knowledge and break down information to be more user-friendly." Interview questions and answers – free pdf download Page 4 of 30
  • 5. What is UNION,UNION ALL? UNION : eliminates duplicates UNION ALL: retains duplicates Both these are used to combine the results of different SELECT statements. Suppose I have five SQL SELECT statements connected by UNION/UNION ALL, how many times should I specify UNION to eliminate the duplicate rows? - Once. Interview questions and answers – free pdf download Page 5 of 30
  • 6. What is a cursor? why should it be used? Cursor is a programming device that allows the SELECT to find a set of rows but return them one at a time. Cursor should be used because the host language can deal with only one row at a time. Interview questions and answers – free pdf download Page 6 of 30
  • 7. How would you retrieve rows from a DB2 table in embedded SQL? Either by using the single row SELECT statements, or by using the CURSOR. Apart from cursor, what other ways are available to you to retrieve a row from a table in embedded SQL? - Single row SELECTs. Interview questions and answers – free pdf download Page 7 of 30
  • 8. Is it mandatory to use DCLGEN? If not, why would you use it at all? It is not mandatory to use DCLGEN. Using DCLGEN, helps detect wrongly spelt column names etc. during the pre-compile stage itself ( because of the DECLARE TABLE ). DCLGEN being a tool, would generate accurate host variable definitions for the table reducing chances of error. Interview questions and answers – free pdf download Page 8 of 30
  • 9. How is a typical DB2 batch pgm executed ? 1. Use DSN utility to run a DB2 batch program from native TSO. An example is shown: DSN SYSTEM(DSP3) RUN PROGRAM(EDD470BD) PLAN(EDD470BD) LIB('ED 01T.OBJ.LOADLIB') END 2. Use IKJEFT01 utility program to run the above DSN command in a JCL. Assuming that a site�s standard is that pgm name = plan name, what is the easiest way to find out which pgms are affected by change in a table�s structure ? Query the catalogue tables SYSPLANDEP and SYSPACKDEP. Interview questions and answers – free pdf download Page 9 of 30
  • 10. What is lock escalation? Promoting a PAGE lock-size to table or tablespace lock-size when a transaction has acquired more locks than specified in NUMLKTS. Locks should be taken on objects in single tablespace for escalation to occur. Interview questions and answers – free pdf download Page 10 of 30
  • 11. When do you specify the isolation level? How During the BIND process. ISOLATION ( CS/RR )... I use CS and update a page. Will the lock be released after I am done with that page? No. Interview questions and answers – free pdf download Page 11 of 30
  • 12. What do you accomplish by GROUP BY ... HAVING clause? GROUP BY partitions the selected rows on the distinct values of the column on which you group by. HAVING selects GROUPs which match the criteria specified Interview questions and answers – free pdf download Page 12 of 30
  • 13. What happens when you say OPEN CURSOR? If there is an ORDER BY clause, rows are fetched, sorted and made available for the FETCH statement. Other wise simply the cursor is placed on the first row. Interview questions and answers – free pdf download Page 13 of 30
  • 14. What are the contents of a DCLGEN? 1. EXEC SQL DECLARE TABLE statement which gives the layout of the table/view in terms of DB2 datatypes. 2. A host language copy book that gives the host variable definitions for the column names. Interview questions and answers – free pdf download Page 14 of 30
  • 15. How does DB2 determine what lock-size to use? 1. Based on the lock-size given while creating the tablespace 2. Programmer can direct the DB2 what lock-size to use 3. If lock-size ANY is specified, DB2 usually chooses a lock-size of PAGE Interview questions and answers – free pdf download Page 15 of 30
  • 16. When do you use a LIKE statement? To do partial search e.g. to search employee by name, you need not specify the complete name; using LIKE, you can search for partial string matches. Interview questions and answers – free pdf download Page 16 of 30
  • 17. How do you simulate the EXPLAIN of an embedded SQL statement in SPUFI/QMF? Give an example with a host variable in WHERE clause. Use a question mark in place of a host variable ( or an unknown value ). e.g. SELECT EMP_NAME FROM EMP WHERE EMP_SALARY > ? Interview questions and answers – free pdf download Page 17 of 30
  • 18. What is DCLGEN ? Is DECLARE TABLE in DCLGEN necessary? Why it used? DeCLarations GENerator: used to create the host language copy books for the table definitions. Also creates the DECLARE table. It not necessary to have DECLARE TABLE statement in DCLGEN. This is used by the pre-compiler to validate the table-name, view-name, column name etc., during pre-compile. Interview questions and answers – free pdf download Page 18 of 30
  • 19. How do you do the EXPLAIN of a dynamic SQL statement? 1. Use SPUFI or QMF to EXPLAIN the dynamic SQL statement 2. Include EXPLAIN command in the embedded dynamic SQL statements Interview questions and answers – free pdf download Page 19 of 30
  • 20. What is the use of VALUE function? 1. Avoid -ve SQLCODEs by handling nulls and zeroes in computations 2. Substitute a numeric value for any nulls used in computation Interview questions and answers – free pdf download Page 20 of 30
  • 21. My SQL statement SELECT AVG(SALARY) FROM EMP yields inaccurate results. Why? Because SALARY is not declared to have NULLs and the employees for whom the salary is not known are also counted. Interview questions and answers – free pdf download Page 21 of 30
  • 22. Useful job interview materials: If you need top free ebooks below for your job interview, please visit: 4career.net • Free ebook: 75 interview questions and answers • Top 12 secrets to win every job interviews • Top 36 situational interview questions • 440 behavioral interview questions • 95 management interview questions and answers • 30 phone interview questions • Top 8 interview thank you letter samples • 290 competency based interview questions • 45 internship interview questions • Top 7 cover letter samples • Top 8 resume samples • Top 15 ways to search new jobs Interview questions and answers – free pdf download Page 22 of 30
  • 23. Top 6 tips for job interview Interview questions and answers – free pdf download Page 23 of 30
  • 24. Tip 1: Do your homework You'll likely be asked difficult questions during the interview. Preparing the list of likely questions in advance will help you easily transition from question to question. Spend time researching the company. Look at its site to understand its mission statement, product offerings, and management team. A few hours spent researching before your interview can impress the hiring manager greatly. Read the company's annual report (often posted on the site), review the employee's LinkedIn profiles, and search the company on Google News, to see if they've been mentioned in the media lately. The more you know about a company, the more you'll know how you'll fit in to it. Ref material: 4career.net/job-interview-checklist- 40-points Interview questions and answers – free pdf download Page 24 of 30
  • 25. Tip 2: First impressions When meeting someone for the first time, we instantaneously make our minds about various aspects of their personality. Prepare and plan that first impression long before you walk in the door. Continue that excellent impression in the days following, and that job could be yours. Therefore: · Never arrive late. · Use positive body language and turn on your charm right from the start. · Switch off your mobile before you step into the room. · Look fabulous; dress sharp and make sure you look your best. · Start the interview with a handshake; give a nice firm press and then some up and down movement. · Determine to establish a rapport with the interviewer right from the start. · Always let the interviewer finish speaking before giving your response. · Express yourself fluently with clarity and precision. Useful material: 4career.net/top-10-elements-to-make-a- Interview questions and answers – free pdf download Page 25 of 30
  • 26. good-first-impression-at-a-job-interview Tip 3: The “Hidden” Job Market Many of us don’t recognize that hidden job market is a huge one and accounts for 2/3 of total job demand from enterprises. This means that if you know how to exploit a hidden job market, you can increase your chance of getting the job up to 300%. In this section, the author shares his experience and useful tips to exploit hidden job market. Here are some sources to get penetrating into a hidden job market: Friends; Family; Ex-coworkers; Referral; HR communities; Field communities; Social networks such as Facebook, Twitter…; Last recruitment ads from recruiters; HR emails of potential recruiters… Interview questions and answers – free pdf download Page 26 of 30
  • 27. Tip 4: Do-It-Yourself Interviewing Practice There are a number of ways to prepare for an interview at home without the help of a professional career counselor or coach or a fee-based service. You can practice interviews all by yourself or recruit friends and family to assist you. Useful material: 4career.net/free-ebook- 75-interview-questions-and-answers Interview questions and answers – free pdf download Page 27 of 30
  • 28. Tip 5: Ask questions Do not leave the interview without ensuring that you know all that you want to know about the position. Once the interview is over, your chance to have important questions answered has ended. Asking questions also can show that you are interested in the job. Be specific with your questions. Ask about the company and the industry. Avoid asking personal questions of the interviewer and avoid asking questions pertaining to politics, religion and the like. Ref material: 4career.net/25-questions-to- ask-employers-during-your-job- Interview questions and answers – free pdf download Page 28 of 30
  • 29. interview Tip 6: Follow up and send a thank-you note Interview questions and answers – free pdf download Page 29 of 30
  • 30. Following up after an interview can help you make a lasting impression and set you apart from the crowd. Philip Farina, CPP, a security career expert at Manta Security Management Recruiters, says: "Send both an email as well as a hard-copy thank-you note, expressing excitement, qualifications and further interest in the position. Invite the hiring manager to contact you for additional information. This is also an excellent time to send a strategic follow-up letter of interest." Ref material: 4career.net/top-8- interview-thank-you-letter-samples Interview questions and answers – free pdf download Page 30 of 30