Welcome to Scribd. Sign in or start your free trial to enjoy unlimited e-books, audiobooks & documents.Find out more
Download
Standard view
Full view
of .
Look up keyword
Like this
82Activity
0 of .
Results for:
No results containing your search query
P. 1
Db2 Interview Questions

Db2 Interview Questions

Ratings: (0)|Views: 1,129|Likes:
Published by sroul4
Interveiw questions
Interveiw questions

More info:

Categories:Types, Resumes & CVs
Published by: sroul4 on Nov 08, 2009
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as DOC, PDF, TXT or read online from Scribd
See more
See less

01/16/2013

pdf

text

original

 
DB2 INTERVIEW QUESTIONS
 
1) How would you find outthe total number of rowsin a DB2 table?
Use SELECT COUNT(*) ... indb2 query
2) How do you eliminateduplicate values in DB2SELECT ?
Use SELECT DISTINCT ... indb2 query
3) How do you select a rowusing indexes in DB2?
Specify the indexed columnsin the WHERE clause of db2query.
4) How do you find themaximum value in acolumn in db2?
Use SELECT MAX(...) .. in db2query
 DB2 INTERVIEWQUESTIONS - advertisement
5) How do you retrieve the first 5 characters of FIRSTNAME column of DB2 table EMP ?
 
SQL Query : SELECT SUBSTR(FIRSTNAME,1,5) FROM EMP;
6) What are aggregate functions?
Bulit-in mathematical functions for use in SELECT clause.
7) Can you use MAX on a CHAR column?
 YES.
8) My SQL statement SELECT AVG(SALARY) FROMEMP yields inaccurate results. Why?
Because SALARY is not declared to have NULLs and theemployees for whom the salary is not known are alsocounted.
9) How do you concatenate the FIRSTNAME andLASTNAME from EMP table to give a completename?
SELECT FIRSTNAME ||
・・
|| LASTNAME FROM EMP;
10) What is the use of VALUE function?
1. Avoid -ve SQLCODEs by handling nulls and zeroes incomputations2. Substitute a numeric value for any nulls used incomputation
 
11) What is UNION,UNION ALL?
UNION : eliminates duplicatesUNION ALL: retains duplicatesBoth these are used to combine the results of differentSELECT statements.Suppose I have five SQL SELECT statements connectedby UNION/UNION ALL, how many times should I specifyUNION to eliminate the duplicate rows? -Once.
12) What is the restriction on using UNION inembedded SQL?
It has to be in a CURSOR.
13) In the WHERE clause what is BETWEEN and IN?
BETWEEN supplies a range of values while IN supplies alist of values.
14) Is BETWEEN inclusive of the range valuesspecified?
 Yes.
15) What is 'LIKE' used for in WHERE clause? Whatare the wildcard characters?

Activity (82)

You've already reviewed this. Edit your review.
1 hundred reads
1 thousand reads
brightfulindia3 liked this
Shani Suthar liked this
anuppdas liked this
vishal4683 liked this
mankand0077649 liked this
Subhajit Sen liked this
vinothkumar2008 liked this
prajeeshkv liked this

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->