1 / 7
文档名称:

数据库开发面试题.doc

格式:doc   大小:50KB   页数:7页
下载后只包含 1 个 DOC 格式的文档,没有任何的图纸或源代码,查看文件列表

如果您已付费下载过本站文档,您可以点这里二次下载

分享

预览

数据库开发面试题.doc

上传人:bai1968104 2021/3/27 文件大小:50 KB

下载得到文件列表

数据库开发面试题.doc

相关文档

文档介绍

文档介绍:SQL exam
(Please wirte your answer in-line in red font)
You need to extract details of those products in the SALES table where the PROD_ID column contains the string '_D123'. Which WHERE clause could be used in the SELECT statement to get the required output?
A. WHERE prod_id LIKE '%_D123%' ESCAPE '_'
B. WHERE prod_id LIKE '%\_D123%' ESCAPE '\'
C. WHERE prod_id LIKE '%_D123%' ESCAPE '%_'
D. WHERE prod_id LIKE '%\_D123%' ESCAPE '\_'
Evaluate the following two queries:
SQL> SELECT cust_last_name, cust_city
FROM customers
WHERE cust_credit_limit IN (1000, 2000, 3000);
SQL> SELECT cust_last_name, cust_city
FROM customers
WHERE cust_credit_limit = 1000
OR cust_credit_limit = 2000
OR cust_credit_limit = 3000;

Which statement is true regarding the above two queries?
A. Performance would improve in query 2.
B. Performance would degrade in query 2.
C. There would be no change in performance.
D. Performance would improve in query 2 only if there are null values in the CUST_CREDIT_LIMIT column.
Which three statements/commands would cause a transaction to end? (Choose three.)
A. COMMIT
B. SELECT
C. CREATE
D. ROLLBACK
E. SAVEPOINT
There are two table:
T_A (name VARCHAR2(100))
T_B (name VARCHAR2(100), name_a VARCHAR2(100));
The values are:
T_A
T_B
name
Jane
Leo
David
name
na