Jump to content

SQL


webindiasolutions

Recommended Posts

Suppose there is annual salary information provided by emp table. How to fetch monthly salary of each and every employee?

Edited by webindiasolutions
Link to comment
Share on other sites

That depends on the structure of the table.

 

I guess you could divide the annual salary by 12, assuming there's a field named "salary": SELECT (salary / 12) AS monthly_salary FROM emp

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...