This document contains several SQL queries that select, concatenate, and order data from the EMP table. The queries select employee names, salaries, commissions, concatenate names with salaries to output sentences of employee incomes, and order results by name, salary, department number, and salary both ascending and descending to output ordered lists of employee data.
This document contains several SQL queries that select, concatenate, and order data from the EMP table. The queries select employee names, salaries, commissions, concatenate names with salaries to output sentences of employee incomes, and order results by name, salary, department number, and salary both ascending and descending to output ordered lists of employee data.
This document contains several SQL queries that select, concatenate, and order data from the EMP table. The queries select employee names, salaries, commissions, concatenate names with salaries to output sentences of employee incomes, and order results by name, salary, department number, and salary both ascending and descending to output ordered lists of employee data.
SELECT ENAME "EMPLOYEE NAME", SAL SALARY, COMM COMMISSION
FROM EMP;
SELECT 'hello my name is ' || ename as "concatenated value"
FROM EMP WHERE job = 'MANAGER'
-- Create Query that looks like:
-- King makes $5000 per month -- Blake makes $2850 per month -- Clark makes $2450 per month SELECT ename || ' makes $' || sal || ' per month' as "employee income" FROM EMP