Write a sql query that will give the employee number

Assignment Help Computer Engineering
Reference no: EM131985137

Problem

Log on to ApEx and go to the Object Browser under the SQL Workshop menu. Look for the DEMO_PRODUCT_INFO table. Write down all of the column names for the table.

1. Navigate to the SQL command window and create a SQL query that will give the product ID, product description and product list price from the DEMO_PRODUCT_INFO table. Use the TO_CHAR function with the dollar/currency format to display the price in American dollars and cents.

In your submission include the SQL code and a screen shot of the result set.

2. Modify the previous SQL query so that it displays the date three months from now. To make this query as flexible as possible use SYSDATE with the LAST_DAY() function to get the last day of this month ('7-FEB-2017' in this particular case), along with the ADD_MONTHS() function to display the date three months from now. The purpose of this SELECT statement is to show how long the given price of the product will be in effect, so add a column alias to the date column saying "Price good until."

In your submission include the SQL code and a screen shot of the result set.

3. Write a SQL query that will give the employee number, employee name and hired date from the EMP table. Use the TO_CHAR function along with the format mask ‘DDMMYYY' to display the hired date.

In your submission include the SQL code and a screen shot of the result set.

4. Write a query that will select the ORDER_ID, CUSTOMER_ID and ORDER_TIMESTAMP columns from the demo_orders table. Use the to_char() function to display the date data from the ORDER_TIMESTAMP column in a format that has the day as two numbers, the month as the first three characters of the name of the month, the full year as numbers, the hour and the minute.

Reference no: EM131985137

Questions Cloud

Address this issue without divulging confidential : How will you, as a teacher, address this issue without divulging confidential information?
Why the value of the currencies in which carry trading : Explain why one can compare carry trade with picking up pennies in front of a steamroller. Use in your explanation the concept of interest-parity condition.
Unwanted behavior and increase desired behaviors : How can you provide positive behavior supports to prevent unwanted behavior and increase desired behaviors in school settings?
Describe limitations of activity-based costing and factors : BB210 Introductory Management Accounting Assignment. Describe the limitations of activity-based costing and factors that may impede the introduction of ABC
Write a sql query that will give the employee number : Write a SQL query that will give the employee number, employee name and hired date from the EMP table.
Planning advocacy for community social change : Why is it important to understand census data when planning advocacy for community social change? Please explain.
What single amount is equivalent to a series of equal : What single amount (to the closest dollar) on July 1, 2008 is equivalent to a series of equal, semi-annual cash flows of $1,200, starting with a cash flow.
Factors influencing impression formation and attraction : Kindly assist in reviewing the factors influencing impression formation and attraction with a dual list of behaviors
What is the flow process in the customer every hour : What is the flow process in the customer every hour? Assuming unlimited demand, what is the new flow rate if the center adds the server to bottleneck resource?

Reviews

Write a Review

Computer Engineering Questions & Answers

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd