Based on the given SELECT statement below what would be the possible output?
SELECT MOD(SALARY,10) AS “EXCESS SALARY”
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
Provide the best answer for the following statement.
A type of function returns one result per row.
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:
c. SELECT (FIRSTNAME||' EARNS '|| SALARY || 'MONTHLY BUT WANTS' || SALARY * 3)
AS "DREAM SALARIES"
FROM EMPLOYEES
ORDER BY SALARY DESC;
Question text
Which of the following is not part of disadvantage of database?
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
What is the return value if the user try to do the following:
SELECT TRUNC (65.73,-2) FROM DUAL;
Select one:
a. 60
b. 0
c. 600
d. 00
Question text
Provide the best answer for the following statement.
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
WHERE SUBSTR (JOB_ID,4)=’REP’;
Select one:
a. ABEL ELLEN SA_REP
TALOR JONATHAN SA_REP
GRAN TKIMBERLY SA_REP
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
Which of the following is not part of DDL statement?
Select one:
a. DELETE
b. ALTER
c. None of the choices
d. CREATE
Based on the given SELECT statement below what would be the possible output?
SELECT TRUNC(563.396,2)FROM DUAL;
Select one:
a. 563.39
b. 500
c. 563.3
d. 563
Feedback
Your answer is correct.
Question 13
Complete
Mark 0.00 out of 1.00
Flag question
Question text
Question text
Provide the best answer for the following statement.
A type of function returns one result per group of row
Answer:
Extracts a string of determined length.
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
True/False. Database Architecture is the overall design of the database
Answer:
Question text
Provide the best answer for the following statement.
This query returns the rows from both queries after eliminating duplications.
Answer:
Question text
Provide the best answer for the following statement.
It combines the results of two or more component queries into one result.
Answer:
Question text
SELECT MIN(PRICE) FROM STOCKS;
Answer:
Question text
Which of the following is not part of handling data?
Select one:
a. Data Management Systems
b. Semi-Computerized
c. Data Processing
d. File Oriented Approach
Question text
Which of the following is not part of other Comparison Operator?
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.
Table 1.0 EMPLOYEES
What query should be used in order todisplay a report that trim the letter ‘A’ from lastname of all employees whose
department_id between 60 and 90.
Select one:
a. SELECT TRIM('A' FROM LASTNAME)
FROM EMPLOYEES
WHERE DEPARTMENT_ID BETWEEN 90 AND 60;
b. SELECT TRIM('A' FROM LASTNAME)
FROM EMPLOYEES
WHERE DEPARTMENT_ID BETWEEN 60 OR 90;
c. SELECT TRIM('A' FROM LASTNAME)
FROM EMPLOYEES
WHERE DEPARTMENT_ID BETWEEN 60 AND 90;
d. SELECT TRIM(LASTNAME,’A’)
FROM EMPLOYEES
WHERE DEPARTMENT_ID BETWEEN 60 AND 90;
Question text
It is use to accept numeric input and return numeric values.
Select one:
a. Number function
b. Case manipulation function
c. Character function
d. Multiple row function
Question text
Trims leading or trailing characters (or both) from a character string.
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:
a. SELECT LPAD(SALARY,15,'$'), RPAD(SALARY,10,'@')
FROM EMPLOYEES
WHERE EMPLOYEE_ID = (201,176,144);
b. SELECT LPAD(SALARY,15,'@'), RPAD(SALARY,10,'$')
FROM EMPLOYEES
WHERE EMPLOYEE_ID IN (201,176,144);
c. SELECT LPAD(SALARY,15,'$'), RPAD(SALARY,10,'@')
FROM EMPLOYEES
WHERE EMPLOYEE_ID IN (201,176,144);
d. SELECT RPAD(SALARY,15,'$'), LPAD(SALARY,10,'@')
FROM EMPLOYEES
WHERE EMPLOYEE_ID IN (201,176,144);
Question text
Choose the letter of the correct answer based on the table EMPLOYEES as shown below.
Table 1.0 EMPLOYEES
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:
a. SELECT LASTNAME, LPAD(SALARY,15,'$')
FROM EMPLOYEES
WHERE DEPARTMENT_ID = 60 OR JOB_ID LIKE '_T';
b. SELECT LASTNAME, RPAD(SALARY,15,'$') AS SALARY
FROM EMPLOYEES
WHERE DEPARTMENT_ID = 60 OR JOB_ID LIKE '_T';
c. SELECT LASTNAME, LPAD(SALARY,15,'$') AS SALARY
FROM EMPLOYEES
WHERE DEPARTMENT_ID = 60 OR JOB_ID LIKE '_T';
d. SELECT LASTNAME, LPAD(SALARY,15,'$') AS SALARY
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.
Table 1.0 EMPLOYEES
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:
a. SELECT UPPER(FIRSTNAME) AS PANGALAN
FROM EMPLOYEES
WHERE JOB_ID IS 'SA_REP';
b. SELECT UPPER(FIRSTNAME) AS PANGALAN
FROM EMPLOYEES
WHERE JOB_ID = 'SA_REP';
c. SELECT UPPER(FIRSTNAME) PANGALAN
FROM EMPLOYEES
WHERE JOB_ID = 'SA_REP';
d. SELECT FIRSTNAME AS PANGALAN
FROM EMPLOYEES
WHERE JOB_ID = 'SA_REP';
Question 32
Complete
Which of the following is not part of common Comparison operator?
Select one:
a. !
b. >
c. LIKE
d. <
Question text
Which of the following is not part of characteristics of database?
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:
a. SELECT JOB_ID FROM EMPLOYEES
WHERE JOB_ID LIKE ‘%REP%’;
b. SELECT JOB_ID FROM EMPLOYEES
WHERE SUBSTR='REP';
c. SELECT JOB_ID FROM EMPLOYEES
WHERE SUBSTR(JOB_ID,4)='%REP%';
d. SELECT JOB_ID FROM EMPLOYEES
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 TRUNC(563.396,1)FROM DUAL;
Select one:
a. 500
b. 563.3
c. 563
d. 563.39
Question text
This is use to return one result per row.
Select one:
a. Number function
b. Multiple row
c. Dual table
d. Single row
Question text
Provide the best answer for the following statement.
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:
Which of the following is not part of basic SELECT statement
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
SELECT COUNT(*) FROM STOCKS;
Answer:
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 INITCAP(LASTNAME||’,’||FIRSTNAME) AS NAME
FROM EMPLOYEES
WHERE JOB_ID LIKE ’%PR%’;
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
Which of the following is not the correct example of entity?
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.
Table 1.0 EMPLOYEES
Based on the given SELECT statement below what would be the possible output?
SELECT TRUNC(563.396,-2) FROM DUAL;
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: