Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Look up keyword
Like this
22Activity
0 of .
Results for:
No results containing your search query
P. 1
DB2 700 Complete QA - 2

DB2 700 Complete QA - 2

Ratings:

4.5

(4)
|Views: 542 |Likes:
Published by jeeboomba
Second in series of QA for db2 700 exam.
Second in series of QA for db2 700 exam.

More info:

Published by: jeeboomba on Mar 24, 2008
Copyright:Attribution Non-commercial

Availability:

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

06/09/2011

pdf

text

original

 
1) Given the two table definitions: 
ORGdeptnumb INTEGERdeptname CHAR(30)manager INTEGERdivision CHAR(30)location CHAR(30)STAFFid INTEGERname CHAR(30)dept INTEGERjob CHAR(20)years INTEGERsalary DECIMAL(10,2)comm DECIMAL(10,2)
Which of the following statements will display all departments, alphabetically by departmentname, and the name of the manager of each department?
SELECT a.deptname, b.name FROM org a, staff b WHEREb.manager=a.idSELECT a.deptname, b.name FROM org a, staff b WHERE b.manager=a.idGROUP BY a.deptname, b.name
 
SELECT a.deptname, b.name FROM org a, staff b WHERE a.manager=b.idORDER BY a.deptname, b.nameSELECT a.deptname, b.name FROM org a, staff b WHERE a.manager=b.idGROUP BY b.name ORDER BY a.deptname
2)
The table STOCK has the following column definitions: 
type CHAR(1)status CHAR(1)quantity INTEGERprice DEC (7,2)
items are indicated to be out of stock by setting STATUS to NULL and QUANTITY and PRICE tozero.Which of the following statements updates the STOCK table to indicate that all the items exceptfor those with TYPE of "S" are temporarily out of stock?UPDATE stock SET status='NULL', quantity=0, price=0 WHERE type <> 'S'UPDATE stock SET (status, quantity, price) = (NULL, 0, 0) WHERE type <> 'S'UPDATE stock SET (status, quantity, price) = ('NULL', 0, 0) WHERE type <>'S'UPDATE stock SET status = NULL, SET quantity=0, SET price = 0 WHERE type <>'S'
 
3)
Given the following table definition and SQL statements:
CREATE TABLE table1 (col1 INT, col2 CHAR(40), col3 INT)GRANT INSERT, UPDATE, SELECT, REFERENCES ON TABLE table1 TO USERusera
Which of the following SQL statements will revoke the privileges granted to user USERA on COL1and COL2?REVOKE UPDATE ON TABLE table1 FROM USER useraREVOKE ALL PRIVILEGES ON TABLE table1 FROM USER useraREVOKE ALL PRIVILEGES ON TABLE table1 COLUMNS (col1, col2) FROM useraREVOKE REFERENCES ON TABLE table1 COLUMNS (col1, col2) FROM USER usera
4)
Which of the following processes is NOT performed by DB2 Warehouse Manager?QueryLoadingExtractionTransformation
5)
Given the following statements:
CREATE TABLE t4(c1 INTEGER NOT NULL,c2 INTEGER,c3 DECIMAL(7,2) NOT NULL,c4 CHAR(20) NOT NULL);CREATE UNIQUE INDEX i4 ON t4(c1,c3);ALTER TABLE t4 ADD PRIMARY KEY (c1,c3);
Which of the following statements is TRUE?The ALTER TABLE statement will fail.The primary key will use the I4 unique index.A primary index will need to be created on the composite key (C1,C3).An additional unique index will automatically be created on the composite key (C1,C3).
6)
Given that table T1 needs to hold specific numeric values up to 99999.99 in column C1.Which of the following would be the most exact definition for C1?REALINTEGERNUMERIC(7,2)
 
DECIMAL(5,2)
7)
A client application on OS/390 or OS/400 must access a DB2 server on Linux. At a minimum,which of the following products is required to be on the DB2 server?DB2 Connect Enterprise EditionDB2 UDB Enterprise Server EditionDB2 Connect Enterprise Edition and DB2 UDB Workgroup Server EditionDB2 Connect Enterprise Edition and DB2 UDB Enterprise Server Edition8) Which of the following isolation levels will hold locks only on the rows in the answer set at theend of the query?Read StabilityRepeatable ReadCursor StabilityUncommitted Read
9)
Given a read-only application that requires consistent data for every query, which of thefollowing isolation levels should it use to provide the most concurrency with other applicationsdoing updates?Read StabilityRepeatable ReadCursor StabilityUncommitted Read
10)
USER3 is running a program A.APP1 that calls stored procedure P.PROC1.As an administrator, which of the following statements should be executed to give USER3 theappropriate privilege to be able to execute the code found in stored procedure P.PROC1?GRANT EXECUTE ON PACKAGE a.app1 TO user3GRANT EXECUTE ON PROCEDURE a.app1 TO user3GRANT EXECUTE ON FUNCTION p.proc1 TO user3GRANT EXECUTE ON PROCEDURE p.proc1 TO user3
11)
An application is using the Cursor Stability isolation level. Which of the following releases arow lock acquired by this application?When the cursor accessing the row is moved to the next rowWhen the cursor accessing the row is used to update the rowWhen the application's current row is deleted by the applicationWhen the application's current row needs to be updated by another application

Activity (22)

You've already reviewed this. Edit your review.
1 hundred reads
1 thousand reads
ALi liked this
ALi liked this
Sumitra Sreejit liked this
Sumitra Sreejit liked this
Sumitra Sreejit liked this
narenpuru89 liked this
Rajesh Ramani liked this

You're Reading a Free Preview

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