Please start any new threads on our new site at http://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2008 Forums
 Other SQL Server 2008 Topics
 Need help with SQL query calculation?
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

tuansaker3291
Starting Member

Vietnam
1 Posts

Posted - 04/23/2013 :  09:27:44  Show Profile  Reply with Quote
http://s367.photobucket.com/user/tuansaker3291/media/Capture-2_zps6ab4100b.jpg.html]" target="_blank">Databases have this form, sir: br / [url=http://s367.photobucket.com/user/tuansaker3291/media/Capture-2_zps6ab4100b.jpg.html]

1 I have a database like this, the employee's pay is calculated as follows
(luongcoban port number *) * + khenthuong heso - kyluat - tamung
The problem is that the code queries the employees, month and year, let's assume it is manhanvien @ variable, @ @ stairs and turn men away
The next problem is with tiencong table, chamcong, tamung the day, month, and employee code only appears one time simultaneously, but separately, the reward and discipline to be able to reward disciplined several times in 1 month should be to get the total amount of reward and discipline by month and year to be able to enter into payroll formula on the other.

So do not know, this recipe is mixing what type of SQL statement: D
Payrolls it this

[url=http://s367.photobucket.com/user/tuansaker3291/media/Capture-2_zps2969a4d1.jpg.html]https://docs.google.com/file/d/0B3PQlpIptb1HU0R0c2RfMVhMR2c/edit?usp=sharing

sorry for my english is not good!

sdfsdf
  Previous Topic Topic Next Topic  
 Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.04 seconds. Powered By: Snitz Forums 2000