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 write numeric literals in oracle?
What is a sub query? Describe its types?
In Oracle Clinical 4.5.0, can the VIEW_TEMPLATE_ID column in DATA_EXTRACT_VIEWS table contain NULL value?
What is a database schema in oracle?
src name sex a,male b,female c,male d,female Required output : male female a,b c,d tried pivot but was not successfull select * from src pivot (max(name) for sex in ('MALE','FEMALE'));
How to load data through external tables?
What are ddl statements in oracle?
How to start instance with a minimal initialization parameter file?
What is meant by joins? List out the types of joins.
How will you identify oracle database software release?
what is IDE,DMV in sql server?
How to get the Installed Oracle Version Information ?
What are the data types in oracle?
Database crashes. Corruption is found scattered among the file system neither of your doing nor of Oracles. What database recovery options are available? Database is in archive log mode.
What are the differences between lov and list item?