<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-6722584265011481915</id><updated>2011-11-27T15:57:57.019-08:00</updated><category term='IBM DB2'/><title type='text'>IBM DB2 Interview Questions - An interviewhelper.org blog</title><subtitle type='html'>This blog contains common IBM DB2 interview questions asked by different organizations.&lt;br&gt;&lt;br&gt;
For more such interview questions, please visit our website &lt;a href="http://interviewhelper.org"&gt;Interview Helper&lt;/a&gt;........&lt;a href="http://interviewhelper.org"&gt;&lt;img src="http://interviewhelper.org/images/interviewhelper.jpg" width="200" height="73" border="0"&gt;&lt;/a&gt;</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://ibmdb2-interview-questions.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Interview Helper</name><uri>http://www.blogger.com/profile/00019571984377897004</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='12' src='http://1.bp.blogspot.com/_AdNUW2U2OOs/SYHHT9_iGqI/AAAAAAAAAAM/PzlYVvYWMac/s1600-R/interviewhelper.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>98</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-6722584265011481915.post-2795364536901814098</id><published>2009-03-06T22:28:00.000-08:00</published><updated>2009-03-06T22:29:08.859-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='IBM DB2'/><title type='text'>What do you mean by NOT NULL WITH DEFAULT  When will you use it</title><content type='html'>&lt;strong&gt;Question :What do you mean by NOT NULL WITH DEFAULT? When will you use it?&lt;/strong&gt;&lt;br /&gt;Answer :This column cannot have nulls and while insertion, if no value is supplied then it wil have zeroes, spaces or date/time depending on whether it is numeric, character or date/time. Use it when you do not want to have nulls but at the same time cannot give values all the time you insert this row&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722584265011481915-2795364536901814098?l=ibmdb2-interview-questions.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ibmdb2-interview-questions.blogspot.com/feeds/2795364536901814098/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/what-do-you-mean-by-not-null-with.html#comment-form' title='37 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/2795364536901814098'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/2795364536901814098'/><link rel='alternate' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/what-do-you-mean-by-not-null-with.html' title='What do you mean by NOT NULL WITH DEFAULT  When will you use it'/><author><name>Interview Helper</name><uri>http://www.blogger.com/profile/00019571984377897004</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='12' src='http://1.bp.blogspot.com/_AdNUW2U2OOs/SYHHT9_iGqI/AAAAAAAAAAM/PzlYVvYWMac/s1600-R/interviewhelper.jpg'/></author><thr:total>37</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722584265011481915.post-2726018582976330646</id><published>2009-03-06T22:27:00.000-08:00</published><updated>2009-03-06T22:28:10.634-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='IBM DB2'/><title type='text'>What is the difference between SYNONYM and ALIAS</title><content type='html'>&lt;strong&gt;Question :What is the difference between SYNONYM and ALIAS?&lt;/strong&gt;&lt;br /&gt;Answer :SYNONYM: is dropped when the table or tablespace is dropped. Synonym is available only to the creator. ALIAS: is retained even if table or tablespace is dropped. ALIAS can be created even if the table does not exist. It is used mainly in distributed environment to hide the location info from programs. Alias is a global object &amp;amp; is available to all.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722584265011481915-2726018582976330646?l=ibmdb2-interview-questions.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ibmdb2-interview-questions.blogspot.com/feeds/2726018582976330646/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/what-is-difference-between-synonym-and.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/2726018582976330646'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/2726018582976330646'/><link rel='alternate' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/what-is-difference-between-synonym-and.html' title='What is the difference between SYNONYM and ALIAS'/><author><name>Interview Helper</name><uri>http://www.blogger.com/profile/00019571984377897004</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='12' src='http://1.bp.blogspot.com/_AdNUW2U2OOs/SYHHT9_iGqI/AAAAAAAAAAM/PzlYVvYWMac/s1600-R/interviewhelper.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722584265011481915.post-5174999584442144216</id><published>2009-03-06T22:26:00.002-08:00</published><updated>2009-03-06T22:27:28.323-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='IBM DB2'/><title type='text'>What is index cardinality</title><content type='html'>&lt;strong&gt;Question :What is index cardinality? ?&lt;/strong&gt;&lt;br /&gt;Answer :The number of distinct values a column or columns contain. 103) What is a synonym ? Synonym is an alternate name for a table or view used mainly to hide the leading qualifier of a table or view.. A synonym is accessible only by the creator.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722584265011481915-5174999584442144216?l=ibmdb2-interview-questions.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ibmdb2-interview-questions.blogspot.com/feeds/5174999584442144216/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/what-is-index-cardinality.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/5174999584442144216'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/5174999584442144216'/><link rel='alternate' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/what-is-index-cardinality.html' title='What is index cardinality'/><author><name>Interview Helper</name><uri>http://www.blogger.com/profile/00019571984377897004</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='12' src='http://1.bp.blogspot.com/_AdNUW2U2OOs/SYHHT9_iGqI/AAAAAAAAAAM/PzlYVvYWMac/s1600-R/interviewhelper.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722584265011481915.post-7985630797803604296</id><published>2009-03-06T22:26:00.001-08:00</published><updated>2009-03-06T22:26:44.498-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='IBM DB2'/><title type='text'>What is filter factor</title><content type='html'>&lt;strong&gt;Question :What is filter factor?&lt;/strong&gt;&lt;br /&gt;Answer :one divided by the number of distinct values of a column.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722584265011481915-7985630797803604296?l=ibmdb2-interview-questions.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ibmdb2-interview-questions.blogspot.com/feeds/7985630797803604296/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/what-is-filter-factor.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/7985630797803604296'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/7985630797803604296'/><link rel='alternate' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/what-is-filter-factor.html' title='What is filter factor'/><author><name>Interview Helper</name><uri>http://www.blogger.com/profile/00019571984377897004</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='12' src='http://1.bp.blogspot.com/_AdNUW2U2OOs/SYHHT9_iGqI/AAAAAAAAAAM/PzlYVvYWMac/s1600-R/interviewhelper.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722584265011481915.post-4547762360351394864</id><published>2009-03-06T22:24:00.000-08:00</published><updated>2009-03-06T22:25:38.623-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='IBM DB2'/><title type='text'>What are simple, segmented and partitioned table spaces</title><content type='html'>&lt;strong&gt;Question :What are simple, segmented and partitioned table spaces ?&lt;/strong&gt;&lt;br /&gt;Answer :Simple Tablespace: Can contain one or more tables Rows from multiple tables can be interleaved on a page under the DBAs control and maintenance Segmented Tablespace: Can contain one or more tables Tablespace is divided into segments of 4 to 64 pages in increments of 4 pages. Each segment is dedicated to single table. A table can occupy multiple segments Partitioned Tablespace: Can contain one table Tablespace is divided into parts and each part is put in a separate VSAM dataset.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722584265011481915-4547762360351394864?l=ibmdb2-interview-questions.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ibmdb2-interview-questions.blogspot.com/feeds/4547762360351394864/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/what-are-simple-segmented-and.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/4547762360351394864'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/4547762360351394864'/><link rel='alternate' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/what-are-simple-segmented-and.html' title='What are simple, segmented and partitioned table spaces'/><author><name>Interview Helper</name><uri>http://www.blogger.com/profile/00019571984377897004</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='12' src='http://1.bp.blogspot.com/_AdNUW2U2OOs/SYHHT9_iGqI/AAAAAAAAAAM/PzlYVvYWMac/s1600-R/interviewhelper.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722584265011481915.post-929901885536055075</id><published>2009-03-06T22:23:00.002-08:00</published><updated>2009-03-06T22:24:52.789-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='IBM DB2'/><title type='text'>What is FREEPAGE and PCTFREE in TABLESPACE creation</title><content type='html'>&lt;strong&gt;Question :What is FREEPAGE and PCTFREE in TABLESPACE creation?&lt;/strong&gt;&lt;br /&gt;Answer :PCTFREE: percentage of each page to be left free FREEPAGE: Number of pages to be loaded with data between each free page&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722584265011481915-929901885536055075?l=ibmdb2-interview-questions.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ibmdb2-interview-questions.blogspot.com/feeds/929901885536055075/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/what-is-freepage-and-pctfree-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/929901885536055075'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/929901885536055075'/><link rel='alternate' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/what-is-freepage-and-pctfree-in.html' title='What is FREEPAGE and PCTFREE in TABLESPACE creation'/><author><name>Interview Helper</name><uri>http://www.blogger.com/profile/00019571984377897004</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='12' src='http://1.bp.blogspot.com/_AdNUW2U2OOs/SYHHT9_iGqI/AAAAAAAAAAM/PzlYVvYWMac/s1600-R/interviewhelper.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722584265011481915.post-191625370248504874</id><published>2009-03-06T22:23:00.001-08:00</published><updated>2009-03-06T22:23:49.842-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='IBM DB2'/><title type='text'>What is an inner join, and an outer join</title><content type='html'>&lt;strong&gt;Question :What is an inner join, and an outer join ?&lt;/strong&gt;&lt;br /&gt;Answer :Inner Join: combine information from two or more tables by comparing all values that meet the search criteria in the designated column or columns of on e table with all the clause in corresponding columns of the other table or tables. This kind of join which involve a match in both columns are called inner joins. Outer join is one in which you want both matching and non matching rows to be returned. DB2 has no specific operator for outer joins, it can be simulated by combining a join and a correlated sub query with a UNION.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722584265011481915-191625370248504874?l=ibmdb2-interview-questions.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ibmdb2-interview-questions.blogspot.com/feeds/191625370248504874/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/what-is-inner-join-and-outer-join.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/191625370248504874'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/191625370248504874'/><link rel='alternate' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/what-is-inner-join-and-outer-join.html' title='What is an inner join, and an outer join'/><author><name>Interview Helper</name><uri>http://www.blogger.com/profile/00019571984377897004</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='12' src='http://1.bp.blogspot.com/_AdNUW2U2OOs/SYHHT9_iGqI/AAAAAAAAAAM/PzlYVvYWMac/s1600-R/interviewhelper.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722584265011481915.post-7941722981237542927</id><published>2009-03-06T22:21:00.000-08:00</published><updated>2009-03-06T22:23:09.292-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='IBM DB2'/><title type='text'>What are the 4 environments which can access DB2</title><content type='html'>&lt;strong&gt;Question :What are the 4 environments which can access DB2 ?&lt;/strong&gt;&lt;br /&gt;Answer :TSO, CICS, IMS and BATCH&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722584265011481915-7941722981237542927?l=ibmdb2-interview-questions.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ibmdb2-interview-questions.blogspot.com/feeds/7941722981237542927/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/what-are-4-environments-which-can.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/7941722981237542927'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/7941722981237542927'/><link rel='alternate' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/what-are-4-environments-which-can.html' title='What are the 4 environments which can access DB2'/><author><name>Interview Helper</name><uri>http://www.blogger.com/profile/00019571984377897004</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='12' src='http://1.bp.blogspot.com/_AdNUW2U2OOs/SYHHT9_iGqI/AAAAAAAAAAM/PzlYVvYWMac/s1600-R/interviewhelper.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722584265011481915.post-7490232339849062929</id><published>2009-03-06T22:20:00.000-08:00</published><updated>2009-03-06T22:21:32.525-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='IBM DB2'/><title type='text'>If I have a view which is a join of two or more tables, can this view be updateable</title><content type='html'>&lt;strong&gt;Question :If I have a view which is a join of two or more tables, can this view be updateable? ?&lt;/strong&gt;&lt;br /&gt;Answer :No.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722584265011481915-7490232339849062929?l=ibmdb2-interview-questions.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ibmdb2-interview-questions.blogspot.com/feeds/7490232339849062929/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/if-i-have-view-which-is-join-of-two-or.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/7490232339849062929'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/7490232339849062929'/><link rel='alternate' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/if-i-have-view-which-is-join-of-two-or.html' title='If I have a view which is a join of two or more tables, can this view be updateable'/><author><name>Interview Helper</name><uri>http://www.blogger.com/profile/00019571984377897004</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='12' src='http://1.bp.blogspot.com/_AdNUW2U2OOs/SYHHT9_iGqI/AAAAAAAAAAM/PzlYVvYWMac/s1600-R/interviewhelper.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722584265011481915.post-6345675273583045192</id><published>2009-03-06T22:19:00.000-08:00</published><updated>2009-03-06T22:20:39.975-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='IBM DB2'/><title type='text'>Are views updateable</title><content type='html'>&lt;strong&gt;Question :Are views updateable ?&lt;/strong&gt;&lt;br /&gt;Answer :Not all of them. Some views are updateable e.g. single table view with all the fields or mandatory fields. Examples of non-updateable views are views which are joins, views that contain aggregate functions(such as MIN), and views that have GROUP BY clause.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722584265011481915-6345675273583045192?l=ibmdb2-interview-questions.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ibmdb2-interview-questions.blogspot.com/feeds/6345675273583045192/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/are-views-updateable.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/6345675273583045192'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/6345675273583045192'/><link rel='alternate' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/are-views-updateable.html' title='Are views updateable'/><author><name>Interview Helper</name><uri>http://www.blogger.com/profile/00019571984377897004</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='12' src='http://1.bp.blogspot.com/_AdNUW2U2OOs/SYHHT9_iGqI/AAAAAAAAAAM/PzlYVvYWMac/s1600-R/interviewhelper.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722584265011481915.post-7812067101907703883</id><published>2009-03-06T22:18:00.002-08:00</published><updated>2009-03-06T22:19:40.254-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='IBM DB2'/><title type='text'>What does the sqlcode of -818 pertain to</title><content type='html'>&lt;strong&gt;Question :What does the sqlcode of -818 pertain to?&lt;/strong&gt;&lt;br /&gt;Answer :This is generated when the consistency tokens in the DBRM and the load module are different.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722584265011481915-7812067101907703883?l=ibmdb2-interview-questions.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ibmdb2-interview-questions.blogspot.com/feeds/7812067101907703883/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/what-does-sqlcode-of-818-pertain-to.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/7812067101907703883'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/7812067101907703883'/><link rel='alternate' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/what-does-sqlcode-of-818-pertain-to.html' title='What does the sqlcode of -818 pertain to'/><author><name>Interview Helper</name><uri>http://www.blogger.com/profile/00019571984377897004</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='12' src='http://1.bp.blogspot.com/_AdNUW2U2OOs/SYHHT9_iGqI/AAAAAAAAAAM/PzlYVvYWMac/s1600-R/interviewhelper.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722584265011481915.post-6020837961852591690</id><published>2009-03-06T22:18:00.001-08:00</published><updated>2009-03-06T22:18:54.093-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='IBM DB2'/><title type='text'>What is sqlcode -811</title><content type='html'>&lt;strong&gt;Question :What is sqlcode -811?&lt;/strong&gt;&lt;br /&gt;Answer :SELECT statement has resulted in retrieval of more than one row.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722584265011481915-6020837961852591690?l=ibmdb2-interview-questions.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ibmdb2-interview-questions.blogspot.com/feeds/6020837961852591690/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/what-is-sqlcode-811.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/6020837961852591690'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/6020837961852591690'/><link rel='alternate' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/what-is-sqlcode-811.html' title='What is sqlcode -811'/><author><name>Interview Helper</name><uri>http://www.blogger.com/profile/00019571984377897004</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='12' src='http://1.bp.blogspot.com/_AdNUW2U2OOs/SYHHT9_iGqI/AAAAAAAAAAM/PzlYVvYWMac/s1600-R/interviewhelper.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722584265011481915.post-2540025851416192782</id><published>2009-03-06T05:33:00.000-08:00</published><updated>2009-03-06T05:34:17.164-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='IBM DB2'/><title type='text'>What is sqlcode -922</title><content type='html'>&lt;strong&gt;Question :What is sqlcode -922 ?&lt;/strong&gt;&lt;br /&gt;Answer :Authorization failure&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722584265011481915-2540025851416192782?l=ibmdb2-interview-questions.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ibmdb2-interview-questions.blogspot.com/feeds/2540025851416192782/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/what-is-sqlcode-922.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/2540025851416192782'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/2540025851416192782'/><link rel='alternate' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/what-is-sqlcode-922.html' title='What is sqlcode -922'/><author><name>Interview Helper</name><uri>http://www.blogger.com/profile/00019571984377897004</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='12' src='http://1.bp.blogspot.com/_AdNUW2U2OOs/SYHHT9_iGqI/AAAAAAAAAAM/PzlYVvYWMac/s1600-R/interviewhelper.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722584265011481915.post-5116724234999574838</id><published>2009-03-06T05:31:00.000-08:00</published><updated>2009-03-06T05:32:56.035-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='IBM DB2'/><title type='text'>What is the difference between primary key &amp; unique index</title><content type='html'>&lt;strong&gt;Question :What is the difference between primary key &amp;amp; unique index?&lt;/strong&gt;&lt;br /&gt;Answer :Primary : a relational database constraint. Primary key consists of one or more columns that uniquely identify a row in the table. For a normalized relation, there is one designated primary key. Unique index: a physical object that stores only unique values. There can be one or more unique indexes on a table.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722584265011481915-5116724234999574838?l=ibmdb2-interview-questions.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ibmdb2-interview-questions.blogspot.com/feeds/5116724234999574838/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/what-is-difference-between-primary-key.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/5116724234999574838'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/5116724234999574838'/><link rel='alternate' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/what-is-difference-between-primary-key.html' title='What is the difference between primary key &amp; unique index'/><author><name>Interview Helper</name><uri>http://www.blogger.com/profile/00019571984377897004</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='12' src='http://1.bp.blogspot.com/_AdNUW2U2OOs/SYHHT9_iGqI/AAAAAAAAAAM/PzlYVvYWMac/s1600-R/interviewhelper.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722584265011481915.post-8708202699287398094</id><published>2009-03-06T04:46:00.000-08:00</published><updated>2009-03-06T04:47:44.560-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='IBM DB2'/><title type='text'>How many clustering indexes can be defined for a table</title><content type='html'>&lt;strong&gt;Question :How many clustering indexes can be defined for a table?&lt;/strong&gt;&lt;br /&gt;Answer :Only one.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722584265011481915-8708202699287398094?l=ibmdb2-interview-questions.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ibmdb2-interview-questions.blogspot.com/feeds/8708202699287398094/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/how-many-clustering-indexes-can-be.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/8708202699287398094'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/8708202699287398094'/><link rel='alternate' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/how-many-clustering-indexes-can-be.html' title='How many clustering indexes can be defined for a table'/><author><name>Interview Helper</name><uri>http://www.blogger.com/profile/00019571984377897004</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='12' src='http://1.bp.blogspot.com/_AdNUW2U2OOs/SYHHT9_iGqI/AAAAAAAAAAM/PzlYVvYWMac/s1600-R/interviewhelper.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722584265011481915.post-6658783826733940827</id><published>2009-03-06T04:45:00.000-08:00</published><updated>2009-03-06T04:46:33.880-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='IBM DB2'/><title type='text'>What is a clustering index</title><content type='html'>&lt;strong&gt;Question :What is a clustering index ? ?&lt;/strong&gt;&lt;br /&gt;Answer :Causes the data rows to be stored in the order specified in the index. A mandatory index defined on a partitioned table space.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722584265011481915-6658783826733940827?l=ibmdb2-interview-questions.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ibmdb2-interview-questions.blogspot.com/feeds/6658783826733940827/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/what-is-clustering-index.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/6658783826733940827'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/6658783826733940827'/><link rel='alternate' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/what-is-clustering-index.html' title='What is a clustering index'/><author><name>Interview Helper</name><uri>http://www.blogger.com/profile/00019571984377897004</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='12' src='http://1.bp.blogspot.com/_AdNUW2U2OOs/SYHHT9_iGqI/AAAAAAAAAAM/PzlYVvYWMac/s1600-R/interviewhelper.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722584265011481915.post-7813736872318106216</id><published>2009-03-06T04:41:00.000-08:00</published><updated>2009-03-06T04:45:20.560-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='IBM DB2'/><title type='text'>What is QUIESCE</title><content type='html'>&lt;strong&gt;Question :What is QUIESCE?&lt;/strong&gt;&lt;br /&gt;Answer :A QUIESCE flushes all DB2 buffers on to the disk. This gives a correct snapshot of the database and should be used before and after any IMAGECOPY to maintain consistency.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722584265011481915-7813736872318106216?l=ibmdb2-interview-questions.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ibmdb2-interview-questions.blogspot.com/feeds/7813736872318106216/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/what-is-quiesce.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/7813736872318106216'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/7813736872318106216'/><link rel='alternate' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/what-is-quiesce.html' title='What is QUIESCE'/><author><name>Interview Helper</name><uri>http://www.blogger.com/profile/00019571984377897004</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='12' src='http://1.bp.blogspot.com/_AdNUW2U2OOs/SYHHT9_iGqI/AAAAAAAAAAM/PzlYVvYWMac/s1600-R/interviewhelper.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722584265011481915.post-5606162658785574850</id><published>2009-03-06T04:40:00.000-08:00</published><updated>2009-03-06T04:41:35.847-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='IBM DB2'/><title type='text'>What is CHECK PENDING</title><content type='html'>&lt;strong&gt;Question :What is CHECK PENDING ?&lt;/strong&gt;&lt;br /&gt;Answer :When a table is LOADed with ENFORCE NO option, then the table is left in CHECK PENDING status. It means that the LOAD utility did not perform constraint checking.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722584265011481915-5606162658785574850?l=ibmdb2-interview-questions.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ibmdb2-interview-questions.blogspot.com/feeds/5606162658785574850/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/what-is-check-pending.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/5606162658785574850'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/5606162658785574850'/><link rel='alternate' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/what-is-check-pending.html' title='What is CHECK PENDING'/><author><name>Interview Helper</name><uri>http://www.blogger.com/profile/00019571984377897004</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='12' src='http://1.bp.blogspot.com/_AdNUW2U2OOs/SYHHT9_iGqI/AAAAAAAAAAM/PzlYVvYWMac/s1600-R/interviewhelper.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722584265011481915.post-2411852536203720381</id><published>2009-03-06T04:25:00.000-08:00</published><updated>2009-03-06T04:27:04.460-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='IBM DB2'/><title type='text'>What is COPY PENDING status</title><content type='html'>&lt;strong&gt;Question :What is COPY PENDING status?&lt;/strong&gt;&lt;br /&gt;Answer :A state in which, an image copy on a table needs to be taken, In this status, the table is available only for queries. You cannot update this table. To remove the COPY PENDING status, you take an image copy or use REPAIR utility.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722584265011481915-2411852536203720381?l=ibmdb2-interview-questions.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ibmdb2-interview-questions.blogspot.com/feeds/2411852536203720381/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/what-is-copy-pending-status.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/2411852536203720381'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/2411852536203720381'/><link rel='alternate' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/what-is-copy-pending-status.html' title='What is COPY PENDING status'/><author><name>Interview Helper</name><uri>http://www.blogger.com/profile/00019571984377897004</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='12' src='http://1.bp.blogspot.com/_AdNUW2U2OOs/SYHHT9_iGqI/AAAAAAAAAAM/PzlYVvYWMac/s1600-R/interviewhelper.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722584265011481915.post-1931744519131938655</id><published>2009-03-06T03:36:00.000-08:00</published><updated>2009-03-06T03:37:52.892-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='IBM DB2'/><title type='text'>What is IMAGECOPY</title><content type='html'>&lt;strong&gt;Question :What is IMAGECOPY?&lt;/strong&gt;&lt;br /&gt;Answer :It is full backup of a DB2 table which can be used in recovery.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722584265011481915-1931744519131938655?l=ibmdb2-interview-questions.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ibmdb2-interview-questions.blogspot.com/feeds/1931744519131938655/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/what-is-imagecopy.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/1931744519131938655'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/1931744519131938655'/><link rel='alternate' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/what-is-imagecopy.html' title='What is IMAGECOPY'/><author><name>Interview Helper</name><uri>http://www.blogger.com/profile/00019571984377897004</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='12' src='http://1.bp.blogspot.com/_AdNUW2U2OOs/SYHHT9_iGqI/AAAAAAAAAAM/PzlYVvYWMac/s1600-R/interviewhelper.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722584265011481915.post-2861501918840298901</id><published>2009-03-06T03:35:00.000-08:00</published><updated>2009-03-06T03:36:38.377-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='IBM DB2'/><title type='text'>What is REORG? When is it used</title><content type='html'>&lt;strong&gt;Question :What is REORG? When is it used?&lt;/strong&gt;&lt;br /&gt;Answer :REORG reorganizes data on physical storage to reclutser rows, positioning overflowed rows in their proper sequence, to reclaim space, to restore free space. It is used after heavy updates, inserts and delete activity and after segments of a segmented tablespace have become fragmented.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722584265011481915-2861501918840298901?l=ibmdb2-interview-questions.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ibmdb2-interview-questions.blogspot.com/feeds/2861501918840298901/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/what-is-reorg-when-is-it-used.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/2861501918840298901'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/2861501918840298901'/><link rel='alternate' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/what-is-reorg-when-is-it-used.html' title='What is REORG? When is it used'/><author><name>Interview Helper</name><uri>http://www.blogger.com/profile/00019571984377897004</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='12' src='http://1.bp.blogspot.com/_AdNUW2U2OOs/SYHHT9_iGqI/AAAAAAAAAAM/PzlYVvYWMac/s1600-R/interviewhelper.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722584265011481915.post-8380212107963501255</id><published>2009-03-06T03:33:00.000-08:00</published><updated>2009-03-06T03:34:51.713-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='IBM DB2'/><title type='text'>Give some example of statistics collected during RUNSTATS</title><content type='html'>&lt;strong&gt;Question :Give some example of statistics collected during RUNSTATS?&lt;/strong&gt;&lt;br /&gt;Answer :# of rows in the table Percent of rows in clustering sequence # of distinct values of indexed column # of rows moved to a nearby/farway page due to row length increase&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722584265011481915-8380212107963501255?l=ibmdb2-interview-questions.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ibmdb2-interview-questions.blogspot.com/feeds/8380212107963501255/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/give-some-example-of-statistics.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/8380212107963501255'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/8380212107963501255'/><link rel='alternate' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/give-some-example-of-statistics.html' title='Give some example of statistics collected during RUNSTATS'/><author><name>Interview Helper</name><uri>http://www.blogger.com/profile/00019571984377897004</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='12' src='http://1.bp.blogspot.com/_AdNUW2U2OOs/SYHHT9_iGqI/AAAAAAAAAAM/PzlYVvYWMac/s1600-R/interviewhelper.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722584265011481915.post-2650022664845397633</id><published>2009-03-06T03:30:00.000-08:00</published><updated>2009-03-06T03:33:31.248-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='IBM DB2'/><title type='text'>When will you chose to run RUNSTATS</title><content type='html'>&lt;strong&gt;Question :When will you chose to run RUNSTATS?&lt;/strong&gt;&lt;br /&gt;Answer :After a load, or after mass updates, inserts, deletes, or after REORG.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722584265011481915-2650022664845397633?l=ibmdb2-interview-questions.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ibmdb2-interview-questions.blogspot.com/feeds/2650022664845397633/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/when-will-you-chose-to-run-runstats.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/2650022664845397633'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/2650022664845397633'/><link rel='alternate' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/when-will-you-chose-to-run-runstats.html' title='When will you chose to run RUNSTATS'/><author><name>Interview Helper</name><uri>http://www.blogger.com/profile/00019571984377897004</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='12' src='http://1.bp.blogspot.com/_AdNUW2U2OOs/SYHHT9_iGqI/AAAAAAAAAAM/PzlYVvYWMac/s1600-R/interviewhelper.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722584265011481915.post-7916798481751427538</id><published>2009-03-06T03:29:00.000-08:00</published><updated>2009-03-06T03:30:37.966-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='IBM DB2'/><title type='text'>What is RUNSTATS</title><content type='html'>&lt;strong&gt;Question :What is RUNSTATS? ?&lt;/strong&gt;&lt;br /&gt;Answer :? A DB2 utility used to collect statistics about the data values in tables which can be used by the optimizer to decide the access path. It also collects statistics used for space management. These statistics are stored in DB2 catalog tables.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722584265011481915-7916798481751427538?l=ibmdb2-interview-questions.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ibmdb2-interview-questions.blogspot.com/feeds/7916798481751427538/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/what-is-runstats.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/7916798481751427538'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/7916798481751427538'/><link rel='alternate' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/what-is-runstats.html' title='What is RUNSTATS'/><author><name>Interview Helper</name><uri>http://www.blogger.com/profile/00019571984377897004</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='12' src='http://1.bp.blogspot.com/_AdNUW2U2OOs/SYHHT9_iGqI/AAAAAAAAAAM/PzlYVvYWMac/s1600-R/interviewhelper.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722584265011481915.post-7958805546932274655</id><published>2009-03-06T03:28:00.000-08:00</published><updated>2009-03-06T03:29:18.906-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='IBM DB2'/><title type='text'>How do you insert a record with a nullable column</title><content type='html'>&lt;strong&gt;Question :How do you insert a record with a nullable column?&lt;/strong&gt;&lt;br /&gt;Answer :To insert a NULL, move -1 to the null indicator To insert a valid value, move 0 to the null indicator&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722584265011481915-7958805546932274655?l=ibmdb2-interview-questions.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ibmdb2-interview-questions.blogspot.com/feeds/7958805546932274655/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/how-do-you-insert-record-with-nullable.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/7958805546932274655'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/7958805546932274655'/><link rel='alternate' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/how-do-you-insert-record-with-nullable.html' title='How do you insert a record with a nullable column'/><author><name>Interview Helper</name><uri>http://www.blogger.com/profile/00019571984377897004</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='12' src='http://1.bp.blogspot.com/_AdNUW2U2OOs/SYHHT9_iGqI/AAAAAAAAAAM/PzlYVvYWMac/s1600-R/interviewhelper.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722584265011481915.post-6391294079039041641</id><published>2009-03-06T03:27:00.000-08:00</published><updated>2009-03-06T03:28:12.157-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='IBM DB2'/><title type='text'>What does it mean if the null indicator has -1, 0, -2</title><content type='html'>&lt;strong&gt;Question :What does it mean if the null indicator has -1, 0, -2?&lt;/strong&gt;&lt;br /&gt;Answer :-1 : the field is null 0 : the field is not null -2 : the field value is truncated&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722584265011481915-6391294079039041641?l=ibmdb2-interview-questions.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ibmdb2-interview-questions.blogspot.com/feeds/6391294079039041641/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/what-does-it-mean-if-null-indicator-has.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/6391294079039041641'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/6391294079039041641'/><link rel='alternate' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/what-does-it-mean-if-null-indicator-has.html' title='What does it mean if the null indicator has -1, 0, -2'/><author><name>Interview Helper</name><uri>http://www.blogger.com/profile/00019571984377897004</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='12' src='http://1.bp.blogspot.com/_AdNUW2U2OOs/SYHHT9_iGqI/AAAAAAAAAAM/PzlYVvYWMac/s1600-R/interviewhelper.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722584265011481915.post-5452366480319424240</id><published>2009-03-06T03:25:00.000-08:00</published><updated>2009-03-06T03:27:06.808-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='IBM DB2'/><title type='text'>What is the picture clause of the null indicator variable</title><content type='html'>&lt;strong&gt;Question :What is the picture clause of the null indicator variable?&lt;/strong&gt;&lt;br /&gt;Answer :S9(4) COMP.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722584265011481915-5452366480319424240?l=ibmdb2-interview-questions.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ibmdb2-interview-questions.blogspot.com/feeds/5452366480319424240/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/what-is-picture-clause-of-null.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/5452366480319424240'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/5452366480319424240'/><link rel='alternate' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/what-is-picture-clause-of-null.html' title='What is the picture clause of the null indicator variable'/><author><name>Interview Helper</name><uri>http://www.blogger.com/profile/00019571984377897004</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='12' src='http://1.bp.blogspot.com/_AdNUW2U2OOs/SYHHT9_iGqI/AAAAAAAAAAM/PzlYVvYWMac/s1600-R/interviewhelper.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722584265011481915.post-7548387268581835626</id><published>2009-03-06T03:24:00.000-08:00</published><updated>2009-03-06T03:25:50.583-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='IBM DB2'/><title type='text'>How do you retrieve the data from a nullable column</title><content type='html'>&lt;strong&gt;Question :How do you retrieve the data from a nullable column?&lt;/strong&gt;&lt;br /&gt;Answer :Use null indicators. Syntax ... INTO :HOSTVAR:NULLIND&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722584265011481915-7548387268581835626?l=ibmdb2-interview-questions.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ibmdb2-interview-questions.blogspot.com/feeds/7548387268581835626/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/how-do-you-retrieve-data-from-nullable.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/7548387268581835626'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/7548387268581835626'/><link rel='alternate' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/how-do-you-retrieve-data-from-nullable.html' title='How do you retrieve the data from a nullable column'/><author><name>Interview Helper</name><uri>http://www.blogger.com/profile/00019571984377897004</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='12' src='http://1.bp.blogspot.com/_AdNUW2U2OOs/SYHHT9_iGqI/AAAAAAAAAAM/PzlYVvYWMac/s1600-R/interviewhelper.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722584265011481915.post-3022765524073630160</id><published>2009-03-06T03:21:00.000-08:00</published><updated>2009-03-06T03:24:09.705-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='IBM DB2'/><title type='text'>How does DB2 store NULL physically? as an extra-byte prefix to the column value. physically, the nul prefix is Hex ?00? if the value is present and He</title><content type='html'>&lt;strong&gt;Question :How does DB2 store NULL physically? as an extra-byte prefix to the column value. physically, the nul prefix is Hex ?00? if the value is present and Hex ?FF?&lt;/strong&gt;&lt;br /&gt;Answer :It is not.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722584265011481915-3022765524073630160?l=ibmdb2-interview-questions.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ibmdb2-interview-questions.blogspot.com/feeds/3022765524073630160/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/how-does-db2-store-null-physically-as.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/3022765524073630160'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/3022765524073630160'/><link rel='alternate' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/how-does-db2-store-null-physically-as.html' title='How does DB2 store NULL physically? as an extra-byte prefix to the column value. physically, the nul prefix is Hex ?00? if the value is present and He'/><author><name>Interview Helper</name><uri>http://www.blogger.com/profile/00019571984377897004</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='12' src='http://1.bp.blogspot.com/_AdNUW2U2OOs/SYHHT9_iGqI/AAAAAAAAAAM/PzlYVvYWMac/s1600-R/interviewhelper.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722584265011481915.post-2462933459591550882</id><published>2009-03-06T03:20:00.000-08:00</published><updated>2009-03-06T03:21:43.319-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='IBM DB2'/><title type='text'>Suppose I have a program which uses a dynamic SQL and it has been performing well till now. Off late, I find that the performance has deteriorated. Wh</title><content type='html'>&lt;strong&gt;Question :Suppose I have a program which uses a dynamic SQL and it has been performing well till now. Off late, I find that the performance has deteriorated. What happened? ?&lt;/strong&gt;&lt;br /&gt;Answer :Probably RUN STATS is not done and the program is using a wrong index due to incorrect stats. Probably RUNSTATS is done and optimizer has chosen a wrong access path based on the latest statistics.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722584265011481915-2462933459591550882?l=ibmdb2-interview-questions.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ibmdb2-interview-questions.blogspot.com/feeds/2462933459591550882/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/suppose-i-have-program-which-uses.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/2462933459591550882'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/2462933459591550882'/><link rel='alternate' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/suppose-i-have-program-which-uses.html' title='Suppose I have a program which uses a dynamic SQL and it has been performing well till now. Off late, I find that the performance has deteriorated. Wh'/><author><name>Interview Helper</name><uri>http://www.blogger.com/profile/00019571984377897004</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='12' src='http://1.bp.blogspot.com/_AdNUW2U2OOs/SYHHT9_iGqI/AAAAAAAAAAM/PzlYVvYWMac/s1600-R/interviewhelper.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722584265011481915.post-416102716888965239</id><published>2009-03-06T03:19:00.000-08:00</published><updated>2009-03-06T03:20:27.547-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='IBM DB2'/><title type='text'>When is the access path determined for dynamic SQL</title><content type='html'>&lt;strong&gt;Question :When is the access path determined for dynamic SQL?&lt;/strong&gt;&lt;br /&gt;Answer :At run time, when the PREPARE statement is issued.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722584265011481915-416102716888965239?l=ibmdb2-interview-questions.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ibmdb2-interview-questions.blogspot.com/feeds/416102716888965239/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/when-is-access-path-determined-for.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/416102716888965239'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/416102716888965239'/><link rel='alternate' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/when-is-access-path-determined-for.html' title='When is the access path determined for dynamic SQL'/><author><name>Interview Helper</name><uri>http://www.blogger.com/profile/00019571984377897004</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='12' src='http://1.bp.blogspot.com/_AdNUW2U2OOs/SYHHT9_iGqI/AAAAAAAAAAM/PzlYVvYWMac/s1600-R/interviewhelper.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722584265011481915.post-5100740595791871347</id><published>2009-03-06T03:18:00.000-08:00</published><updated>2009-03-06T03:19:07.973-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='IBM DB2'/><title type='text'>What is dynamic SQL</title><content type='html'>&lt;strong&gt;Question :What is dynamic SQL?&lt;/strong&gt;&lt;br /&gt;Answer :Dynamic SQL is a SQL statement created at program execution time.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722584265011481915-5100740595791871347?l=ibmdb2-interview-questions.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ibmdb2-interview-questions.blogspot.com/feeds/5100740595791871347/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/what-is-dynamic-sql.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/5100740595791871347'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/5100740595791871347'/><link rel='alternate' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/what-is-dynamic-sql.html' title='What is dynamic SQL'/><author><name>Interview Helper</name><uri>http://www.blogger.com/profile/00019571984377897004</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='12' src='http://1.bp.blogspot.com/_AdNUW2U2OOs/SYHHT9_iGqI/AAAAAAAAAAM/PzlYVvYWMac/s1600-R/interviewhelper.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722584265011481915.post-2531127331306676524</id><published>2009-03-06T03:16:00.000-08:00</published><updated>2009-03-06T03:17:54.688-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='IBM DB2'/><title type='text'>Lot of updates have been done on a table due to which indexes have gone haywire. What do you do</title><content type='html'>&lt;strong&gt;Question :Lot of updates have been done on a table due to which indexes have gone haywire. What do you do?&lt;/strong&gt;&lt;br /&gt;Answer :Looks like index page split has occurred. DO a REORG of the indexes.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722584265011481915-2531127331306676524?l=ibmdb2-interview-questions.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ibmdb2-interview-questions.blogspot.com/feeds/2531127331306676524/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/lot-of-updates-have-been-done-on-table.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/2531127331306676524'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/2531127331306676524'/><link rel='alternate' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/lot-of-updates-have-been-done-on-table.html' title='Lot of updates have been done on a table due to which indexes have gone haywire. What do you do'/><author><name>Interview Helper</name><uri>http://www.blogger.com/profile/00019571984377897004</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='12' src='http://1.bp.blogspot.com/_AdNUW2U2OOs/SYHHT9_iGqI/AAAAAAAAAAM/PzlYVvYWMac/s1600-R/interviewhelper.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722584265011481915.post-4070545834374141051</id><published>2009-03-06T03:15:00.000-08:00</published><updated>2009-03-06T03:16:30.016-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='IBM DB2'/><title type='text'>How would you print the output of an SQL statement from SPUFI</title><content type='html'>&lt;strong&gt;Question :How would you print the output of an SQL statement from SPUFI?&lt;/strong&gt;&lt;br /&gt;Answer :Print the output dataset.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722584265011481915-4070545834374141051?l=ibmdb2-interview-questions.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ibmdb2-interview-questions.blogspot.com/feeds/4070545834374141051/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/how-would-you-print-output-of-sql.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/4070545834374141051'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/4070545834374141051'/><link rel='alternate' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/how-would-you-print-output-of-sql.html' title='How would you print the output of an SQL statement from SPUFI'/><author><name>Interview Helper</name><uri>http://www.blogger.com/profile/00019571984377897004</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='12' src='http://1.bp.blogspot.com/_AdNUW2U2OOs/SYHHT9_iGqI/AAAAAAAAAAM/PzlYVvYWMac/s1600-R/interviewhelper.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722584265011481915.post-5415154334705490964</id><published>2009-03-06T03:10:00.000-08:00</published><updated>2009-03-06T03:14:58.350-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='IBM DB2'/><title type='text'>What are the 2 sqlcodes that are returned</title><content type='html'>&lt;strong&gt;Question :What are the 2 sqlcodes that are returned?&lt;/strong&gt;&lt;br /&gt;Answer :100 ( for successful completion of the query ), 0 (for successful COMMIT if AUTOCOMMIT is set to Yes).&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722584265011481915-5415154334705490964?l=ibmdb2-interview-questions.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ibmdb2-interview-questions.blogspot.com/feeds/5415154334705490964/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/what-are-2-sqlcodes-that-are-returned.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/5415154334705490964'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/5415154334705490964'/><link rel='alternate' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/what-are-2-sqlcodes-that-are-returned.html' title='What are the 2 sqlcodes that are returned'/><author><name>Interview Helper</name><uri>http://www.blogger.com/profile/00019571984377897004</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='12' src='http://1.bp.blogspot.com/_AdNUW2U2OOs/SYHHT9_iGqI/AAAAAAAAAAM/PzlYVvYWMac/s1600-R/interviewhelper.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722584265011481915.post-4423596262482844144</id><published>2009-03-06T03:08:00.000-08:00</published><updated>2009-03-06T03:09:40.710-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='IBM DB2'/><title type='text'>What is a collection? a user defined name that is the anchor for packages</title><content type='html'>&lt;strong&gt;Question :What is a collection? a user defined name that is the anchor for packages?&lt;/strong&gt;&lt;br /&gt;Answer :It has not physical existence. Main usage is to group packages. In SPUFI suppose you want to select max. of 1000 rows , but the select returns only 200 rows.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722584265011481915-4423596262482844144?l=ibmdb2-interview-questions.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ibmdb2-interview-questions.blogspot.com/feeds/4423596262482844144/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/what-is-collection-user-defined-name.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/4423596262482844144'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/4423596262482844144'/><link rel='alternate' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/what-is-collection-user-defined-name.html' title='What is a collection? a user defined name that is the anchor for packages'/><author><name>Interview Helper</name><uri>http://www.blogger.com/profile/00019571984377897004</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='12' src='http://1.bp.blogspot.com/_AdNUW2U2OOs/SYHHT9_iGqI/AAAAAAAAAAM/PzlYVvYWMac/s1600-R/interviewhelper.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722584265011481915.post-6570181904952100907</id><published>2009-03-06T03:06:00.000-08:00</published><updated>2009-03-06T03:07:57.710-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='IBM DB2'/><title type='text'>What are the advantages of using a PACKAGE</title><content type='html'>&lt;strong&gt;Question :What are the advantages of using a PACKAGE?&lt;/strong&gt;&lt;br /&gt;Answer :1. Avoid having to bind a large number of DBRM members into a plan 2. Avoid cost of a large bind 3. Avoid the entire transaction being unavailable during bind and automatic rebind of a plan 4. Minimize fallback complexities if changes result in an error.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722584265011481915-6570181904952100907?l=ibmdb2-interview-questions.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ibmdb2-interview-questions.blogspot.com/feeds/6570181904952100907/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/what-are-advantages-of-using-package.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/6570181904952100907'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/6570181904952100907'/><link rel='alternate' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/what-are-advantages-of-using-package.html' title='What are the advantages of using a PACKAGE'/><author><name>Interview Helper</name><uri>http://www.blogger.com/profile/00019571984377897004</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='12' src='http://1.bp.blogspot.com/_AdNUW2U2OOs/SYHHT9_iGqI/AAAAAAAAAAM/PzlYVvYWMac/s1600-R/interviewhelper.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722584265011481915.post-8533183084925501129</id><published>2009-03-06T03:05:00.000-08:00</published><updated>2009-03-06T03:06:35.003-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='IBM DB2'/><title type='text'>What are PACKAGES</title><content type='html'>&lt;strong&gt;Question :What are PACKAGES ?&lt;/strong&gt;&lt;br /&gt;Answer :They contain executable code for SQL statements for one DBRM.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722584265011481915-8533183084925501129?l=ibmdb2-interview-questions.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ibmdb2-interview-questions.blogspot.com/feeds/8533183084925501129/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/what-are-packages.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/8533183084925501129'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/8533183084925501129'/><link rel='alternate' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/what-are-packages.html' title='What are PACKAGES'/><author><name>Interview Helper</name><uri>http://www.blogger.com/profile/00019571984377897004</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='12' src='http://1.bp.blogspot.com/_AdNUW2U2OOs/SYHHT9_iGqI/AAAAAAAAAAM/PzlYVvYWMac/s1600-R/interviewhelper.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722584265011481915.post-1034646057174246288</id><published>2009-03-06T02:14:00.000-08:00</published><updated>2009-03-06T02:17:15.598-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='IBM DB2'/><title type='text'>What happens to the PLAN if index used by it is dropped</title><content type='html'>&lt;strong&gt;Question :What happens to the PLAN if index used by it is dropped?&lt;/strong&gt;&lt;br /&gt;Answer :Plan is marked as invalid. The next time the plan is accessed, it is rebound.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722584265011481915-1034646057174246288?l=ibmdb2-interview-questions.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ibmdb2-interview-questions.blogspot.com/feeds/1034646057174246288/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/what-happens-to-plan-if-index-used-by.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/1034646057174246288'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/1034646057174246288'/><link rel='alternate' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/what-happens-to-plan-if-index-used-by.html' title='What happens to the PLAN if index used by it is dropped'/><author><name>Interview Helper</name><uri>http://www.blogger.com/profile/00019571984377897004</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='12' src='http://1.bp.blogspot.com/_AdNUW2U2OOs/SYHHT9_iGqI/AAAAAAAAAAM/PzlYVvYWMac/s1600-R/interviewhelper.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722584265011481915.post-616551235568178112</id><published>2009-03-06T02:13:00.000-08:00</published><updated>2009-03-06T02:14:51.948-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='IBM DB2'/><title type='text'>What else is there in the PLAN apart from the access path</title><content type='html'>&lt;strong&gt;Question :What else is there in the PLAN apart from the access path?&lt;/strong&gt;&lt;br /&gt;Answer :PLAN has the executable code for the SQL statements in the host program&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722584265011481915-616551235568178112?l=ibmdb2-interview-questions.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ibmdb2-interview-questions.blogspot.com/feeds/616551235568178112/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/what-else-is-there-in-plan-apart-from.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/616551235568178112'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/616551235568178112'/><link rel='alternate' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/what-else-is-there-in-plan-apart-from.html' title='What else is there in the PLAN apart from the access path'/><author><name>Interview Helper</name><uri>http://www.blogger.com/profile/00019571984377897004</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='12' src='http://1.bp.blogspot.com/_AdNUW2U2OOs/SYHHT9_iGqI/AAAAAAAAAAM/PzlYVvYWMac/s1600-R/interviewhelper.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722584265011481915.post-915125208816360279</id><published>2009-03-06T02:11:00.000-08:00</published><updated>2009-03-06T02:13:27.766-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='IBM DB2'/><title type='text'>What is ACQUIRE/RELEASE in BIND</title><content type='html'>&lt;strong&gt;Question :What is ACQUIRE/RELEASE in BIND?&lt;/strong&gt;&lt;br /&gt;Answer :Determine the point at which &lt;a href="http://interviewhelper.org/Art/535/60/IBM-DB2-Interview-Questions-Part-5.html" target="_top"&gt;DB2&lt;/a&gt; acquires or releases locks against table and tablespaces, including intent locks.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722584265011481915-915125208816360279?l=ibmdb2-interview-questions.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ibmdb2-interview-questions.blogspot.com/feeds/915125208816360279/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/what-is-acquirerelease-in-bind.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/915125208816360279'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/915125208816360279'/><link rel='alternate' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/what-is-acquirerelease-in-bind.html' title='What is ACQUIRE/RELEASE in BIND'/><author><name>Interview Helper</name><uri>http://www.blogger.com/profile/00019571984377897004</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='12' src='http://1.bp.blogspot.com/_AdNUW2U2OOs/SYHHT9_iGqI/AAAAAAAAAAM/PzlYVvYWMac/s1600-R/interviewhelper.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722584265011481915.post-2094613640439800116</id><published>2009-03-06T02:10:00.000-08:00</published><updated>2009-03-06T02:11:50.383-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='IBM DB2'/><title type='text'>What is a DBRM, PLAN</title><content type='html'>&lt;strong&gt;Question :What is a DBRM, PLAN ?&lt;/strong&gt;&lt;br /&gt;Answer :DBRM: &lt;a href="http://interviewhelper.org/Art/535/60/IBM-DB2-Interview-Questions-Part-5.html" target="_top"&gt;DataBase&lt;/a&gt; Request Module, has the SQL statements extracted from the host language program by the pre-&lt;a href="http://interviewhelper.org/Art/535/60/IBM-DB2-Interview-Questions-Part-5.html" target="_top"&gt;compiler&lt;/a&gt;. PLAN: A result of the BIND process. It has the executable code for the SQL statements in the DBRM.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722584265011481915-2094613640439800116?l=ibmdb2-interview-questions.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ibmdb2-interview-questions.blogspot.com/feeds/2094613640439800116/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/what-is-dbrm-plan.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/2094613640439800116'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/2094613640439800116'/><link rel='alternate' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/what-is-dbrm-plan.html' title='What is a DBRM, PLAN'/><author><name>Interview Helper</name><uri>http://www.blogger.com/profile/00019571984377897004</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='12' src='http://1.bp.blogspot.com/_AdNUW2U2OOs/SYHHT9_iGqI/AAAAAAAAAAM/PzlYVvYWMac/s1600-R/interviewhelper.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722584265011481915.post-2882661946919287190</id><published>2009-03-06T02:09:00.000-08:00</published><updated>2009-03-06T02:10:50.334-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='IBM DB2'/><title type='text'>What is ALTER</title><content type='html'>&lt;strong&gt;Question :What is ALTER ? ?&lt;/strong&gt;&lt;br /&gt;Answer :SQL command used to change the definition of DB2 objects.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722584265011481915-2882661946919287190?l=ibmdb2-interview-questions.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ibmdb2-interview-questions.blogspot.com/feeds/2882661946919287190/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/what-is-alter.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/2882661946919287190'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/2882661946919287190'/><link rel='alternate' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/what-is-alter.html' title='What is ALTER'/><author><name>Interview Helper</name><uri>http://www.blogger.com/profile/00019571984377897004</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='12' src='http://1.bp.blogspot.com/_AdNUW2U2OOs/SYHHT9_iGqI/AAAAAAAAAAM/PzlYVvYWMac/s1600-R/interviewhelper.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722584265011481915.post-8087637477349699832</id><published>2009-03-06T02:06:00.000-08:00</published><updated>2009-03-06T02:09:32.083-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='IBM DB2'/><title type='text'>Can I use LOCK TABLE on a view</title><content type='html'>&lt;strong&gt;Question :Can I use LOCK TABLE on a view?&lt;/strong&gt;&lt;br /&gt;Answer :No. To lock a view, take lock on the underlying tables.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722584265011481915-8087637477349699832?l=ibmdb2-interview-questions.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ibmdb2-interview-questions.blogspot.com/feeds/8087637477349699832/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/can-i-use-lock-table-on-view.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/8087637477349699832'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/8087637477349699832'/><link rel='alternate' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/can-i-use-lock-table-on-view.html' title='Can I use LOCK TABLE on a view'/><author><name>Interview Helper</name><uri>http://www.blogger.com/profile/00019571984377897004</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='12' src='http://1.bp.blogspot.com/_AdNUW2U2OOs/SYHHT9_iGqI/AAAAAAAAAAM/PzlYVvYWMac/s1600-R/interviewhelper.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722584265011481915.post-7122307594474150098</id><published>2009-03-06T02:05:00.000-08:00</published><updated>2009-03-06T02:06:36.194-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='IBM DB2'/><title type='text'>What are the various locks available</title><content type='html'>&lt;strong&gt;Question :What are the various locks available?&lt;/strong&gt;&lt;br /&gt;Answer :SHARE, EXCLUSIVE, UPDATE&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722584265011481915-7122307594474150098?l=ibmdb2-interview-questions.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ibmdb2-interview-questions.blogspot.com/feeds/7122307594474150098/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/what-are-various-locks-available.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/7122307594474150098'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/7122307594474150098'/><link rel='alternate' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/what-are-various-locks-available.html' title='What are the various locks available'/><author><name>Interview Helper</name><uri>http://www.blogger.com/profile/00019571984377897004</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='12' src='http://1.bp.blogspot.com/_AdNUW2U2OOs/SYHHT9_iGqI/AAAAAAAAAAM/PzlYVvYWMac/s1600-R/interviewhelper.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722584265011481915.post-7627750775208287078</id><published>2009-03-06T02:04:00.000-08:00</published><updated>2009-03-06T02:05:10.835-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='IBM DB2'/><title type='text'>What is lock escalation</title><content type='html'>&lt;strong&gt;Question :What is lock escalation?&lt;/strong&gt;&lt;br /&gt;Answer :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.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722584265011481915-7627750775208287078?l=ibmdb2-interview-questions.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ibmdb2-interview-questions.blogspot.com/feeds/7627750775208287078/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/what-is-lock-escalation.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/7627750775208287078'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/7627750775208287078'/><link rel='alternate' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/what-is-lock-escalation.html' title='What is lock escalation'/><author><name>Interview Helper</name><uri>http://www.blogger.com/profile/00019571984377897004</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='12' src='http://1.bp.blogspot.com/_AdNUW2U2OOs/SYHHT9_iGqI/AAAAAAAAAAM/PzlYVvYWMac/s1600-R/interviewhelper.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722584265011481915.post-8206292077996466402</id><published>2009-03-06T02:03:00.000-08:00</published><updated>2009-03-06T02:04:04.042-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='IBM DB2'/><title type='text'>What are the disadvantages of PAGE level lock</title><content type='html'>&lt;strong&gt;Question :What are the disadvantages of PAGE level lock?&lt;/strong&gt;&lt;br /&gt;Answer :High resource utilization if large updates are to be done&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722584265011481915-8206292077996466402?l=ibmdb2-interview-questions.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ibmdb2-interview-questions.blogspot.com/feeds/8206292077996466402/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/what-are-disadvantages-of-page-level.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/8206292077996466402'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/8206292077996466402'/><link rel='alternate' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/what-are-disadvantages-of-page-level.html' title='What are the disadvantages of PAGE level lock'/><author><name>Interview Helper</name><uri>http://www.blogger.com/profile/00019571984377897004</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='12' src='http://1.bp.blogspot.com/_AdNUW2U2OOs/SYHHT9_iGqI/AAAAAAAAAAM/PzlYVvYWMac/s1600-R/interviewhelper.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722584265011481915.post-3083300462426452244</id><published>2009-03-06T02:01:00.000-08:00</published><updated>2009-03-06T02:03:02.823-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='IBM DB2'/><title type='text'>How does DB2 determine what lock-size to use</title><content type='html'>&lt;strong&gt;Question :How does DB2 determine what lock-size to use?&lt;/strong&gt;&lt;br /&gt;Answer :1. Based on the lock-size given while creating the tablespace 2. &lt;a href="http://interviewhelper.org/Art/534/60/IBM-DB2-Interview-Questions-Part-4.html" target="_top"&gt;Programmer&lt;/a&gt; can direct the DB2 what lock-size to use 3. If lock-size ANY is specified, DB2 usually chooses a lock-size of PAGE&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722584265011481915-3083300462426452244?l=ibmdb2-interview-questions.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ibmdb2-interview-questions.blogspot.com/feeds/3083300462426452244/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/how-does-db2-determine-what-lock-size.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/3083300462426452244'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/3083300462426452244'/><link rel='alternate' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/how-does-db2-determine-what-lock-size.html' title='How does DB2 determine what lock-size to use'/><author><name>Interview Helper</name><uri>http://www.blogger.com/profile/00019571984377897004</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='12' src='http://1.bp.blogspot.com/_AdNUW2U2OOs/SYHHT9_iGqI/AAAAAAAAAAM/PzlYVvYWMac/s1600-R/interviewhelper.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722584265011481915.post-8493175644907553774</id><published>2009-03-06T02:00:00.000-08:00</published><updated>2009-03-06T02:01:54.316-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='IBM DB2'/><title type='text'>What are the various locking levels available</title><content type='html'>&lt;strong&gt;Question :What are the various locking levels available?&lt;/strong&gt;&lt;br /&gt;Answer :PAGE, TABLE, TABLESPACE&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722584265011481915-8493175644907553774?l=ibmdb2-interview-questions.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ibmdb2-interview-questions.blogspot.com/feeds/8493175644907553774/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/what-are-various-locking-levels.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/8493175644907553774'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/8493175644907553774'/><link rel='alternate' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/what-are-various-locking-levels.html' title='What are the various locking levels available'/><author><name>Interview Helper</name><uri>http://www.blogger.com/profile/00019571984377897004</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='12' src='http://1.bp.blogspot.com/_AdNUW2U2OOs/SYHHT9_iGqI/AAAAAAAAAAM/PzlYVvYWMac/s1600-R/interviewhelper.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722584265011481915.post-2249843818010998555</id><published>2009-03-06T01:59:00.000-08:00</published><updated>2009-03-06T02:00:50.363-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='IBM DB2'/><title type='text'>When do you specify the isolation level? How</title><content type='html'>&lt;strong&gt;Question :When do you specify the isolation level? How?&lt;/strong&gt;&lt;br /&gt;Answer :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.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722584265011481915-2249843818010998555?l=ibmdb2-interview-questions.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ibmdb2-interview-questions.blogspot.com/feeds/2249843818010998555/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/when-do-you-specify-isolation-level-how.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/2249843818010998555'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/2249843818010998555'/><link rel='alternate' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/when-do-you-specify-isolation-level-how.html' title='When do you specify the isolation level? How'/><author><name>Interview Helper</name><uri>http://www.blogger.com/profile/00019571984377897004</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='12' src='http://1.bp.blogspot.com/_AdNUW2U2OOs/SYHHT9_iGqI/AAAAAAAAAAM/PzlYVvYWMac/s1600-R/interviewhelper.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722584265011481915.post-2842314725611151121</id><published>2009-03-06T01:58:00.000-08:00</published><updated>2009-03-06T01:59:12.942-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='IBM DB2'/><title type='text'>Where do you specify them</title><content type='html'>&lt;strong&gt;Question :Where do you specify them ?&lt;/strong&gt;&lt;br /&gt;Answer :ISOLATION LEVEL is a parameter for the bind process.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722584265011481915-2842314725611151121?l=ibmdb2-interview-questions.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ibmdb2-interview-questions.blogspot.com/feeds/2842314725611151121/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/where-do-you-specify-them.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/2842314725611151121'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/2842314725611151121'/><link rel='alternate' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/where-do-you-specify-them.html' title='Where do you specify them'/><author><name>Interview Helper</name><uri>http://www.blogger.com/profile/00019571984377897004</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='12' src='http://1.bp.blogspot.com/_AdNUW2U2OOs/SYHHT9_iGqI/AAAAAAAAAAM/PzlYVvYWMac/s1600-R/interviewhelper.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722584265011481915.post-1020584985311938812</id><published>2009-03-06T01:57:00.000-08:00</published><updated>2009-03-06T01:58:14.160-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='IBM DB2'/><title type='text'>What is the difference between CS and RR isolation levels</title><content type='html'>&lt;strong&gt;Question :What is the difference between CS and RR isolation levels?&lt;/strong&gt;&lt;br /&gt;Answer :CS: Releases the lock on a page after use RR: Retains all locks acquired till end of transaction&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722584265011481915-1020584985311938812?l=ibmdb2-interview-questions.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ibmdb2-interview-questions.blogspot.com/feeds/1020584985311938812/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/what-is-difference-between-cs-and-rr.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/1020584985311938812'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/1020584985311938812'/><link rel='alternate' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/what-is-difference-between-cs-and-rr.html' title='What is the difference between CS and RR isolation levels'/><author><name>Interview Helper</name><uri>http://www.blogger.com/profile/00019571984377897004</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='12' src='http://1.bp.blogspot.com/_AdNUW2U2OOs/SYHHT9_iGqI/AAAAAAAAAAM/PzlYVvYWMac/s1600-R/interviewhelper.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722584265011481915.post-5304108658813906563</id><published>2009-03-06T01:56:00.000-08:00</published><updated>2009-03-06T01:57:23.233-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='IBM DB2'/><title type='text'>What are the isolation levels possible</title><content type='html'>&lt;strong&gt;Question :What are the isolation levels possible ?&lt;/strong&gt;&lt;br /&gt;Answer :CS: Cursor Stability RR: Repeatable Read&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722584265011481915-5304108658813906563?l=ibmdb2-interview-questions.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ibmdb2-interview-questions.blogspot.com/feeds/5304108658813906563/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/what-are-isolation-levels-possible.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/5304108658813906563'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/5304108658813906563'/><link rel='alternate' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/what-are-isolation-levels-possible.html' title='What are the isolation levels possible'/><author><name>Interview Helper</name><uri>http://www.blogger.com/profile/00019571984377897004</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='12' src='http://1.bp.blogspot.com/_AdNUW2U2OOs/SYHHT9_iGqI/AAAAAAAAAAM/PzlYVvYWMac/s1600-R/interviewhelper.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722584265011481915.post-8639489503908213252</id><published>2009-03-06T01:55:00.000-08:00</published><updated>2009-03-06T01:56:37.842-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='IBM DB2'/><title type='text'>How do you simulate the EXPLAIN of an embedded SQL statement in SPUFI/QMF? Give an example with a host variable in WHERE clause.)</title><content type='html'>&lt;strong&gt;Question :How do you simulate the EXPLAIN of an embedded SQL statement in SPUFI/QMF? Give an example with a host variable in WHERE clause.) ?&lt;/strong&gt;&lt;br /&gt;Answer :Use a question mark in place of a host variable ( or an unknown value ). e.g. SELECT EMP_NAME FROM EMP WHERE EMP_&lt;a href="http://interviewhelper.org/Art/534/60/IBM-DB2-Interview-Questions-Part-4.html" target="_top"&gt;SALARY&lt;/a&gt; &gt; ?&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722584265011481915-8639489503908213252?l=ibmdb2-interview-questions.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ibmdb2-interview-questions.blogspot.com/feeds/8639489503908213252/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/how-do-you-simulate-explain-of-embedded.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/8639489503908213252'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/8639489503908213252'/><link rel='alternate' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/how-do-you-simulate-explain-of-embedded.html' title='How do you simulate the EXPLAIN of an embedded SQL statement in SPUFI/QMF? Give an example with a host variable in WHERE clause.)'/><author><name>Interview Helper</name><uri>http://www.blogger.com/profile/00019571984377897004</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='12' src='http://1.bp.blogspot.com/_AdNUW2U2OOs/SYHHT9_iGqI/AAAAAAAAAAM/PzlYVvYWMac/s1600-R/interviewhelper.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722584265011481915.post-4129219773195763174</id><published>2009-03-06T01:54:00.002-08:00</published><updated>2009-03-06T01:55:46.278-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='IBM DB2'/><title type='text'>How do you do the EXPLAIN of a dynamic SQL statement</title><content type='html'>&lt;strong&gt;Question :How do you do the EXPLAIN of a dynamic SQL statement?&lt;/strong&gt;&lt;br /&gt;Answer :1. Use SPUFI or QMF to EXPLAIN the dynamic SQL statement 2. Include EXPLAIN command in the embedded dynamic SQL statements&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722584265011481915-4129219773195763174?l=ibmdb2-interview-questions.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ibmdb2-interview-questions.blogspot.com/feeds/4129219773195763174/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/how-do-you-do-explain-of-dynamic-sql.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/4129219773195763174'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/4129219773195763174'/><link rel='alternate' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/how-do-you-do-explain-of-dynamic-sql.html' title='How do you do the EXPLAIN of a dynamic SQL statement'/><author><name>Interview Helper</name><uri>http://www.blogger.com/profile/00019571984377897004</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='12' src='http://1.bp.blogspot.com/_AdNUW2U2OOs/SYHHT9_iGqI/AAAAAAAAAAM/PzlYVvYWMac/s1600-R/interviewhelper.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722584265011481915.post-5483730294260031476</id><published>2009-03-06T01:54:00.001-08:00</published><updated>2009-03-06T01:54:50.480-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='IBM DB2'/><title type='text'>EXPLAIN has output with MATCHCOLS = 0. What does it mean</title><content type='html'>&lt;strong&gt;Question :EXPLAIN has output with MATCHCOLS = 0. What does it mean? ?&lt;/strong&gt;&lt;br /&gt;Answer :a nonmatching index scan if ACCESSTYPE = I.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722584265011481915-5483730294260031476?l=ibmdb2-interview-questions.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ibmdb2-interview-questions.blogspot.com/feeds/5483730294260031476/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/explain-has-output-with-matchcols-0_06.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/5483730294260031476'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/5483730294260031476'/><link rel='alternate' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/explain-has-output-with-matchcols-0_06.html' title='EXPLAIN has output with MATCHCOLS = 0. What does it mean'/><author><name>Interview Helper</name><uri>http://www.blogger.com/profile/00019571984377897004</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='12' src='http://1.bp.blogspot.com/_AdNUW2U2OOs/SYHHT9_iGqI/AAAAAAAAAAM/PzlYVvYWMac/s1600-R/interviewhelper.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722584265011481915.post-4087181893212225625</id><published>2009-03-06T01:52:00.001-08:00</published><updated>2009-03-06T01:52:53.383-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='IBM DB2'/><title type='text'>Where is the output of EXPLAIN stored</title><content type='html'>&lt;strong&gt;Question :Where is the output of EXPLAIN stored?&lt;/strong&gt;&lt;br /&gt;Answer :In userid.PLAN_TABLE&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722584265011481915-4087181893212225625?l=ibmdb2-interview-questions.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ibmdb2-interview-questions.blogspot.com/feeds/4087181893212225625/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/where-is-output-of-explain-stored.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/4087181893212225625'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/4087181893212225625'/><link rel='alternate' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/where-is-output-of-explain-stored.html' title='Where is the output of EXPLAIN stored'/><author><name>Interview Helper</name><uri>http://www.blogger.com/profile/00019571984377897004</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='12' src='http://1.bp.blogspot.com/_AdNUW2U2OOs/SYHHT9_iGqI/AAAAAAAAAAM/PzlYVvYWMac/s1600-R/interviewhelper.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722584265011481915.post-8578559963776581368</id><published>2009-03-06T01:51:00.001-08:00</published><updated>2009-03-06T01:51:59.237-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='IBM DB2'/><title type='text'>What do you need to do before you do EXPLAIN</title><content type='html'>&lt;strong&gt;Question :What do you need to do before you do EXPLAIN?&lt;/strong&gt;&lt;br /&gt;Answer :Make sure that the PLAN_TABLE is created under the AUTHID.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722584265011481915-8578559963776581368?l=ibmdb2-interview-questions.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ibmdb2-interview-questions.blogspot.com/feeds/8578559963776581368/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/what-do-you-need-to-do-before-you-do.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/8578559963776581368'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/8578559963776581368'/><link rel='alternate' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/what-do-you-need-to-do-before-you-do.html' title='What do you need to do before you do EXPLAIN'/><author><name>Interview Helper</name><uri>http://www.blogger.com/profile/00019571984377897004</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='12' src='http://1.bp.blogspot.com/_AdNUW2U2OOs/SYHHT9_iGqI/AAAAAAAAAAM/PzlYVvYWMac/s1600-R/interviewhelper.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722584265011481915.post-2795359844039055547</id><published>2009-03-06T01:46:00.000-08:00</published><updated>2009-03-06T01:51:22.424-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='IBM DB2'/><title type='text'>What is EXPLAIN</title><content type='html'>&lt;strong&gt;Question :What is EXPLAIN?&lt;/strong&gt;&lt;br /&gt;Answer :EXPLAIN is used to display the access path as determined by the optimizer for a SQL statement. It can be used in SPUFI (for single SQL statement ) or in BIND step (for embedded SQL ).&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722584265011481915-2795359844039055547?l=ibmdb2-interview-questions.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ibmdb2-interview-questions.blogspot.com/feeds/2795359844039055547/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/what-is-explain.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/2795359844039055547'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/2795359844039055547'/><link rel='alternate' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/what-is-explain.html' title='What is EXPLAIN'/><author><name>Interview Helper</name><uri>http://www.blogger.com/profile/00019571984377897004</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='12' src='http://1.bp.blogspot.com/_AdNUW2U2OOs/SYHHT9_iGqI/AAAAAAAAAAM/PzlYVvYWMac/s1600-R/interviewhelper.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722584265011481915.post-8313688809392310465</id><published>2009-03-06T01:43:00.000-08:00</published><updated>2009-03-06T01:46:00.513-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='IBM DB2'/><title type='text'>How can you quickly find out the # of rows updated after an update statement</title><content type='html'>&lt;strong&gt;Question :How can you quickly find out the # of rows updated after an update statement?&lt;/strong&gt;&lt;br /&gt;Answer :Check the value stored in SQLERRD(3).&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722584265011481915-8313688809392310465?l=ibmdb2-interview-questions.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ibmdb2-interview-questions.blogspot.com/feeds/8313688809392310465/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/how-can-you-quickly-find-out-of-rows.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/8313688809392310465'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/8313688809392310465'/><link rel='alternate' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/how-can-you-quickly-find-out-of-rows.html' title='How can you quickly find out the # of rows updated after an update statement'/><author><name>Interview Helper</name><uri>http://www.blogger.com/profile/00019571984377897004</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='12' src='http://1.bp.blogspot.com/_AdNUW2U2OOs/SYHHT9_iGqI/AAAAAAAAAAM/PzlYVvYWMac/s1600-R/interviewhelper.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722584265011481915.post-628539171004686959</id><published>2009-03-06T01:42:00.000-08:00</published><updated>2009-03-06T01:43:29.682-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='IBM DB2'/><title type='text'>How is a typical DB2 batch pgm executed</title><content type='html'>&lt;strong&gt;Question :How is a typical DB2 batch pgm executed ?&lt;/strong&gt;&lt;br /&gt;Answer :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.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722584265011481915-628539171004686959?l=ibmdb2-interview-questions.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ibmdb2-interview-questions.blogspot.com/feeds/628539171004686959/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/how-is-typical-db2-batch-pgm-executed.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/628539171004686959'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/628539171004686959'/><link rel='alternate' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/how-is-typical-db2-batch-pgm-executed.html' title='How is a typical DB2 batch pgm executed'/><author><name>Interview Helper</name><uri>http://www.blogger.com/profile/00019571984377897004</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='12' src='http://1.bp.blogspot.com/_AdNUW2U2OOs/SYHHT9_iGqI/AAAAAAAAAAM/PzlYVvYWMac/s1600-R/interviewhelper.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722584265011481915.post-8592740284103790563</id><published>2009-03-06T01:41:00.000-08:00</published><updated>2009-03-06T01:42:07.172-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='IBM DB2'/><title type='text'>Will precompile of an DB2-COBOL program bomb, if DB2 is down</title><content type='html'>&lt;strong&gt;Question :Will precompile of an DB2-COBOL program bomb, if DB2 is down?&lt;/strong&gt;&lt;br /&gt;Answer :No. Because the precompiler does not refer to the DB2 catalogue tables.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722584265011481915-8592740284103790563?l=ibmdb2-interview-questions.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ibmdb2-interview-questions.blogspot.com/feeds/8592740284103790563/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/will-precompile-of-db2-cobol-program.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/8592740284103790563'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/8592740284103790563'/><link rel='alternate' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/will-precompile-of-db2-cobol-program.html' title='Will precompile of an DB2-COBOL program bomb, if DB2 is down'/><author><name>Interview Helper</name><uri>http://www.blogger.com/profile/00019571984377897004</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='12' src='http://1.bp.blogspot.com/_AdNUW2U2OOs/SYHHT9_iGqI/AAAAAAAAAAM/PzlYVvYWMac/s1600-R/interviewhelper.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722584265011481915.post-6370474425308812463</id><published>2009-03-06T01:40:00.001-08:00</published><updated>2009-03-06T01:40:58.674-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='IBM DB2'/><title type='text'>Is DECLARE TABLE in DCLGEN necessary  Why it used</title><content type='html'>&lt;strong&gt;Question :Is DECLARE TABLE in DCLGEN necessary? Why it used?&lt;/strong&gt;&lt;br /&gt;Answer :It not necessary to have DECLARE TABLE statement in DCLGEN. This is used by the pre-&lt;a href="http://interviewhelper.org/Art/533/60/IBM-DB2-Interview-Questions-Part-3.html" target="_top"&gt;compiler&lt;/a&gt; to validate the table-name, view-name, column name etc., during pre-compile.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722584265011481915-6370474425308812463?l=ibmdb2-interview-questions.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ibmdb2-interview-questions.blogspot.com/feeds/6370474425308812463/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/is-declare-table-in-dclgen-necessary.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/6370474425308812463'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/6370474425308812463'/><link rel='alternate' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/is-declare-table-in-dclgen-necessary.html' title='Is DECLARE TABLE in DCLGEN necessary  Why it used'/><author><name>Interview Helper</name><uri>http://www.blogger.com/profile/00019571984377897004</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='12' src='http://1.bp.blogspot.com/_AdNUW2U2OOs/SYHHT9_iGqI/AAAAAAAAAAM/PzlYVvYWMac/s1600-R/interviewhelper.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722584265011481915.post-8005941924542454252</id><published>2009-03-05T22:48:00.002-08:00</published><updated>2009-03-05T22:49:27.550-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='IBM DB2'/><title type='text'>Is it mandatory to use DCLGEN? If not, why would you use it at all</title><content type='html'>&lt;strong&gt;Question :Is it mandatory to use DCLGEN? If not, why would you use it at all?&lt;/strong&gt;&lt;br /&gt;Answer :- 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.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722584265011481915-8005941924542454252?l=ibmdb2-interview-questions.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ibmdb2-interview-questions.blogspot.com/feeds/8005941924542454252/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/is-it-mandatory-to-use-dclgen-if-not.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/8005941924542454252'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/8005941924542454252'/><link rel='alternate' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/is-it-mandatory-to-use-dclgen-if-not.html' title='Is it mandatory to use DCLGEN? If not, why would you use it at all'/><author><name>Interview Helper</name><uri>http://www.blogger.com/profile/00019571984377897004</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='12' src='http://1.bp.blogspot.com/_AdNUW2U2OOs/SYHHT9_iGqI/AAAAAAAAAAM/PzlYVvYWMac/s1600-R/interviewhelper.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722584265011481915.post-7671240637922210773</id><published>2009-03-05T22:48:00.001-08:00</published><updated>2009-03-05T22:48:35.689-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='IBM DB2'/><title type='text'>What are the contents of a DCLGEN</title><content type='html'>&lt;strong&gt;Question :What are the contents of a DCLGEN?&lt;/strong&gt;&lt;br /&gt;Answer :- 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.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722584265011481915-7671240637922210773?l=ibmdb2-interview-questions.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ibmdb2-interview-questions.blogspot.com/feeds/7671240637922210773/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/what-are-contents-of-dclgen.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/7671240637922210773'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/7671240637922210773'/><link rel='alternate' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/what-are-contents-of-dclgen.html' title='What are the contents of a DCLGEN'/><author><name>Interview Helper</name><uri>http://www.blogger.com/profile/00019571984377897004</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='12' src='http://1.bp.blogspot.com/_AdNUW2U2OOs/SYHHT9_iGqI/AAAAAAAAAAM/PzlYVvYWMac/s1600-R/interviewhelper.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722584265011481915.post-1471489099452389801</id><published>2009-03-05T22:47:00.000-08:00</published><updated>2009-03-05T22:48:00.806-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='IBM DB2'/><title type='text'>What is DCLGEN</title><content type='html'>&lt;strong&gt;Question :What is DCLGEN ?&lt;/strong&gt;&lt;br /&gt;Answer :- DeCLarations GENerator: used to create the host language copy books for the table definitions. Also creates the DECLARE table.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722584265011481915-1471489099452389801?l=ibmdb2-interview-questions.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ibmdb2-interview-questions.blogspot.com/feeds/1471489099452389801/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/what-is-dclgen.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/1471489099452389801'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/1471489099452389801'/><link rel='alternate' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/what-is-dclgen.html' title='What is DCLGEN'/><author><name>Interview Helper</name><uri>http://www.blogger.com/profile/00019571984377897004</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='12' src='http://1.bp.blogspot.com/_AdNUW2U2OOs/SYHHT9_iGqI/AAAAAAAAAAM/PzlYVvYWMac/s1600-R/interviewhelper.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722584265011481915.post-2669063747456341501</id><published>2009-03-05T22:46:00.000-08:00</published><updated>2009-03-05T22:47:25.012-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='IBM DB2'/><title type='text'>What is the COBOL picture clause for a DB2 column defined as DECIMAL(11,2)</title><content type='html'>&lt;strong&gt;Question :What is the COBOL picture clause for a DB2 column defined as DECIMAL(11,2)?&lt;/strong&gt;&lt;br /&gt;Answer :- PIC S9(9)V99 COMP-3. Note: In DECIMAL(11,2), 11 indicates the size of the data type and 2 indicates the precision.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722584265011481915-2669063747456341501?l=ibmdb2-interview-questions.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ibmdb2-interview-questions.blogspot.com/feeds/2669063747456341501/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/what-is-cobol-picture-clause-for-db2.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/2669063747456341501'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/2669063747456341501'/><link rel='alternate' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/what-is-cobol-picture-clause-for-db2.html' title='What is the COBOL picture clause for a DB2 column defined as DECIMAL(11,2)'/><author><name>Interview Helper</name><uri>http://www.blogger.com/profile/00019571984377897004</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='12' src='http://1.bp.blogspot.com/_AdNUW2U2OOs/SYHHT9_iGqI/AAAAAAAAAAM/PzlYVvYWMac/s1600-R/interviewhelper.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722584265011481915.post-305871232940298094</id><published>2009-03-05T22:45:00.000-08:00</published><updated>2009-03-05T22:46:26.345-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='IBM DB2'/><title type='text'>What is the COBOL picture clause of the following DB2 data types: DATE, TIME, TIMESTAMP</title><content type='html'>&lt;strong&gt;Question :What is the COBOL picture clause of the following DB2 data types: DATE, TIME, TIMESTAMP?&lt;/strong&gt;&lt;br /&gt;Answer :DATE: PIC X(10) TIME : PIC X(08) TIMESTAMP: PIC X(26)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722584265011481915-305871232940298094?l=ibmdb2-interview-questions.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ibmdb2-interview-questions.blogspot.com/feeds/305871232940298094/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/what-is-cobol-picture-clause-of.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/305871232940298094'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/305871232940298094'/><link rel='alternate' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/what-is-cobol-picture-clause-of.html' title='What is the COBOL picture clause of the following DB2 data types: DATE, TIME, TIMESTAMP'/><author><name>Interview Helper</name><uri>http://www.blogger.com/profile/00019571984377897004</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='12' src='http://1.bp.blogspot.com/_AdNUW2U2OOs/SYHHT9_iGqI/AAAAAAAAAAM/PzlYVvYWMac/s1600-R/interviewhelper.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722584265011481915.post-8607433063145180951</id><published>2009-03-05T22:44:00.001-08:00</published><updated>2009-03-05T22:44:39.799-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='IBM DB2'/><title type='text'>What is the physical storage length of each of the following DB2 data types: DATE, TIME, TIMESTAMP</title><content type='html'>&lt;strong&gt;Question :What is the physical storage length of each of the following DB2 data types: DATE, TIME, TIMESTAMP?&lt;/strong&gt;&lt;br /&gt;Answer :DATE: 4bytes TIME: 3bytes TIMESTAMP: 10bytes&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722584265011481915-8607433063145180951?l=ibmdb2-interview-questions.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ibmdb2-interview-questions.blogspot.com/feeds/8607433063145180951/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/what-is-physical-storage-length-of-each.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/8607433063145180951'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/8607433063145180951'/><link rel='alternate' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/what-is-physical-storage-length-of-each.html' title='What is the physical storage length of each of the following DB2 data types: DATE, TIME, TIMESTAMP'/><author><name>Interview Helper</name><uri>http://www.blogger.com/profile/00019571984377897004</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='12' src='http://1.bp.blogspot.com/_AdNUW2U2OOs/SYHHT9_iGqI/AAAAAAAAAAM/PzlYVvYWMac/s1600-R/interviewhelper.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722584265011481915.post-3918239762842257759</id><published>2009-03-05T22:41:00.002-08:00</published><updated>2009-03-05T22:43:47.250-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='IBM DB2'/><title type='text'>Give the COBOL definition of a VARCHAR field. A VARCHAR column REMARKS would be defined as follows: ...</title><content type='html'>&lt;strong&gt;Question :Give the COBOL definition of a VARCHAR field. A VARCHAR column REMARKS would be defined as follows: ...&lt;/strong&gt;&lt;br /&gt;Answer :10 REMARKS. 49 REMARKS-LEN PIC S9(4) USAGE COMP. 49 REMARKS-TEXT PIC X(1920).&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722584265011481915-3918239762842257759?l=ibmdb2-interview-questions.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ibmdb2-interview-questions.blogspot.com/feeds/3918239762842257759/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/give-cobol-definition-of-varchar-field.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/3918239762842257759'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/3918239762842257759'/><link rel='alternate' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/give-cobol-definition-of-varchar-field.html' title='Give the COBOL definition of a VARCHAR field. A VARCHAR column REMARKS would be defined as follows: ...'/><author><name>Interview Helper</name><uri>http://www.blogger.com/profile/00019571984377897004</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='12' src='http://1.bp.blogspot.com/_AdNUW2U2OOs/SYHHT9_iGqI/AAAAAAAAAAM/PzlYVvYWMac/s1600-R/interviewhelper.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722584265011481915.post-5361937386475477346</id><published>2009-03-05T22:41:00.001-08:00</published><updated>2009-03-05T22:41:51.549-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='IBM DB2'/><title type='text'>How do you leave the cursor open after issuing a COMMIT? ( for DB2 2.3 or above only )</title><content type='html'>&lt;strong&gt;Question :How do you leave the cursor open after issuing a COMMIT? ( for DB2 2.3 or above only )&lt;/strong&gt;&lt;br /&gt;Answer :Use WITH HOLD option in DECLARE CURSOR statement. But, it has not effect in psuedo-conversational CICS programs.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722584265011481915-5361937386475477346?l=ibmdb2-interview-questions.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ibmdb2-interview-questions.blogspot.com/feeds/5361937386475477346/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/how-do-you-leave-cursor-open-after_05.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/5361937386475477346'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/5361937386475477346'/><link rel='alternate' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/how-do-you-leave-cursor-open-after_05.html' title='How do you leave the cursor open after issuing a COMMIT? ( for DB2 2.3 or above only )'/><author><name>Interview Helper</name><uri>http://www.blogger.com/profile/00019571984377897004</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='12' src='http://1.bp.blogspot.com/_AdNUW2U2OOs/SYHHT9_iGqI/AAAAAAAAAAM/PzlYVvYWMac/s1600-R/interviewhelper.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722584265011481915.post-1329224672998049053</id><published>2009-03-05T22:39:00.001-08:00</published><updated>2009-03-05T22:39:56.256-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='IBM DB2'/><title type='text'>When you COMMIT, is the cursor closed</title><content type='html'>&lt;strong&gt;Question :When you COMMIT, is the cursor closed?&lt;br /&gt;&lt;/strong&gt;Answer :Yes.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722584265011481915-1329224672998049053?l=ibmdb2-interview-questions.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ibmdb2-interview-questions.blogspot.com/feeds/1329224672998049053/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/when-you-commit-is-cursor-closed.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/1329224672998049053'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/1329224672998049053'/><link rel='alternate' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/when-you-commit-is-cursor-closed.html' title='When you COMMIT, is the cursor closed'/><author><name>Interview Helper</name><uri>http://www.blogger.com/profile/00019571984377897004</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='12' src='http://1.bp.blogspot.com/_AdNUW2U2OOs/SYHHT9_iGqI/AAAAAAAAAAM/PzlYVvYWMac/s1600-R/interviewhelper.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722584265011481915.post-3744614915098126192</id><published>2009-03-05T22:37:00.002-08:00</published><updated>2009-03-05T22:39:05.087-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='IBM DB2'/><title type='text'>Can you have more than one cursor open at any one time in a program</title><content type='html'>&lt;strong&gt;Question :Can you have more than one cursor open at any one time in a program?&lt;/strong&gt;&lt;br /&gt;Answer :Yes.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722584265011481915-3744614915098126192?l=ibmdb2-interview-questions.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ibmdb2-interview-questions.blogspot.com/feeds/3744614915098126192/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/can-you-have-more-than-one-cursor-open.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/3744614915098126192'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/3744614915098126192'/><link rel='alternate' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/can-you-have-more-than-one-cursor-open.html' title='Can you have more than one cursor open at any one time in a program'/><author><name>Interview Helper</name><uri>http://www.blogger.com/profile/00019571984377897004</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='12' src='http://1.bp.blogspot.com/_AdNUW2U2OOs/SYHHT9_iGqI/AAAAAAAAAAM/PzlYVvYWMac/s1600-R/interviewhelper.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722584265011481915.post-3649911838401358971</id><published>2009-03-05T22:37:00.001-08:00</published><updated>2009-03-05T22:37:47.031-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='IBM DB2'/><title type='text'>Is DECLARE CURSOR executable</title><content type='html'>&lt;strong&gt;Question :Is DECLARE CURSOR executable?&lt;/strong&gt;&lt;br /&gt;Answer :No.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722584265011481915-3649911838401358971?l=ibmdb2-interview-questions.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ibmdb2-interview-questions.blogspot.com/feeds/3649911838401358971/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/is-declare-cursor-executable.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/3649911838401358971'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/3649911838401358971'/><link rel='alternate' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/is-declare-cursor-executable.html' title='Is DECLARE CURSOR executable'/><author><name>Interview Helper</name><uri>http://www.blogger.com/profile/00019571984377897004</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='12' src='http://1.bp.blogspot.com/_AdNUW2U2OOs/SYHHT9_iGqI/AAAAAAAAAAM/PzlYVvYWMac/s1600-R/interviewhelper.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722584265011481915.post-8816685667475995098</id><published>2009-03-05T22:36:00.000-08:00</published><updated>2009-03-05T22:37:01.816-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='IBM DB2'/><title type='text'>What happens when you say OPEN CURSOR</title><content type='html'>&lt;strong&gt;Question :What happens when you say OPEN CURSOR?&lt;/strong&gt;&lt;br /&gt;Answer :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.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722584265011481915-8816685667475995098?l=ibmdb2-interview-questions.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ibmdb2-interview-questions.blogspot.com/feeds/8816685667475995098/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/what-happens-when-you-say-open-cursor.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/8816685667475995098'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/8816685667475995098'/><link rel='alternate' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/what-happens-when-you-say-open-cursor.html' title='What happens when you say OPEN CURSOR'/><author><name>Interview Helper</name><uri>http://www.blogger.com/profile/00019571984377897004</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='12' src='http://1.bp.blogspot.com/_AdNUW2U2OOs/SYHHT9_iGqI/AAAAAAAAAAM/PzlYVvYWMac/s1600-R/interviewhelper.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722584265011481915.post-7175987236330963060</id><published>2009-03-05T22:35:00.000-08:00</published><updated>2009-03-05T22:36:22.243-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='IBM DB2'/><title type='text'>How do you specify and use a cursor in a COBOL program</title><content type='html'>&lt;strong&gt;Question :How do you specify and use a cursor in a COBOL program?&lt;/strong&gt;&lt;br /&gt;Answer :Use DECLARE CURSOR statement either in working storage or in procedure division(before open cursor), to specify the SELECT statement. Then use OPEN, FETCH rows in a loop and finally CLOSE.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722584265011481915-7175987236330963060?l=ibmdb2-interview-questions.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ibmdb2-interview-questions.blogspot.com/feeds/7175987236330963060/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/how-do-you-specify-and-use-cursor-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/7175987236330963060'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/7175987236330963060'/><link rel='alternate' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/how-do-you-specify-and-use-cursor-in.html' title='How do you specify and use a cursor in a COBOL program'/><author><name>Interview Helper</name><uri>http://www.blogger.com/profile/00019571984377897004</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='12' src='http://1.bp.blogspot.com/_AdNUW2U2OOs/SYHHT9_iGqI/AAAAAAAAAAM/PzlYVvYWMac/s1600-R/interviewhelper.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722584265011481915.post-5738971095386527778</id><published>2009-03-05T22:34:00.000-08:00</published><updated>2009-03-05T22:35:31.485-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='IBM DB2'/><title type='text'>Where would you specify the DECLARE CURSOR statement</title><content type='html'>&lt;strong&gt;Question :Where would you specify the DECLARE CURSOR statement?&lt;/strong&gt;&lt;br /&gt;Answer :See answer to next question.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722584265011481915-5738971095386527778?l=ibmdb2-interview-questions.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ibmdb2-interview-questions.blogspot.com/feeds/5738971095386527778/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/where-would-you-specify-declare-cursor.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/5738971095386527778'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/5738971095386527778'/><link rel='alternate' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/where-would-you-specify-declare-cursor.html' title='Where would you specify the DECLARE CURSOR statement'/><author><name>Interview Helper</name><uri>http://www.blogger.com/profile/00019571984377897004</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='12' src='http://1.bp.blogspot.com/_AdNUW2U2OOs/SYHHT9_iGqI/AAAAAAAAAAM/PzlYVvYWMac/s1600-R/interviewhelper.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722584265011481915.post-2302342665322671776</id><published>2009-03-05T22:26:00.002-08:00</published><updated>2009-03-05T22:34:31.184-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='IBM DB2'/><title type='text'>How would you retrieve rows from a DB2 table in embedded SQL</title><content type='html'>&lt;strong&gt;Question :How would you retrieve rows from a &lt;/strong&gt;&lt;a href="http://interviewhelper.org/Art/532/60/IBM-DB2-Interview-Questions-Part-2.html" target="_top"&gt;&lt;strong&gt;DB2&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt; table in embedded SQL? ?&lt;/strong&gt;&lt;br /&gt;Answer :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.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722584265011481915-2302342665322671776?l=ibmdb2-interview-questions.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ibmdb2-interview-questions.blogspot.com/feeds/2302342665322671776/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/how-would-you-retrieve-rows-from-db2.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/2302342665322671776'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/2302342665322671776'/><link rel='alternate' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/how-would-you-retrieve-rows-from-db2.html' title='How would you retrieve rows from a DB2 table in embedded SQL'/><author><name>Interview Helper</name><uri>http://www.blogger.com/profile/00019571984377897004</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='12' src='http://1.bp.blogspot.com/_AdNUW2U2OOs/SYHHT9_iGqI/AAAAAAAAAAM/PzlYVvYWMac/s1600-R/interviewhelper.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722584265011481915.post-4967599930623052930</id><published>2009-03-05T22:26:00.001-08:00</published><updated>2009-03-05T22:26:40.613-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='IBM DB2'/><title type='text'>What is a cursor? why should it be used</title><content type='html'>&lt;strong&gt;Question :What is a cursor? why should it be used?&lt;/strong&gt;&lt;br /&gt;Answer :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.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722584265011481915-4967599930623052930?l=ibmdb2-interview-questions.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ibmdb2-interview-questions.blogspot.com/feeds/4967599930623052930/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/what-is-cursor-why-should-it-be-used.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/4967599930623052930'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/4967599930623052930'/><link rel='alternate' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/what-is-cursor-why-should-it-be-used.html' title='What is a cursor? why should it be used'/><author><name>Interview Helper</name><uri>http://www.blogger.com/profile/00019571984377897004</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='12' src='http://1.bp.blogspot.com/_AdNUW2U2OOs/SYHHT9_iGqI/AAAAAAAAAAM/PzlYVvYWMac/s1600-R/interviewhelper.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722584265011481915.post-161169716022222426</id><published>2009-03-05T22:09:00.000-08:00</published><updated>2009-03-05T22:11:05.976-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='IBM DB2'/><title type='text'>Why SELECT * is not preferred in embedded SQL programs</title><content type='html'>&lt;strong&gt;Question :Why SELECT * is not preferred in embedded SQL programs?&lt;/strong&gt;&lt;br /&gt;Answer :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.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722584265011481915-161169716022222426?l=ibmdb2-interview-questions.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ibmdb2-interview-questions.blogspot.com/feeds/161169716022222426/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/why-select-is-not-preferred-in-embedded.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/161169716022222426'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/161169716022222426'/><link rel='alternate' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/why-select-is-not-preferred-in-embedded.html' title='Why SELECT * is not preferred in embedded SQL programs'/><author><name>Interview Helper</name><uri>http://www.blogger.com/profile/00019571984377897004</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='12' src='http://1.bp.blogspot.com/_AdNUW2U2OOs/SYHHT9_iGqI/AAAAAAAAAAM/PzlYVvYWMac/s1600-R/interviewhelper.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722584265011481915.post-2409574036112503323</id><published>2009-03-05T22:08:00.000-08:00</published><updated>2009-03-05T22:09:34.064-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='IBM DB2'/><title type='text'>Consider the employee table with column PROJECT nullable. How can you get a list of employees who are not assigned to any project</title><content type='html'>&lt;strong&gt;Question :Consider the employee table with column PROJECT nullable. How can you get a list of employees who are not assigned to any project?&lt;/strong&gt;&lt;br /&gt;Answer :SELECT EMPNO FROM EMP WHERE PROJECT IS NULL;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722584265011481915-2409574036112503323?l=ibmdb2-interview-questions.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ibmdb2-interview-questions.blogspot.com/feeds/2409574036112503323/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/consider-employee-table-with-column.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/2409574036112503323'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/2409574036112503323'/><link rel='alternate' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/consider-employee-table-with-column.html' title='Consider the employee table with column PROJECT nullable. How can you get a list of employees who are not assigned to any project'/><author><name>Interview Helper</name><uri>http://www.blogger.com/profile/00019571984377897004</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='12' src='http://1.bp.blogspot.com/_AdNUW2U2OOs/SYHHT9_iGqI/AAAAAAAAAAM/PzlYVvYWMac/s1600-R/interviewhelper.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722584265011481915.post-5600621229867606147</id><published>2009-03-05T22:07:00.002-08:00</published><updated>2009-03-05T22:08:46.730-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='IBM DB2'/><title type='text'>What do you accomplish by GROUP BY ... HAVING clause</title><content type='html'>&lt;strong&gt;Question :What do you accomplish by GROUP BY ... HAVING clause?&lt;/strong&gt;&lt;br /&gt;Answer :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&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722584265011481915-5600621229867606147?l=ibmdb2-interview-questions.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ibmdb2-interview-questions.blogspot.com/feeds/5600621229867606147/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/what-do-you-accomplish-by-group-by.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/5600621229867606147'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/5600621229867606147'/><link rel='alternate' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/what-do-you-accomplish-by-group-by.html' title='What do you accomplish by GROUP BY ... HAVING clause'/><author><name>Interview Helper</name><uri>http://www.blogger.com/profile/00019571984377897004</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='12' src='http://1.bp.blogspot.com/_AdNUW2U2OOs/SYHHT9_iGqI/AAAAAAAAAAM/PzlYVvYWMac/s1600-R/interviewhelper.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722584265011481915.post-8214347438676382819</id><published>2009-03-05T22:07:00.001-08:00</published><updated>2009-03-05T22:07:50.181-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='IBM DB2'/><title type='text'>When do you use a LIKE statement</title><content type='html'>&lt;strong&gt;Question :When do you use a LIKE statement?&lt;/strong&gt;&lt;br /&gt;Answer :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.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722584265011481915-8214347438676382819?l=ibmdb2-interview-questions.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ibmdb2-interview-questions.blogspot.com/feeds/8214347438676382819/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/when-do-you-use-like-statement.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/8214347438676382819'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/8214347438676382819'/><link rel='alternate' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/when-do-you-use-like-statement.html' title='When do you use a LIKE statement'/><author><name>Interview Helper</name><uri>http://www.blogger.com/profile/00019571984377897004</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='12' src='http://1.bp.blogspot.com/_AdNUW2U2OOs/SYHHT9_iGqI/AAAAAAAAAAM/PzlYVvYWMac/s1600-R/interviewhelper.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722584265011481915.post-2601397465233635619</id><published>2009-03-05T22:06:00.000-08:00</published><updated>2009-03-05T22:07:01.550-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='IBM DB2'/><title type='text'>What is 'LIKE' used for in WHERE clause? What are the wildcard characters</title><content type='html'>&lt;strong&gt;Question :What is 'LIKE' used for in WHERE clause? What are the wildcard characters?&lt;/strong&gt;&lt;br /&gt;Answer :LIKE is used for partial string matches. ?%? ( for a string of any character ) and ?_? (for any single character ) are the two wild card characters.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722584265011481915-2601397465233635619?l=ibmdb2-interview-questions.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ibmdb2-interview-questions.blogspot.com/feeds/2601397465233635619/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/what-is-like-used-for-in-where-clause.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/2601397465233635619'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/2601397465233635619'/><link rel='alternate' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/what-is-like-used-for-in-where-clause.html' title='What is &apos;LIKE&apos; used for in WHERE clause? What are the wildcard characters'/><author><name>Interview Helper</name><uri>http://www.blogger.com/profile/00019571984377897004</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='12' src='http://1.bp.blogspot.com/_AdNUW2U2OOs/SYHHT9_iGqI/AAAAAAAAAAM/PzlYVvYWMac/s1600-R/interviewhelper.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722584265011481915.post-6393993001564549890</id><published>2009-03-05T22:04:00.000-08:00</published><updated>2009-03-05T22:06:01.757-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='IBM DB2'/><title type='text'>Is BETWEEN inclusive of the range values specified</title><content type='html'>&lt;strong&gt;Question :Is BETWEEN inclusive of the range values specified?&lt;/strong&gt;&lt;br /&gt;Answer :Yes.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722584265011481915-6393993001564549890?l=ibmdb2-interview-questions.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ibmdb2-interview-questions.blogspot.com/feeds/6393993001564549890/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/is-between-inclusive-of-range-values.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/6393993001564549890'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/6393993001564549890'/><link rel='alternate' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/is-between-inclusive-of-range-values.html' title='Is BETWEEN inclusive of the range values specified'/><author><name>Interview Helper</name><uri>http://www.blogger.com/profile/00019571984377897004</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='12' src='http://1.bp.blogspot.com/_AdNUW2U2OOs/SYHHT9_iGqI/AAAAAAAAAAM/PzlYVvYWMac/s1600-R/interviewhelper.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722584265011481915.post-4469014969899122394</id><published>2009-03-05T22:03:00.002-08:00</published><updated>2009-03-05T22:04:42.563-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='IBM DB2'/><title type='text'>In the WHERE clause what is BETWEEN and IN</title><content type='html'>&lt;strong&gt;Question :In the WHERE clause what is BETWEEN and IN?&lt;/strong&gt;&lt;br /&gt;Answer :BETWEEN supplies a range of values while IN supplies a list of values.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722584265011481915-4469014969899122394?l=ibmdb2-interview-questions.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ibmdb2-interview-questions.blogspot.com/feeds/4469014969899122394/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/in-where-clause-what-is-between-and-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/4469014969899122394'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/4469014969899122394'/><link rel='alternate' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/in-where-clause-what-is-between-and-in.html' title='In the WHERE clause what is BETWEEN and IN'/><author><name>Interview Helper</name><uri>http://www.blogger.com/profile/00019571984377897004</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='12' src='http://1.bp.blogspot.com/_AdNUW2U2OOs/SYHHT9_iGqI/AAAAAAAAAAM/PzlYVvYWMac/s1600-R/interviewhelper.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722584265011481915.post-3481008032027619300</id><published>2009-03-05T22:03:00.001-08:00</published><updated>2009-03-05T22:03:50.589-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='IBM DB2'/><title type='text'>What is the restriction on using UNION in embedded SQL</title><content type='html'>&lt;strong&gt;Question :What is the restriction on using UNION in embedded SQL?&lt;/strong&gt;&lt;br /&gt;Answer :It has to be in a CURSOR.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722584265011481915-3481008032027619300?l=ibmdb2-interview-questions.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ibmdb2-interview-questions.blogspot.com/feeds/3481008032027619300/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/what-is-restriction-on-using-union-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/3481008032027619300'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/3481008032027619300'/><link rel='alternate' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/what-is-restriction-on-using-union-in.html' title='What is the restriction on using UNION in embedded SQL'/><author><name>Interview Helper</name><uri>http://www.blogger.com/profile/00019571984377897004</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='12' src='http://1.bp.blogspot.com/_AdNUW2U2OOs/SYHHT9_iGqI/AAAAAAAAAAM/PzlYVvYWMac/s1600-R/interviewhelper.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722584265011481915.post-9101650846120883525</id><published>2009-03-05T22:02:00.000-08:00</published><updated>2009-03-05T22:03:04.763-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='IBM DB2'/><title type='text'>What is UNION,UNION ALL</title><content type='html'>&lt;strong&gt;Question :What is UNION,UNION ALL?&lt;/strong&gt;&lt;br /&gt;Answer :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.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722584265011481915-9101650846120883525?l=ibmdb2-interview-questions.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ibmdb2-interview-questions.blogspot.com/feeds/9101650846120883525/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/what-is-unionunion-all.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/9101650846120883525'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/9101650846120883525'/><link rel='alternate' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/what-is-unionunion-all.html' title='What is UNION,UNION ALL'/><author><name>Interview Helper</name><uri>http://www.blogger.com/profile/00019571984377897004</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='12' src='http://1.bp.blogspot.com/_AdNUW2U2OOs/SYHHT9_iGqI/AAAAAAAAAAM/PzlYVvYWMac/s1600-R/interviewhelper.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722584265011481915.post-2315267036971749313</id><published>2009-03-05T22:01:00.000-08:00</published><updated>2009-03-05T22:02:18.209-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='IBM DB2'/><title type='text'>What is the use of VALUE function</title><content type='html'>&lt;strong&gt;Question :What is the use of VALUE function?&lt;/strong&gt;&lt;br /&gt;Answer :1. Avoid -ve SQLCODEs by handling nulls and zeroes in computations 2. Substitute a numeric value for any nulls used in computation&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722584265011481915-2315267036971749313?l=ibmdb2-interview-questions.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ibmdb2-interview-questions.blogspot.com/feeds/2315267036971749313/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/what-is-use-of-value-function.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/2315267036971749313'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/2315267036971749313'/><link rel='alternate' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/what-is-use-of-value-function.html' title='What is the use of VALUE function'/><author><name>Interview Helper</name><uri>http://www.blogger.com/profile/00019571984377897004</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='12' src='http://1.bp.blogspot.com/_AdNUW2U2OOs/SYHHT9_iGqI/AAAAAAAAAAM/PzlYVvYWMac/s1600-R/interviewhelper.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722584265011481915.post-1237228745971539546</id><published>2009-03-05T22:00:00.000-08:00</published><updated>2009-03-05T22:01:27.099-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='IBM DB2'/><title type='text'>How do you concatenate the FIRSTNAME and LASTNAME from EMP table to give a complete name</title><content type='html'>&lt;strong&gt;Question :How do you concatenate the FIRSTNAME and LASTNAME from EMP table to give a complete name?&lt;/strong&gt;&lt;br /&gt;Answer :SELECT FIRSTNAME ? ? LASTNAME FROM EMP;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722584265011481915-1237228745971539546?l=ibmdb2-interview-questions.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ibmdb2-interview-questions.blogspot.com/feeds/1237228745971539546/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/how-do-you-concatenate-firstname-and.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/1237228745971539546'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/1237228745971539546'/><link rel='alternate' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/how-do-you-concatenate-firstname-and.html' title='How do you concatenate the FIRSTNAME and LASTNAME from EMP table to give a complete name'/><author><name>Interview Helper</name><uri>http://www.blogger.com/profile/00019571984377897004</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='12' src='http://1.bp.blogspot.com/_AdNUW2U2OOs/SYHHT9_iGqI/AAAAAAAAAAM/PzlYVvYWMac/s1600-R/interviewhelper.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722584265011481915.post-4646957970397552146</id><published>2009-03-05T21:59:00.000-08:00</published><updated>2009-03-05T22:00:26.357-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='IBM DB2'/><title type='text'>How do you retrieve the first 5 characters of FIRSTNAME column of EMP table</title><content type='html'>&lt;strong&gt;Question :How do you retrieve the first 5 characters of FIRSTNAME column of EMP table?&lt;/strong&gt;&lt;br /&gt;Answer :SELECT SUBSTR(FIRSTNAME,1,5) FROM EMP;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722584265011481915-4646957970397552146?l=ibmdb2-interview-questions.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ibmdb2-interview-questions.blogspot.com/feeds/4646957970397552146/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/how-do-you-retrieve-first-5-characters.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/4646957970397552146'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/4646957970397552146'/><link rel='alternate' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/how-do-you-retrieve-first-5-characters.html' title='How do you retrieve the first 5 characters of FIRSTNAME column of EMP table'/><author><name>Interview Helper</name><uri>http://www.blogger.com/profile/00019571984377897004</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='12' src='http://1.bp.blogspot.com/_AdNUW2U2OOs/SYHHT9_iGqI/AAAAAAAAAAM/PzlYVvYWMac/s1600-R/interviewhelper.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722584265011481915.post-225588975109137064</id><published>2009-03-05T21:58:00.000-08:00</published><updated>2009-03-05T21:59:31.873-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='IBM DB2'/><title type='text'>My SQL statement SELECT AVG(SALARY) FROM EMP yields inaccurate results. Why</title><content type='html'>&lt;strong&gt;Question :My SQL statement SELECT AVG(SALARY) FROM EMP yields inaccurate results. Why?&lt;/strong&gt;&lt;br /&gt;Answer :Because SALARY is not declared to have NULLs and the employees for whom the salary is not known are also counted.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722584265011481915-225588975109137064?l=ibmdb2-interview-questions.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ibmdb2-interview-questions.blogspot.com/feeds/225588975109137064/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/my-sql-statement-select-avgsalary-from.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/225588975109137064'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/225588975109137064'/><link rel='alternate' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/my-sql-statement-select-avgsalary-from.html' title='My SQL statement SELECT AVG(SALARY) FROM EMP yields inaccurate results. Why'/><author><name>Interview Helper</name><uri>http://www.blogger.com/profile/00019571984377897004</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='12' src='http://1.bp.blogspot.com/_AdNUW2U2OOs/SYHHT9_iGqI/AAAAAAAAAAM/PzlYVvYWMac/s1600-R/interviewhelper.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722584265011481915.post-4646665401173467789</id><published>2009-03-05T21:57:00.000-08:00</published><updated>2009-03-05T21:58:36.357-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='IBM DB2'/><title type='text'>Can you use MAX on a CHAR column</title><content type='html'>&lt;strong&gt;Question :Can you use MAX on a CHAR column?&lt;/strong&gt;&lt;br /&gt;Answer :YES.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722584265011481915-4646665401173467789?l=ibmdb2-interview-questions.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ibmdb2-interview-questions.blogspot.com/feeds/4646665401173467789/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/can-you-use-max-on-char-column.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/4646665401173467789'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/4646665401173467789'/><link rel='alternate' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/can-you-use-max-on-char-column.html' title='Can you use MAX on a CHAR column'/><author><name>Interview Helper</name><uri>http://www.blogger.com/profile/00019571984377897004</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='12' src='http://1.bp.blogspot.com/_AdNUW2U2OOs/SYHHT9_iGqI/AAAAAAAAAAM/PzlYVvYWMac/s1600-R/interviewhelper.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722584265011481915.post-2271799061181638262</id><published>2009-03-05T21:56:00.000-08:00</published><updated>2009-03-05T21:57:35.640-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='IBM DB2'/><title type='text'>How do you find the maximum value in a column</title><content type='html'>&lt;strong&gt;Question :How do you find the maximum value in a column?&lt;/strong&gt;&lt;br /&gt;Answer :Use SELECT MAX(...&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722584265011481915-2271799061181638262?l=ibmdb2-interview-questions.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ibmdb2-interview-questions.blogspot.com/feeds/2271799061181638262/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/how-do-you-find-maximum-value-in-column.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/2271799061181638262'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/2271799061181638262'/><link rel='alternate' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/how-do-you-find-maximum-value-in-column.html' title='How do you find the maximum value in a column'/><author><name>Interview Helper</name><uri>http://www.blogger.com/profile/00019571984377897004</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='12' src='http://1.bp.blogspot.com/_AdNUW2U2OOs/SYHHT9_iGqI/AAAAAAAAAAM/PzlYVvYWMac/s1600-R/interviewhelper.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722584265011481915.post-5028150422905894947</id><published>2009-03-05T21:54:00.000-08:00</published><updated>2009-03-05T21:55:32.823-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='IBM DB2'/><title type='text'>What are aggregate functions</title><content type='html'>&lt;strong&gt;Question :What are aggregate functions?&lt;/strong&gt;&lt;br /&gt;Answer :Bulit-in mathematical functions for use in SELECT clause.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722584265011481915-5028150422905894947?l=ibmdb2-interview-questions.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ibmdb2-interview-questions.blogspot.com/feeds/5028150422905894947/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/what-are-aggregate-functions.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/5028150422905894947'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/5028150422905894947'/><link rel='alternate' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/what-are-aggregate-functions.html' title='What are aggregate functions'/><author><name>Interview Helper</name><uri>http://www.blogger.com/profile/00019571984377897004</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='12' src='http://1.bp.blogspot.com/_AdNUW2U2OOs/SYHHT9_iGqI/AAAAAAAAAAM/PzlYVvYWMac/s1600-R/interviewhelper.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722584265011481915.post-4073428376108597033</id><published>2009-03-05T21:48:00.000-08:00</published><updated>2009-03-05T21:54:22.821-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='IBM DB2'/><title type='text'>How do you select a row using indexes</title><content type='html'>&lt;strong&gt;Question :How do you select a row using indexes?&lt;/strong&gt;&lt;br /&gt;Answer :Specify the indexed columns in the WHERE clause.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722584265011481915-4073428376108597033?l=ibmdb2-interview-questions.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ibmdb2-interview-questions.blogspot.com/feeds/4073428376108597033/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/how-do-you-select-row-using-indexes.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/4073428376108597033'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/4073428376108597033'/><link rel='alternate' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/how-do-you-select-row-using-indexes.html' title='How do you select a row using indexes'/><author><name>Interview Helper</name><uri>http://www.blogger.com/profile/00019571984377897004</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='12' src='http://1.bp.blogspot.com/_AdNUW2U2OOs/SYHHT9_iGqI/AAAAAAAAAAM/PzlYVvYWMac/s1600-R/interviewhelper.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722584265011481915.post-1683669977959148496</id><published>2009-03-05T21:47:00.001-08:00</published><updated>2009-03-05T21:47:57.243-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='IBM DB2'/><title type='text'>How do you eliminate duplicate values in SELECT</title><content type='html'>&lt;strong&gt;Question :How do you eliminate duplicate values in SELECT?&lt;/strong&gt;&lt;br /&gt;Answer :Use SELECT DISTINCT ...&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722584265011481915-1683669977959148496?l=ibmdb2-interview-questions.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ibmdb2-interview-questions.blogspot.com/feeds/1683669977959148496/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/how-do-you-eliminate-duplicate-values.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/1683669977959148496'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/1683669977959148496'/><link rel='alternate' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/how-do-you-eliminate-duplicate-values.html' title='How do you eliminate duplicate values in SELECT'/><author><name>Interview Helper</name><uri>http://www.blogger.com/profile/00019571984377897004</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='12' src='http://1.bp.blogspot.com/_AdNUW2U2OOs/SYHHT9_iGqI/AAAAAAAAAAM/PzlYVvYWMac/s1600-R/interviewhelper.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722584265011481915.post-4959873525499234723</id><published>2009-03-05T21:44:00.000-08:00</published><updated>2009-03-05T21:46:46.815-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='IBM DB2'/><title type='text'>How would you find out the total number of rows in a table</title><content type='html'>&lt;strong&gt;Question :How would you find out the total number of rows in a table?&lt;/strong&gt;&lt;br /&gt;Answer :Use SELECT COUNT(*) ...&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722584265011481915-4959873525499234723?l=ibmdb2-interview-questions.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ibmdb2-interview-questions.blogspot.com/feeds/4959873525499234723/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/how-would-you-find-out-total-number-of.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/4959873525499234723'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722584265011481915/posts/default/4959873525499234723'/><link rel='alternate' type='text/html' href='http://ibmdb2-interview-questions.blogspot.com/2009/03/how-would-you-find-out-total-number-of.html' title='How would you find out the total number of rows in a table'/><author><name>Interview Helper</name><uri>http://www.blogger.com/profile/00019571984377897004</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='12' src='http://1.bp.blogspot.com/_AdNUW2U2OOs/SYHHT9_iGqI/AAAAAAAAAAM/PzlYVvYWMac/s1600-R/interviewhelper.jpg'/></author><thr:total>0</thr:total></entry></feed>
