Beruflich Dokumente
Kultur Dokumente
SL Question Answer
You need to extract details of those products in the SALES A. WHERE prod_id LIKE '%_D123%' ESCAPE '_'
table where the PROD_ID column contains the B. WHERE prod_id LIKE '%\_D123%' ESCAPE '\'
string '_D123'. C. WHERE prod_id LIKE '%_D123%' ESCAPE '%_'
1
D. WHERE prod_id LIKE '%\_D123%' ESCAPE '\_'
Which WHERE clause could be used in the SELECT
statement to get the required output? Answer: B
Answer: D,E
A. SELECT TO_CHAR(1890.55,'$0G000D00')
FROM DUAL;
B. SELECT TO_CHAR(1890.55,'$9,999V99')
FROM DUAL;
C. SELECT TO_CHAR(1890.55,'$99,999D99')
Which SQL statements would display the value 1890.55 as FROM DUAL;
3
$1,890.55? (Choose three.) D. SELECT TO_CHAR(1890.55,'$99G999D00')
FROM DUAL;
E. SELECT TO_CHAR(1890.55,'$99G999D99')
FROM DUAL;
Answer: A,D,E
Answer: D
A. SELECT cust_last_name Name, cust_credit_limit +
1000
A. "New Credit Limit"
B. FROM customers;
You need to produce a report where each customer's credit
C. SELECT cust_last_name AS Name, cust_credit_limit +
limit has been incremented by $1000.
1000
D. AS New Credit Limit
In the output, the customer's last name should have the
E. FROM customers;
heading Name and the incremented credit limit should
B. SELECT cust_last_name AS "Name", cust_credit_limit
5 be labeled New Credit Limit.
+ 1000
F. AS "New Credit Limit"
The column headings should have only the first letter of each
G. FROM customers;
word in uppercase .
C. SELECT INITCAP(cust_last_name) "Name",
cust_credit_limit + 1000 INITCAP("NEW CREDIT
Which statement would accomplish this requirement?
LIMIT")
H. FROM customers;
Answer: C
Answer: A,C,F
Answer: D,E
Answer: A
BEGIN
END;
/
What type of trigger is it?
A. SHOW FUNCTION_ERROR
When creating a function in SQL *Plus, you receive this
message: "Warning: Function created with compilation
B. SHOW USER_ERRORS
12 errors." C. SHOW ERRORS
Which command can you issue to see the actual error D. SHOW ALL_ERRORS
message?
Answer: C
Answer: C,D
Answer: C
a)=45.6
16 a) ROUND(45.56, 1)=? B) TRUNC(45.56, 1)=?
b)=45.5
17 Write a syntax using NVL Select NVL( string1, replace_with ) from table
The below query gives an error. why?
18 For missing group by clause
SELECT department_id, AVG(salary) FROM employees