N NO:149 -
Which of the following is a valid wildcard character in a LIKE clause of a SELECT statement?
Answer : A
Which product must be installed on z/OS to allow a COBOL program running on that machine to access data on a remote DB2 for z/OS server?
Answer : A
Which tool must be used to analyze all of the database operations performed by an application against a DB2 for i5/OS database?
Answer : C
Given the following function:
CREATE FUNCTION emplist ()
RETURNS TABLE ( id CHAR(6)
, firstname VARCHAR(12)
, lastname VARCHAR(15) )
LANGUAGE SQL -
BEGIN ATOMIC -
RETURN -
SELECT EMPNO, FIRSTNME, LASTNAME
FROM EMPLOYEE -
WHERE WORKDEPT IN ('A00', 'B00');
END -
How can this function be used in an SQL statement?
Answer : D
A sequence was created with the DDL statement shown below:
CREATE SEQUENCE my_seq START WITH 10 INCREMENT BY 10 CACHE 10
User USER1 successfullyexecutes the following statements in the order shown:
VALUES NEXT VALUE FOR my_seq INTO :hvar;
VALUES NEXT VALUE FOR my_seq INTO :hvar;
User USER2 successfully executes the following statements in the order shown:
ALTER SEQUENCE my_seq RESTART WITH 5 INCREMENT BY 5 CACHE 5;
VALUES NEXT VALUE FOR my_seq INTO :hvar;
After users USER1 and USER2 are finished, user USER3 executes the following query:
SELECT NEXT VALUE FOR my_seq FROM sysibm.sysdummy1
What value will be returned by the query?
Answer : D