Professional Documents
Culture Documents
FROM EMPLOYEES
WHERE SALARY < 5000;
d. 0
0
0
0
0
0
A type of function that accepts character input and can return both character and number values.
Answer:
Question text
Answer:
Choose the letter of the correct answer based on the table EMPLOYEES as shown below.
What query should be used in order todisplay the Firstname concatenated to employees original salary plus
concatenate again a new column salary that multiplies the original salary into three. Rename the column as Dream
Salaries.Note sort the salary in descending order.
Select one:
AS "DREAM SALARIES"
FROM EMPLOYEES
Question text
Select one:
a. Lower Efficiency
b. Data integrity
c. Qualified Personnel
d. Costs
It is a table that is owned by the user SYS and can be accessed by all users.
Select one:
a. Employees
b. Parts
c. Authors
d. Dual
Question text
Select one:
a. 60
b. 0
c. 600
d. 00
Question text
This query returns rows from both queries including all duplications
Answer:
Question text
Based on the given SELECT statement below what would be the possible output?
SELECT (LASTNAME||FIRSTNAME), JOB_ID
FROM EMPLOYEES
Select one:
b. ABELELLEN SA_REP
TALORJONATHAN SA_REP
GRANTKIMBERLY SA_REP
c. ABELELLEN SA_REP
TALORJONATHAN SA_REP
GRANTKIMBERLY SA_REP
FAYPAT MK_REP
d. ABELELLEN SA_REP
Which of the following is not part of DML statement?
Select one:
a. INSERT
b. UPDATE
c. CREATE table
d. MERGER
Select one:
a. DELETE
b. ALTER
d. CREATE
Based on the given SELECT statement below what would be the possible output?
Select one:
a. 563.39
b. 500
c. 563.3
d. 563
Feedback
Question 13
Complete
Mark 0.00 out of 1.00
Flag question
Question text
Question text
Answer:
Select one:
a. Length
b. Trim
c. INSTR
d. SUBSTR
Provide the best answer for the following statement.
This query returns rows in the first query that are not present in the second query.
Answer:
Question text
Answer:
Question text
Answer:
Question text
Answer:
Question text
SELECT MIN(PRICE) FROM STOCKS;
Answer:
Question text
Select one:
b. Semi-Computerized
c. Data Processing
Question text
Select one:
a. <>
b. IS NUL
c. IN
d. Between AND
Question text
Choose the letter of the correct answer based on the table EMPLOYEES as shown below.
Select one:
FROM EMPLOYEES
FROM EMPLOYEES
FROM EMPLOYEES
d. SELECT TRIM(LASTNAME,’A’)
FROM EMPLOYEES
Question text
Select one:
a. Number function
c. Character function
Question text
Select one:
a. Trim
b. INSTR
c. SUBSTR
d. Length
Suppose that the user wanted to add a new column name as CUST_NAME data type char size 6. What is the correct
type of statement to use?
Select one:
a. UPDATE
b. ALTER
c. INSERT
d. DELETE
Question text
What query should be used in order to display the salary leftpadded with 15 character long and ‘$’ as special
character and another column salary right padded with 10 character long with ‘@’ as special character used of all
employees in 201, 176 and 144.
Select one:
FROM EMPLOYEES
FROM EMPLOYEES
FROM EMPLOYEES
FROM EMPLOYEES
Question text
Choose the letter of the correct answer based on the table EMPLOYEES as shown below.
What query should be used in order to display the lastname and salary of all employees whose department_id = 60 or
job_id like ‘_T%’. Format the salary to be 15 character long, left padded with ‘$’ as special character. Label the column
Salary.
Select one:
FROM EMPLOYEES
WHERE DEPARTMENT_ID = 60 OR JOB_ID LIKE '_T';
b. SELECT LASTNAME, RPAD(SALARY,15,'$') AS SALARY
FROM EMPLOYEES
FROM EMPLOYEES
WHERE DEPARTMENT_ID = 60 OR JOB_ID LIKE '_T';
FROM EMPLOYEES
WHERE DEPARTMENT_ID = 60 OR JOB_ID LIKE 'T';
Question text
Choose the letter of the correct answer based on the table EMPLOYEES as shown below.
What query should be used in order todisplay the firstname in capitalized format rename the column as pangalan
whose job_id is equal to ‘SA_REP’.
Select one:
FROM EMPLOYEES
FROM EMPLOYEES
FROM EMPLOYEES
FROM EMPLOYEES
Question 32
Complete
Which of the following is not part of common Comparison operator?
Select one:
a. !
b. >
c. LIKE
d. <
Question text
Select one:
a. Transactions
b. Data Processing
c. Data Persistence
d. Data Integrity
Question text
True/False. Security is one of the characteristic of database that includes also the protection of the database from
unauthorized access confidentiality and unauthorized changes.
Answer:
Question text
What query should be used in order toget theSUBSTR function that returns the job_id = ‘REP’.
Select one:
WHERE SUBSTR='REP';
WHERE SUBSTR(JOB_ID,4)='%REP%';
WHERE SUBSTR(JOB_ID,4)='REP';
Question text
Choose the letter of the correct answer based on the table EMPLOYEES as shown below.
Table 1.0 EMPLOYEES
Based on the given SELECT statement below what would be the possible output?
Select one:
a. 500
b. 563.3
c. 563
d. 563.39
Question text
Select one:
a. Number function
b. Multiple row
c. Dual table
d. Single row
Question text
A type of function that helps how to group rows in a table into smaller sets and how to specify search criteria for
groups of rows.
Answer:
Select one:
a. Logical condition
b. Specific Column
c. Concat
d. Alias
Question text
This is used to converts the first letter of each word to uppercase and the remaining letters to lowercase.
Select one:
a. Sentence case
b. lowercase
c. Upper case
d. INITCAT
Question text
True/False. Database is the term generally used to describe what was done by large mainframe computers from the
late 1940's until the early 1980's.
Answer:
Question text
Answer:
Question text
Choose the letter of the correct answer based on the table EMPLOYEES as shown below.
Based on the given SELECT statement below what would be the possible output?
Select one:
a. King’,’Steven
Hunold’,’Alexander
Ernst’,’Bruce
Lorentz’,’Diana
b. King,Steven
Hunold,Alexander
Ernst,Bruce
Lorentz,Diana
c. king,steven
hunold,alexander
Ernst,bruce
lorentz,Diana
d. KING,STEVEN
HUNOLD,ALEXANDER
ERNST,BRUCE
LORENTZ,DIANA
Question 47
Complete
Mark 1.00 out of 1.00
Flag question
Question text
Select one:
a. STUDENT
b. EMPLOYEES
c. ORDERS
d. Phone_no
True/False. Table is known as the collection of data that contains information relevant to an enterprise.
Answer:
Question 49
Complete
Mark 1.00 out of 1.00
Flag question
Question text
Choose the letter of the correct answer based on the table EMPLOYEES as shown below.
Based on the given SELECT statement below what would be the possible output?
Select one:
a. 563.39
b. 563
c. 500
d. 563.3
Feedback
Your answer is correct.
SELECT SUM(QTY) FROM STOCKS WHERE WAREHOUSE IN (1,5) GROUP BY WAREHOUSE HAVING MAX(WAREHOUSE)
>=5;
Answer: