Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask DBMS Expert


Home >> DBMS

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

DBMS, Programming

  • Category:- DBMS
  • Reference No.:- M91420477
  • Price:- $30

Priced at Now at $30, Verified Solution

Have any Question?


Related Questions in DBMS

Q1 given the following file for assignment workercom

Q1. Given the following file for assignment worker.com, identify data anomalies that must be removed before data can be loaded in data warehouse. Worker_assignment ← -----------------on course web site File is available ...

Question we can sort a given set of n numbers by first

Question : We can sort a given set of n numbers by first building a binary search tree containing these numbers (using TREE-INSERT repeatedly to insert the numbers one by one) and then printing the numbers by an inorder ...

Sql injection on a searchthe way search performs its task

SQL injection on a search The way Search performs its task is by executing the following query (in a php script):          $var=stripslashes($_POST['search']);          $query = "SELECT username from lab1_login where use ...

This assignment is a continuation of this solution the case

This assignment is a continuation of this solution The case study company has received the first report from its enterprise content management (ECM) consultant and now has a documented list of major content requirements ...

Database design and development assignment -assessment task

Database Design and Development Assignment - Assessment task - 1. Normalization a) Map the ERD, from the sample solution, into a set of relations in at least Third Normal Form (3NF). You must ensure that your relations m ...

Sql query assignment -for this assignment you are to write

SQL Query Assignment - For this assignment you are to write your answers in a word document. This assignment is in three parts: Part A (reporting queries), Part B (query performance), Part C (query design). For this assi ...

Football association of zambia faz super leaguethe faz has

Football Association of Zambia (FAZ) Super League The FAZ has recently decided to reorganise their operations to support both existing and possibly expanded league operations in Zambia and part of preparation for the 201 ...

Query 1 the bookstore has decided to keep track of the

Query 1: The bookstore has decided to keep track of the vendors' information. In order to do this, one new table will be added to the database. The schema for this table, as related to the existing tables, is the followi ...

In sql developercreate a table userpermissions provide

IN SQL DEVELOPER Create a table UserPermissions (provide create and insert statements code) Document UserName Policy SYSTEM Menu JDOW W2 USAM Permissions SYSTEM W2 JDOW Form 1040 USAM Policy JDOW W2 SYSTEM Write a PL/SQL ...

Systems analysis project scenic routes operates a bus

Systems analysis project Scenic Routes operates a bus company that specializes in travelling on secondary roads, rather than Interstate highways. Their slogan is: "It Takes a Little Longer, But It's Scenic." The firm nee ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As