123 345
1 record (s) selected
C. C1 C2
----- -------
123 0
1 record (s) selected
D. C1 C2
----- -------
null 0
1 record (s) selected
B 42. Given the following SQL Statements:’
Create table tab1 (col1 int )
Insert into tab1 values (null)
Insert into tab1 values (1)
Create table tab2 (col1 int)
Insert into tab2 values (null)
Insert into tab2 values (1)
Select count (*) from tab1
Where col1 in
Which of the following is the result of the SELECT COUNT (*)(select col1 from tab2)
Statement?
A. 0
B. 1
C. 2
D. null
C 43. A user defined function named F.FOO has an input parameter of an integer. USER4 executes the following SQL statement:
SELECT col1.col2from t.tab1 where f.foo (col1) <6;
Which of the following statements grants USER4 the privilege needed to be able to execute the user defined function?
A. GRANT USE ON FUNCTION F.FOO (INT) TO USER4
B. GRANT SELECT ON FUNCTION F.FOO (INT) TO USER4
C. GRANT EXECUTE ON FUNCTION F.FOO (INT) TO USER4
D. GRANT REFERENCES ON FUNCTION F.FOO (INT) TO USER4
D 44. Given the following:
create table tab1 (c1 char (3) with default null, c2 integer);
insert into tab1(c2) values (345)
What will be the result of the following statement if issued from the command line processor?
Select* from tab1;
A. C1 C2
----- -------
0 record (s) selected
B. C1 C2
----- -------
123 345
1 record (s) selected
C. C1 C2
----- -------
会员注册
会员登录
个人空间