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
How to use values from other tables in update statements using oracle?
How to view the tablespaces in the current database?
Which is better Oracle or MS SQL? Why?
Can the query output be sorted by multiple columns in oracle?
Is oracle a relational database?
How to shutdown your 10g xe server?
What is BBED in Oracle?
Which dictionary tables and/or views would you look at to diagnose a locking issue?
Explain mutating triggers.
what is insert all statement in sql
Database is hung. Old and new user connections alike hang on impact. What do you do? Your SYS SQLPLUS session IS able to connect.
How to use "in out" parameter properly?
What is the oracle implicit cursor?
How to increment dates by 1 in oracle?
What are the general rules on data consistency?