Create a query based on the EMP table that satisfies the criteria below Use the TO_CHAR function to return the "commission" column with 2 digits to the right of the decimal point Use the TO_CHAR function to return the "commission" column with no digits to the right of the decimal point and no decimal point Use the CAST function to return the "commission" column as an integer with 7 digits Create a query based on the EMP table that satisfies the criteria below Use the TO_CHAR function to return the "hire date" column with its full date & time including a four-digit year on a 24-hour clock Use the TO_CHAR function to return the "hire date" column with its full date and time including a four-digit year on a 12-hour clock with an am/pm indicator Use the CAST function to return "hire date" as a VARCHAR2(10) A column called "End of Probation" calculated as "hire date" plus 90 days I have the basics of the queries. Just have an issue comnbining the statements.

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

Create a query based on the EMP table that satisfies the criteria below

Use the TO_CHAR function to return the "commission" column with 2 digits to the right of the decimal point

Use the TO_CHAR function to return the "commission" column with no digits to the right of the decimal point and no decimal point

Use the CAST function to return the "commission" column as an integer with 7 digits

Create a query based on the EMP table that satisfies the criteria below

Use the TO_CHAR function to return the "hire date" column with its full date & time including a four-digit year on a 24-hour clock

Use the TO_CHAR function to return the "hire date" column with its full date and time including a four-digit year on a 12-hour clock with an am/pm indicator

Use the CAST function to return "hire date" as a VARCHAR2(10)

A column called "End of Probation" calculated as "hire date" plus 90 days

I have the basics of the queries. Just have an issue comnbining the statements.

 

Expert Solution
Step 1

Solution:

 

When you install Oracle 11g Enterprise Edition there are couple databases you can chose from as Starter database. Below are the queries given from scott schema as your given table name EMP has match with that schema.

1.

select TO_CHAR(comm, '999.99') from scott.emp;

 

зее.ee 500.00 1400.00

steps

Step by step

Solved in 3 steps with 7 images

Blurred answer
Knowledge Booster
Table
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education