Write query to display first name and last name as full name

Assignment Help Database Management System
Reference no: EM13850701

PART 1

1. Display first name ,last name and salary from s_emp where salary should display in the format $99,999;

2. Write query to display first name and last name as full name, salary *12+ commission_pct *salary as Total Salary from s_emp.If commission_pct *salary is null then consider it as zero use nvl function;

3. select to_char(sysdate,'YYYY') C1,to_char(sysdate,'YEAR') C2,to_char(sysdate,'MM') C3,to_char(sysdate,'DY') C4,to_char(sysdate,'DAY') C5 from dual;

4. write query to display employee name ,job, salary and revised salary from s_emp
If job is ANALYST then revised salary = salary*1.03
If job is MANAGER then revised salary = salary*1.1
If job is PRESIDENT then revised salary = salary*1.01
Else display revised salary = salary
(Use decode function)

5. display first name , last name as full name ,title , salary and revised salary from scott.s_emp table
If title is 'Sales Representative' then make revised salary = salary*1.03
If 'VP, Administration' then make revised salary = salary*1.02
If 'Warehouse Manager' then make revised salary = salary*1.1
If 'Stock Clerk' then make revised salary = salary*1.01
Else display revised salary = salary*1.05
(Use case function)

6. Display word "gOwoLFpack" in 3 ways by using Initcap , upper and lower functions;

7. select substr('ABCDEFG',0) S1,substr('ABCDEFG',1) S2,substr('ABCDEFG',4) S3,substr('ABCDEFG',4,3) S4,substr('ABCDEFG',-5) S5,substr('ABCDEFG',-5,4) S6,substr('ABCDEFG',-5,10) S7,substr('ABCDEFG',-5,-1) S8 from dual;

8. Display salary and if salary is null display commission and if both are null display 0 using coalesce function from s_emp ;

PART 2


1. Display Firstname , Lastname together with Alias as Fullname from student table.

2. Display employee name , commission and salary+10*commission as Total from scott.emp

3. Select unique deptno with job from scott.emp.

4. Select all the columns from scott.emp where sal is greater than equal to 1500

5. select only employee name from scott.emp whose employee number is less than 7782;

6. Select employee name from scott.emp where employee number is not equal to 7782;
7. Select employee name from scott.emp whose hiredate is 17th dec 1980.

8.select ename,sal,comm from scott.emp where 1=2;

9. select ename,sal,comm from scott.emp where 2=2;

10. select employee name , salary , commission from scott.emp where employee number is greater than 0

11. select ename,sal,comm from scott.emp where comm=comm;

12. Select employee name , salary and commission from scott.emp whose salary is less than equal to commission

13. By using IN operator in the where condition , display employee name , salary and job from scott.emp where jobs are in 'CLERK','SALESMAN','ANALYST'

14. By using between in where condition display employee name , salary from scott.emp where salary is between 1000 and 1500

15. Display employeenumber , employee name from scott.emp where employee name starts with letter M
16. Display employee name , salary , job from scott.emp where job is SALESMAN or PRESIDENT and salary is greater than 1500

 

 


Attachment:- New WinRAR archive.rar

Reference no: EM13850701

Questions Cloud

The carrier frequency : The output voltage of an AM transmitter is given by 500(1+.4sin3140t)sin6.28x107t. This voltage is fed to a load of 800 ohms. Determine the following. The carrier frequency The modulating frequency
What do you think googles rationale was for starting books : What do you think Google's rationale was for starting its Google Books library Project? Of all the issues discussed in this case, which issue is the most disconcerting to you. Why?
Identify the strengths and weakness of the nist programs : Compare the ISO/IEC 27001 outline with the NIST documents discussed in this chapter. Which areas, if any, are missing from the NIST documents? Identify the strengths and weakness of the NIST programs compared to the ISO standard.
Identify at least one shift of the supply curve : Explain why you have categorized these selected principles or concepts as microeconomics or macroeconomics. Identify at least one shift of the supply curve and one shift of the demand curve in the video.
Write query to display first name and last name as full name : Write query to display first name and last name as full name
List the current product lines for your chosen company : List the current product lines for your chosen company. Think of at least one idea each for new products that the company could add to its product offerings
Explain why it is important to deliver a comprehensive scope : Explain why it is important to deliver a comprehensive scope statement at the beginning of the project. Are there any instances where the scope statement can or should be omitted
Discusses the issues that may arise in a corporation : You are to write an essay (min 500 words) that discusses the issues that may arise in a corporation as it strives to be more entrepreneurial, and as it conducts business in general
What circumstances wold actual government spending : Why does the budget require a forecast of the economy. Under what circumstances wold actual government spending and tax revenue fail to match the budget as approved

Reviews

Write a Review

Database Management System Questions & Answers

  Implement a new learning management system

Its a lead a project that will implement a new learning management system for your university. You have two key tasks: Task 1: Investigate learning management software packages that are available through application service providers.

  Display all data from each of the tables in the moremovies

Within SQL*Plus, list names of the tables that you have created whose name starts with MM (Hint: use data dictionary view USER_TABLES)

  Create a database to control its local libraries

A county wishes to create a database to control its local libraries. Each library has a number of employees, one of whom is designated as the manager of the library and is responsible for supervising employees and the general day-to-day management..

  Design relation schemas for the entire database

Design relation schemas for the entire database.

  Explain and support the database schema

Explain and support the database schema with relevant arguments that support the rationale for the structure

  Database distribution strategy

Database Distribution Strategy. For this assignment, you will design and develop a distributed database infrastructure for an organization of your choice. You may use the database you created in another unit or you may choose to create a new datab..

  Sketch object-oriented model for private airport database

Sketch an object-oriented model for a small private airport database that is used to keep track of airplanes, their owners, airport employees, and pilots.

  Benefits of using databases and dbmss

Assignment: Research organizational benefits of using databases and DBMS's. Supplement your research with a review of your lessons. Post a response to the discussion board: Respond to the following statements and, if appropriate, include personal e..

  Show the rea diagram using microsoft word

Show the REA diagram using Microsoft Word

  Display customer id from the order table

write a query to display customer id from the order table associated with order id in given database.

  A uml class diagram to describe the ordering system class

a UML class diagram to describe the ordering system class

  Implement a cluster using physical hardware

Implement a cluster using physical hardware, the process is very straightforward.But what if you want to implement a cluster using virtualization?

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