Want To Display The Employee's Last Name Whose Salary Is Below 10,000 and Whose Lastname Starts With Letter K
Want To Display The Employee's Last Name Whose Salary Is Below 10,000 and Whose Lastname Starts With Letter K
Want To Display The Employee's Last Name Whose Salary Is Below 10,000 and Whose Lastname Starts With Letter K
display the unique value for WAREHOUSE renames the column as "No. of
Available Warehouse".
Display the employee id and the last name of every employee in the
company whose salary is between 5000 to 10000. Display the output in a
single column with the format 100 : King Label the column as Employee
Select one:
SELECT CONCAT(employee_id, ':', last_name) AS Employee, salary FROM
employees WHERE salary BETWEEN 5000 TO 10000
Which of the following SQL command will generate the required output.
You want to display the employee’s last name whose salary is below 10,000 and
whose lastname starts with letter K.
Which SQL statement give the required output format of the salary?
Select one:
SELECT last_name, TO_NUMBER(salary, '$999,999.99') AS "MONTHLY
SALARY" FROM employees WHERE salary < 10,000WHERE last_name
= ‘K%’
Display the employee's name, job title, job_id and the department
name of employees with department id of 100.
Answer:
SELECT E.employee_id, J.job_title, e.job_id, D.department_name
FROM employees E
JOIN jobs J ON E.job_id = J.job_id
JOIN departments D ON E.department_id = D.department_id
WHERE E.department_id = 100
Evaluate the following PL/SQL. Which of the following will line creates an
error?
2. (
3. p_department_id IN employees.department_id%TYPE,
6. )
7. IS
8. BEGIN
No error
2. (p_id IN employees.employee_id%TYPE,
7. END query_employee
No error
You want to know the total number of employees whose firstname starts
with letter D.
Which of the folllowing PLS/SQL executes successfully?
None of the choices
1. DECLARE
2. v_first_name VARCHAR2(50);
3. v_last_name VARCHAR2(50);
4. v_salary INTEGER(20);
5. BEGIN
10. END;
No Error.
Select one:
Select one:
Given the DEPARTMENTS table and USER user1, evaluate the SQL
command:
GRANT select
ON user1
TO departments
The SQL command is incorrect
Display employee's name and id whose firstname starts with letter D and
job id is IT_PROG.
Sort the output by department.
SELECT employee_id, first_name, last_name FROM employees WHERE
first_name LIKE 'D%' and job_id = 'IT_PROG' ORDER BY department_id
You want to display the employee’s last name whose salary is below 10,000 and
whose lastname starts with letter K.
Which SQL statement give the required output format of the salary?
SELECT last_name, TO_CHAR(salary, '$999,999.99') AS "MONTHLY
SALARY" FROM employees WHERE salary < 10000WHERE last_name LIKE
‘K%’
Which of the following SELECT statement is the correct report that will
rename the column DESCRIPTION to TITLE, PARTNUM to ID and ONHAND
to STOCK?
SELECT DESCRIPTION AS TITLE, PARTNUM AS ID, ONHAND AS STOCK
FROM PART;