Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

how to retrieve daily sal from emp table in oracle 10g

Answer Posted / shailesh

I think what Anuradha has suggested is fine but it may not
produce accurate results. I think following query should
return reliable results based on number of days present in
month.

select trunc(salary/ to_number(extract (day from last_day
(sysdate))),2) as daily_sal,salary from employees

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to use values from other tables in update statements using oracle?

1087


How to view the tablespaces in the current database?

986


Which is better Oracle or MS SQL? Why?

6402


Can the query output be sorted by multiple columns in oracle?

999


Is oracle a relational database?

924


How to shutdown your 10g xe server?

1155


What is BBED in Oracle?

1165


Which dictionary tables and/or views would you look at to diagnose a locking issue?

1915


Explain mutating triggers.

1034


what is insert all statement in sql

6534


Database is hung. Old and new user connections alike hang on impact. What do you do? Your SYS SQLPLUS session IS able to connect.

2165


How to use "in out" parameter properly?

1055


What is the oracle implicit cursor?

1068


How to increment dates by 1 in oracle?

1101


What are the general rules on data consistency?

1015