Академический Документы
Профессиональный Документы
Культура Документы
Data ModelsX
data models
Are said to exhibit physical data independence if they do not depend on the
physical schema.
Application programsX
This is also known as facts that can be recorded and that have implicit meaning.
Data
Which of the following is the correct example inserting a new value to STUDENTS
table that will only add new data to STUD_ID and LASTNAME? The stud_id is 10 and
lastname is �CRUZ�
b. INSERT INTO STUDENTS(STUD_ID,LASTNAME)
VALUES(10,�CRUZ�);
Which of the following is the correct example updating all student COURSE to �BSIT�
from STUDENTS table?
d. UPDATE STUDENTS
SET COURSE = �BSIT�;
Suppose that a user wanted to insert a new value using the implicit method which of
the following is the correct example.
b. INSERT INTO STUDENST(USN_ID, FIRSTNAME)
VALUES(10,�ELENA�)
_______________________________________________________________
It is the term generally used to describe what was done by large mainframe
computers from the late 1940's until the early 1980's.
Data Processing
It is a bundle of actions which are done within a database to bring it from one
consistent state to a new consistent state.
Transaction
Which of the following is the correct example of removing a column FIRSTNAME from
EMPLOYEES table?
c. ALTER TABLE EMPLOYEES
DROP COLUMN FIRSTNAME;
Which of the following is the correct example of updating the LASTNAME to �REYES�
of all students from STUDENTS table whose STUD_ID is equal to 01020564?
d. UPDATE STUDENTS
SET LASTNAME = �REYES�
Suppose that a user uses the DELETE statement as shown below: what is/are the
possible output.
d. All rows are deleted but the table is still intact.
A type of insert statement that omit the column from the column list.
c. Implicit
Which of the following is the correct example of modifying the column lastname?
Change the datatype size to 20.
d. ALTER TABLE EMPLOYEES
MODIFY LASTNAME VARCHAR(20);
A type of insert statement that specify the NULL keyword in the VALUES clause.
a. Explicit
Which of the following is the correct example of creating a new table STUDENTS? The
column STUD_ID is set to primary key.
c. CREATE TABLE STUDENTS( STUD_ID NUMBER(3) PRIMARY KEY);
Which of the following is the correct example of truncating the table EMPLOYEES?
c. TRUNCATE TABLE EMPLOYEES;
______________________________________________________________
Basic unit of storage composed of rows and columns
d. Table
Which of the following is the correct example of dropping the table EMPLOYEES?
d. DROP TABLE EMPLOYEES;
Which of the following is the correct example of deleting all records in STUDENTS
table;
b. DELETE FROM STUDENTS;
Which of the following is the correct example inserting a new value to STUDENTS
table that will only add new data to STUD_ID and LASTNAME? The stud_id is 10 and
lastname is 'CRUZ' and the rest of the column is set to NULL.
c. INSERT INTO STUDENTS VALUES (10,'CRUZ',NULL,NULL);
Which of the following is the correct example of inserting new values to STUDENTS
table?
a. INSERT INTO STUDENTS VALUES(1,'DELA CRUZ','JUANITO','BSIT');
Suppose that a user wanted to update the lastname of student to �Santos� and YR_LVL
to �Irreg� whose USN_ID is equal to 50, in one select statement which of the
following is the correct sql statement to use.
d. UPDATE STUDENTS
SET LASTNAME = �SANTOS�, YR_LVL = �IRREG�
WHERE USN_ID = 50;
This is use to Selects the columns in a table that are returned by a query. Selects
a few or as many of the columns as required.
d. Projection
Supposed that the user uses the ff SELECT statement: what will be the possible
output.
SELECT GRADE AS STUDENT MARK FROM GRADE_REPORT;
d. Error because of missing �� mark.
This is used to selects the rows in a table that are returned by a query. Various
criteria can be used to restrict the rows that are retrieved.
d. Selection
This is used to brings together data that is stored in different tables by
specifying the link between them.
a. Joins
This is used to in conditions that compare one expression with another value or
expression.
d. Comparison
Given the output below. Which of the following is the correct PL/SQL to be used?
b. SELECT (PARTNUM|| �belong to�||DESCRIPTION) FROM PARTS WHERE CLASS = �SG�;
True/False Character values are format sensitive and date values are case
sensitive-sensitive.
False
Which of the following is the correct report listing the column PARTNO, DESCRIPTION
and WAREHOUSE. Get only that description that does not ends with �ER�. Note that
you have to merge the said three columns, rename the merge column as �Parts
Record�. Below is the sample output for column.
Parts Record
AT94is the part number ofIRONwhich belong to warehouse3
-SELECT (PARTNUM || �is the part number of� ||DESCRIPTION || �which belongs to� ||
WAREHOUSE) FROM PARTS WHERE PARTNUM NOT LIKE �ER%�;
X
Given the output below. Which of the following is the correct PL/SQL to be used
a. SELECT WAREHOUSE, CLASS FROM PARTS WHERE CLASS IN (�AP�,�SG�,�HW�);
X
b. SELECT DICTINCT WAREHOUSE, CLASS FROM PARTS WHERE WAREHOUSE >=1;
Given the output below. Which of the following is the correct PL/SQL to be used?
c. SELECT DESCRIPTION, ONHAND, CLASS
FROM PARTS
WHERE CLASS = �AP� OR ONHAND BETWEEN 8 AND 12;
X
_______________________________________________________
Based on the given SELECT statement below what would be the possible output?
FROM EMPLOYEES
AND SALARY=17000;
a. NENA 17000 $$$18600
LEX 17000 $$$18600
This is use to accept character input and can return both character and number
values.
b. Character function
Based on the given SELECT statement below what would be the possible output?
Based on the given SELECT statement below what would be the possible output?
FROM EMPLOYEES
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.
c. SELECT RPAD(SALARY,15,'$'), LPAD(SALARY,10,'@')
FROM 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�.
d. SELECT FIRSTNAME AS PANGALAN
FROM EMPLOYEES
Based on the given SELECT statement below what would be the possible output?
SELECT LOWER(LASTNAME||�with a salary of�||SALARY) as Record, LENGTH(LASTNAME) as
Lname
FROM EMPLOYEES
OR SALARY IS NULL;
b. king with a salary of 24000 4
hunoldwith a salary of 2400 6 XXXXXXX
What query should be used in order to display the firstname concatenated to salary
with additional column salary that provides a computation of salary * 2. Rename the
column as Increase of all employees whose lastname ends with N.
d. SELECT (FIRSTNAME || 'SALARY OF' SALARY 'IF MULITPLY BY TWO THEN HE/SHE WLL GOT
A NEW SALARY OF' || SALARY * 2)AS INCREASE FROM EMPLOYEES WHERE LASTNAME LIKE 'N%';
XXXXXX
_______________________________
Which of the following query is correct which will display the same output as shown
below?
c. SELECT MAX(LASTNAME||','||FIRSTNAME) AS NAME, MAX(SALARY)
FROM EMPLOYEES;
GROUP BY JOB_ID,DEPARTMENT_ID;
Which of the following query is correct which will display the same output as shown
below?
a. SELECT MIN(LASTNAME), JOB_ID, MAX(SALARY)
FROM EMPLOYEES
GROUP BY JOB_ID;
Which of the following query is correct which will display the same output as shown
below?
b. SELECT MIN(LASTNAME||FIRSTNAME) AS NAME, DEPARTMENT_ID
FROM EMPLOYEES
GROUP BY DEPARTMENT_ID
HAVING(DEPARTMENT_ID)<=90; XXXX
Which of the following query is correct which will display the same output as shown
below?
a. SELECT MIN(LASTNAME),MAX(FIRSTNAME),SUM(SALARY),AVG(SALARY)
FROM EMPLOYEES
Which of the following is the correct query that display the Minimum firstname
concatenated to lastname? Look for the maximum salary that is less than 10000 per
department_id.
d. SELECT MIN(FIRSTNAME||LASTNAME)
FROM EMPLOYEES
HAVING MAX(SALARY)<10000
True/False. A null value means that the value is unavailable, unassigned, unknown,
or inapplicable.
True
This is used to selects the rows in a table that are returned by a query. Various
criteria can be used to restrict the rows that are retrieved.
b. Selection
Which of the following is the correct report listing only the column DESCRIPTION,
WAREHOUSE, CLASS and PRICE of all parts where the description contains keyword
�SHE�.
SELECT DESCRIPTION, WAREHOUSE, CLASS, PRICE FROM PARTS WHERE DESCRIPTION LIKE �%SHE
%�;
This is use to Selects the columns in a table that are returned by a query. Selects
a few or as many of the columns as required.
d. Projection
True/False Character values are format sensitive and date values are case
sensitive-sensitive.
False
This is used to in conditions that compare one expression with another value or
expression.
d. Comparison
This is used to in conditions that compare one expression with another value or
expression.
a. Comparison
Which of the following is the correct report listing only the column PARTNUM, CLASS
and ONHAND of all parts where partnum is equal to AT94, DR93 and KV29. (Note 1
query only and do not use logical condition)
SELECT PARTNUM, CLASS, ONHAND FROM PARTS WHERE PARTNUM IN (�AT94�,�DR93�,�KV29�);
Which of the following is the correct report listing only the column PARTNUM,
DESCRIPTION and PRICE of all PARTS where price is less than 500. Sort the PRICE in
ascending order.
SELECT PARTNUN, DESCRIPTION, PRICE FROM PARTS WHERE PRICE < 500;
Supposed that the user uses the ff SELECT statement: what will be the possible
output.
Given the output below. Which of the following is the correct PL/SQL to be used?
b. SELECT DESCRIPTION, ONHAND, CLASS
FROM PARTS
True/False. Character strings and date values are enclosed with double quotation
marks.
False
This is used to brings together data that is stored in different tables by
specifying the link between them.
b. Joins
Which of the following is the correct report listing only the column DESCRIPTION,
PARTNUM, CLASS and PRICE of all parts where the description fourth letter starting
from the first is equal to �D�.
X SELECT DESCRIPTION, PARTNUM, CLASS, PRICES FROM PARTS WHERE DESCRIPTION LIKE �D
%�;
SELECT DESCRIPTION, PARTNUM, CLASS, PRICES FROM PARTS WHERE DESCRIPTION LIKE �___D
%�;
Which of the following is the correct report listing only the column CLASS,
DESCRIPTION and PRICE of all PARTS where price range is between 200 to 500. Sort
the Price in descending order.
X SELECT CLASS, DESCRIPTION, PRICE FROM PARTS WHERE PRICE BETWEEN 200 AND BETWEEN
500;
SELECT CLASS, DESCRIPTION, PRICE FROM PARTS WHERE PRICE BETWEEN 200 AND 500;
Which of the following is the correct report listing only the column DESCRIPTION,
CLASS and PRICE of all PARTS where class is not equal to AP.
X SELECT DESCRIPTION, CLASS, PRICE FROM PARTS WHERE CLASS NOT LIKE �%AP�;
X SELECT DESCRIPTION, CLASS, PRICE FROM PARTS WHERE CLASS != AP;
Given the output below. Which of the following is the correct PL/SQL to be used?
X d. SELECT (PARTNUM|| belong to||DESCRIPTION) FROM PARTS WHERE CLASS = �SG�;
X b. SELECT (PARTNUM|| �belong to�||DESCRIPTION) FROM PARTS WHERE PARTNUM IN
(�BV06,�KV29�)
Which of the following is the correct report that will display the distinct value
for CLASS and WAREHOUSE limit the rows by getting only the parts under WAREHOUSE 3?
X SELECT CLASS, WAREHOUSE FROM PARTS WHERE WAREHOUSE = �3�;
SELECT CLASS, WAREHOUSE FROM PARTS WHERE WAREHOUSE = 3;
Given the output below. Which of the following is the correct PL/SQL to be used?
X WHERE DESCRIPTION LIKE �R%�;
WHERE DESCRIPTION LIKE �%R�;
Given the output below. Which of the following is the correct PL/SQL to be used?
X WHERE ONHAND IN(50,21,22);
WHERE CLASS = �HW�;
Given the output below. Which of the following is the correct PL/SQL to be used?
X WHERE CLASS = �AP� OR DESCRIPTION LIKE �__S%�;
X WHERE CLASS = �AP� OR ONHAND BETWEEEN 8 AND 12
Which of the following is the correct report listing the column PARTNO, DESCRIPTION
and WAREHOUSE. Get only that description that does not ends with �ER�. Note that
you have to merge the said three columns, rename the merge column as �Parts
Record�. Below is the sample output for column.
Parts Record
AT94is the part number ofIRONwhich belong to warehouse3
X SELECT (PARTNUM || �is the part number of� ||DESCRIPTION || �which belongs to�
|| WAREHOUSE) FROM PARTS WHERE PARTNUM LIKE �%ER�;
X SELECT (PARTNUM || �is the part number of� ||DESCRIPTION || �which belongs to�
|| WAREHOUSE) FROM PARTS WHERE PARTNUM NOT LIKE �ER%�;
Which of the following is the correct report that will list only the column
DESCRIPTION, PARTNUM, CLASS, and PRICE of all PART whose CLASS is equal to HW.
X SELECT DESCRIPTION, PARTNUM, CLASS, PRICE FROM PARTS WHERE class="HW";
X SELECT COLUMN DESCRIPTION, PARTNUM, CLASS, PRICE FROM PARTS WHERE CLASS=�HW�;
SELECT DESCRIPTION, PARTNUM, CLASS, PRICE FROM PARTS WHERE CLASS=�HW�;
Which of the following is the correct report listing only the column DESCRIPTION,
ONHAND and WAREHOUSE of all PARTS where ONHAND is greater than or equal to 21.
X SELECT DESCRIPTION, ONHAND, WAREHOUSE FROM PARTS WHERE ONHAND <=21;
SELECT DESCRIPTION, ONHAND, WAREHOUSE FROM PARTS WHERE ONHAND >=21;
Given the output below. Which of the following is the correct PL/SQL to be used
X b. SELECT WAREHOUSE, CLASS FROM PARTS WHERE CLASS IN (�AP�,�SG�,�HW�);
d. SELECT WAREHOUSE, CLASS FROM PARTS;
Given the output below. Which of the following is the correct PL/SQL to be used?
X WHERE CLASS IN (�HW�,�SG�);
WHERE DESCRIPTION LIKE �%L�;
Which of the following is the correct report that will display the DESCRIPTION,
WAREHOUSE AND distinct value for CLASS.
X SELECT DESCRIPTION, WAREHOUSE, DISTINCT �CLASS � FROM PARTS;
SELECT DESCRIPTION, WAREHOUSE, DISTINCT (CLASS) FROM PARTS;
Which of the following is the correct report listing the DESCRIPTION and Price
(Note that in column PRICE add ADDITIONAL 10000). Get only the prices with no digit
that is equal to �5�. Note that you have to concatenate the said column and rename
the merge column as �New Price Lists�. Sort the data in DESC order by Price.
X SELECT DESCRIPTION, PRICE + 10000 AS �NEW PRICE LISTS� FROM PARTS ORDER BY
PRICE;
SELECT DESCRIPTION, PRICE + 10000 AS �NEW PRICE LISTS� FROM PARTS ORDER BY PRICE
DESC;
Which of the following is the correct report showing all rows and columns sort the
description in ascending order.
X SELECT * FROM PARTS ORDER BY DESCRIPTION ASC;
X SELECT * FRO
Which of the following is the correct report listing only the column DESCRIPTION,
ONHAND, CLASS and PRICE of all price where the description ends with letter �N�.
Which of the following is the correct report showing all rows and columns sort the
description in ascending order.
SELECT DESCRIPTION, ONHAND, CLASSS FROM PARTS WHERE DESCRIPTION LIKE �%N�;
Given the output below. Which of the following is the correct PL/SQL to be used?
X d. SELECT WAREHOUSE, CLASS FROM PARTS WHERE CLASS IN (�AP�,�SG�,�HW�);
X b. SELECT DISTINCT WAREHOUSE, CLASS FROM PARTS WHERE WAREHOUSE >=1;
Which of the following is the correct report that will merge the column DESCRIPTION
and PRICE put a literal character string of = � with a price of � in between the
two columns. Limit the rows returned by getting only the partnum that starts with
letter �K�.
X SELECT (DESCRIPTION|| �WITH A PRICE OF� || PRICE) FROM PARTS WHERE PARTNUM LIKE
�%K�;
SELECT (DESCRIPTION|| �WITH A PRICE OF� || PRICE) FROM PARTS WHERE PARTNUM LIKE �K
%�;
___________________________________________________________________________________
___
This is use to find the numeric position of a named character starting at character
position n.
a. INSTR
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.
a. SELECT TRIM('A' FROM LASTNAME)
FROM EMPLOYEES
What query should be used in order to display the employees lastname concatenated
with firstname and with a �, (comma)� in between. A rename on the concatenated
column as Complete Name. Note all values in Complete Name column should be in
lowercase plus display the length of employees lastname for all employees whose
lastname starts with letter M sort the lastname in its default order.
b. SELECT LOWER(LASTNAME||','||FIRSTNAME) AS "COMPLETE NAME",
LENGTH(LASTNAME)
FROM EMPLOYEES
What query should be used in order toget theSUBSTR function that returns the
job_id = �REP�.
This is used to converts the first letter of each word to uppercase and the
remaining letters to lowercase.
d. INITCAT
************WRONG ANSWERS********
1.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.
X d. SELECT LASTNAME, RPAD(SALARY,15,'$') AS SALARY
FROM EMPLOYEES
2.Based on the given SELECT statement below what would be the possible output?
FROM EMPLOYEES
c. 0 XXX
0
0
0
0
What query should be used in order todisplay the firstname and length of firstname
rename the column length of firstname as Number of Character of all employees whose
salary is between 4400 and 8300
XXX a. SELECT FIRSTNAME, INSTR(FIRSTNAME) AS "NUMBER OF CHARACTER"
FROM EMPLOYEES
https://www.coursehero.com/u/file/p3bejd0/SELECT-COUNT-FROM-STOCKS-9-CORRECT-10-
SELECT-AVGNVLQTY0-FROM-STOCKS-822-CORRECT/#doc/qa
*************************************************
Which of the following is the correct query that displays the MINIMUM salary of
employees per job_id? Note job_id should be in lowercase.
c. SELECT MIN(SALARY) AS �LOWEST SALARY�, LOWER(JOB_ID)
FROM EMPLOYEES
GROUP BY JOB_ID;
FROM EMPLOYEES
SELECT SUM(QTY) FROM STOCKS WHERE WAREHOUSE IN (1,5) GROUP BY WAREHOUSE HAVING
MAX(WAREHOUSE) >=5;
- 1
Which of the following is the correct query that displays the lowest salary rename
as �LOWEST SALARY�, maximum salary rename as �HIGHEST SALARY� and department_id
concatenated to job_id?
- d. SELECT CONCAT(DEPARTMENT_ID,JOB_ID),MIN(SALARY), MAX(SALARY)
FROM EMPLOYEES
GROUP BY JOB_ID,DEPARTMENT_ID;
Which of the following is the correct query that display the maximum lastname
concatenated to firstname and rename the column as �Employees Name�, Job_id and
apply the ff. functions:
Count the Job_id; Apply where condition whose lastname ends with letter �N�; Group
the job_id; and Apply having clause of employees having average salary that is
greater than 10000.
- d. SELECT MAX(LASTNAME||FIRSTNAME) AS "EMPLOYEES NAME", JOB_ID, COUNT(JOB_ID)
FROM EMPLOYEES
GROUP BY JOB_ID
HAVING AVG(SALARY)>10000;
KIMBERLY
WILLIAM
BRUCE
PAT
- a. SELECT MAX(FIRSTNAME), MANAGER_ID, COUNT(SALARY), AVG(SALARY)
FROM EMPLOYEES
GROUP BY MANAGER_ID
HAVING MIN(SALARY) >= 5000;
What query should be used in order to display the firstname concatenated to salary
with additional column salary that provides a computation of salary * 2. Rename the
column as Increase of all employees whose lastname ends with N.
- c. SELECT (FIRSTNAME || 'SALARY OF' || SALARY || 'IF MULITPLY BY TWO THEN HE/SHE
WLL GOT A NEW SALARY OF' || SALARY * 2)AS INCREASE FROM EMPLOYEES WHERE LASTNAME
LIKE '%N';
COUNT(*)
20
- b. SELECT COUNT(*) FROM EMPLOYEES;
DE HAANLEX 90
ABELELLEN 50
- SELECT MIN(LASTNAME||FIRSTNAME) AS NAME, DEPARTMENT_ID
FROM EMPLOYEES
GROUP BY DEPARTMENT_ID
HAVING MIN(DEPARTMENT_ID)<=90;
NO. OF MANAGER_ID
---------------------------- 19
- SELECT COUNT(MANAGER_ID) AS "NO. OF MANAGER_ID" FROM EMPLOYEES;
NAME MAX(SALARY)
----------------------------------------
ZLOTKEY, ELENI 24000
- SELECT MAX(LASTNAME||','||FIRSTNAME) AS NAME, MAX(SALARY)
FROM EMPLOYEES;
Which of the following is the correct query that display the Job_id and add the ff:
function:
Count the total number of job_id per distinct values; Compute for the summary of
salary per job_id; and Compute for the average salary per job_id
- SELECT DISTINCT(JOB_ID), COUNT(JOB_ID) AS �NO. OF JOB_ID�, SUM(SALARY) AS �TOTAL
SALARY�, AVG(SALARY) AS �AVERAGE SALARY� FROM EMPLOYEES GROUP BY JOB_ID;
It is a table that is owned by the user SYS and can be accessed by all users.
- Dual
Which of the following is the correct report that display the smallest (minimum)
Surname.. and apply the ff. functions:
Get the average salary; Group the data per job_id; Get only job_id with a keyword
�REP�; and Apply having clause, which the max salary per job_id is greater than
5000.
- SELECT MIN(LASTNAME), AVG(SALARY)
FROM EMPLOYEES
GROUP BY JOB_ID
HAVING MAX(SALARY)>500;
Which of the following is the correct that display distinct job_id and the the
total number per distinct (unique) job_id.
- SELECT DISTICT(JOB_ID), COUNT(JOB_ID) AS �TOTAL NUMBER OF JOB_ID�
FROM EMPLOYEES
GROUP BY JOB_ID;
***************************************
SALA
***************************************
What query should be used in order to display the employees lastname concatenated
to salary. Format the salary column to 6 character long left padded with �*� as
special character for all employees whose manager_id is null or salary between 4000
and 6000 Rename the column as employees and their Salaries
X- SELECT (FIRSTNAME||RPAD(SALARY,6,'*')) AS "EMPLOYEES AND THEIR SALARIES"
FROM EMPLOYEES
NO. OF MANAGER_ID
---------------------------- 8
X- SELECT COUNT(MANAGER_ID) AS "NO. OF MANAGER_ID" FROM 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.
X - SELECT LASTNAME, LPAD(SALARY,15,'$') AS SALARY
FROM EMPLOYEES
-SELECT last_name,
LPAD(salary, 15, '$') SALARY
FROM 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�.
X- SELECT FIRSTNAME AS PANGALAN
FROM EMPLOYEES
What query should be used in order todisplay the firstname and length of firstname
rename the column length of firstname as Number of Character of all employees whose
salary is between 4400 and 8300
X- SELECT FIRSTNAME, LENGTH(FIRSTNAME) AS "NUMBER OF CHARACTER"
FROM EMPLOYEES
WHERE SALARY BETWEEN 8300 AND 4400;
FROM 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.
X- SELECT TRIM('A' FROM LASTNAME)
FROM EMPLOYEES
IT_PROG------------------- 3
AC_MGR------------------- 1
AC_ACCOUNT------------ 1
ST_MAN-------------------- 1
AD_ASST------------------- 1
AD_VP----------------------- 2
SA_MAN-------------------- 1
GROUP BY JOB_ID;
What query should be used in order to display the employees lastname concatenated
with firstname and with a �, (comma)� in between. A rename on the concatenated
column as Complete Name. Note all values in Complete Name column should be in
lowercase plus display the length of employees lastname for all employees whose
lastname starts with letter M sort the lastname in its default order.
X- SELECT LOWER(LASTNAME||','||FIRSTNAME) AS COMPLETE NAME,
LENGTH(LASTNAME)
FROM EMPLOYEES
FROM EMPLOYEES
AND SALARY=17000;
X- NENA 17000 18600$$$
LEX 17000 18600$$$
FROM EMPLOYEES
FROM EMPLOYEES
WHERE DEPARTMENT_ID = 50
GROUP BY JOB_ID;