Question: 1. Create a SQL query in the SQL command window showing the empno, ename, job, sal, and hiredate from emp. Use the TO_CHAR function on

1. Create a SQL query in the SQL command window showing the empno, ename, job, sal, and hiredate from emp. Use the TO_CHAR function on the salary and column aliases where appropriate.

Copy and paste your SQL query along with a screenshot of your result set into your assignment.

2. Create a SQL query in the SQL command window showing the empno, ename, job, sal, and hiredate from the emp table. Use the hiredate column to get all of the employees hired between Jan 1, 1980 and Dec 31, 1981. Use the TO_CHAR function on the salary and column aliases where appropriate.

Copy and paste your SQL query along with a screenshot of your result set into your assignment.

3. Create a SQL query in the SQL command window showing the empno, ename, job, sal, and hiredate from the emp table where salary is between 1000 and 5000. Use the TO_CHAR function on the salary and column aliases where appropriate. Order by ename

Copy and paste your SQL query along with a screenshot of your result set into your assignment.

4. Use the DECODE function on the product information table. Show me the product_name, product_id, category ID, and weight class and list price. If list _price is 1 put Affordable on the report, if list price, is 2 put Medium priced on the report, if list_price is 3 put Expensive on the report, otherwise put Very Expensive on the report for all the other amounts. Select where list_price is greater than 0. Use positional sorting and order by list_price. Use the TO_CHAR function on the list_price.

Copy and paste your SQL query along with a screenshot of your result set into your assignment.

5. Use the CASE statement on the OEHR_ORDERS table. List the order_id, custormer_id, order_mode and order_status. If the order_mode is direct then put Send directly to the main office on the report, if order_mode = online put View online for report else put Other on the report. Order by order_mode and order_id.

Copy and paste your SQL query along with a screenshot of your result set into your assignment.

Submit your problem set 5 assignment to the Problem Set 5 Drop Box

please need an answer asap, thanks

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!