IBM C2090-733 - Questions & Answers
Free preview · every answer includes a full explanation
Product page: https://prepkeys.com/c2090-733.html
A .NET application executes a SQL request invoking the DB2Command.ExecuteReader method and a syntax error exception is thrown.
Which of the following properties contains the SQLCode for this syntax error?
Given the following table definition: CREATE TABLE staff (
id SMALLINT NOT NULL,
name VARCHAR(9),
dept SMALLINT,
job CHAR(5))
Assuming that the following statements execute successfully: Dim cmdStaff As DB2Command = cnDb2.
CreateCommand() cmdStaff.CommandText = "SELECT name FROM staff WHERE (job = @job)" Which of the following is the correct way to provide a value for the parameter marker used?
If the following code is executed in the order shown: conDB2 As DB2Connection
conDB2.ConnectionString = "Database=samplelx;UID=db2user;PWD=db2pwd;"
conDB2.Open()
Which of the following statements is correct?
Which of the following is the DB2 Data Provider for the .
NET class that requires a database connection to be open?
Which of the following ADO .
NET providers is supported by IBM DB2 Add-ins for Visual Studio?
Two OLTP applications run concurrently but frequent locking occurs which requires a fix to be applied. Application A inserts rows into the table T1. Application B submits several queries against the table with a Cursor Stability isolation level.
What would be the best course of action to improve the system's concurrency and performance?
Parameter markers are NOT permitted for which of the following statements?
Given following table:
EMP
EMPNO NAME DEPTNO
SALARY
====== =====
=======
=======
0010
JOSH
D95
30000
0020
JENNA D98
25000
0030
DYLAN D95
10000
0040
TRACY D90
33000
and the following trigger definition: CREATE TRIGGER track_chgs AFTER UPDATE OF salary, name, empno ON emp REFERENCING NEW_TABLE AS ntable
FOR EACH STATEMENT MODE DB2SQL
BEGIN ATOMIC
INSERT INTO changes
SELECT empno, CURRENT TIMESTAMP FROM ntable;
END;
After executing the following SQL statements: DELETE FROM changes;
UPDATE emp SET deptno = 'D98' WHERE deptno = 'D95';
INSERT INTO emp VALUES('0050', 'KEN', 'D90', 35000);
UPDATE emp SET salary = salary - 500 WHERE salary > 35000;
UPDATE emp SET salary = salary + 1000 WHERE salary <= 25000;
What value will be returned by this query?
SELECT count(*) FROM changes
Given the following table and view definitions: CREATE TABLE city (
cityid INT GENERATED ALWAYS AS IDENTITY ,
city_name CHAR(10),
state_code CHAR(2) CHECK(state_code IN ('CA','IL','NY','OH','TX')));
CREATE VIEW city_view AS (
SELECT city_name||','||state_code AS fullname FROM city
WHERE state_code NOT IN ('OH','IL'));

and the following trigger definition: CREATE TRIGGER city_viewInput INSTEAD OF INSERT ON city_view REFERENCING NEW AS n
FOR EACH ROW MODE DB2SQL
BEGIN ATOMIC
DECLARE delim INT;
SET delim = LOCATE(',', n.fullname);
INSERT INTO city(city_name,state_code) VALUES(SUBSTR(n.fullname, 1, delim - 1), SUBSTR(n.fullname, delim + 1, 2));
END;
If the following SQL statments are executed: INSERT INTO city VALUES(DEFAULT,'San Jose','CA') ;
INSERT INTO city_view VALUES('Chicago,IL');
INSERT INTO city VALUES(DEFAULT,'Detroit','MI');
INSERT INTO city VALUES(DEFAULT,'Austin','TX');
INSERT INTO city_view VALUES('Denver,CO');
How many rows will be returned by the following query: SELECT * FROM city
An application running against a DB2 for AIX database needs to execute the following query: SELECT t2.c2, t1.c3 FROM t1 INNER JOIN t2 ON t1.c1 = t2.
c1 If table T1 resides in the DB2 for AIX database and table T2 resides in a DB2 for i5/OS database, which of the following DB2 object types must the identifier T2 represent in order for this SQL statement to run successfully?

