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

 All Forums
 Other Forums
 Other Topics
 A Tough Task

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2005-12-20 : 07:59:05
Alok Saxena writes "I have two table
1) Broroate
2) OS
In Brorate following fields
i) BranchCode
ii) EMPCode
iii) ReportingMonth
iv) Reportingto (This is EMployee COde)

Brorate table have each employee code with report to which employee on which month.

In OS Table Have
i) BranchCode
ii) EMPCode
iii) OSMonth
iv) OSAmount

OS table keeps each employee code outstanding amount of each month.

I want a result Like:
Each employee sum of outstanding amount of each month of outstanding include those total amount of each employee who come underemployee belt.

Kindly do it only using SQL , I donot want to used any Store Procddure."

robvolk
Most Valuable Yak

15732 Posts

Posted - 2005-12-20 : 07:59:41
Is it me, or are homework questions becoming more and more senseless lately?
Go to Top of Page

spirit1
Cybernetic Yak Master

11752 Posts

Posted - 2005-12-20 : 08:13:16
it's you... get off the beer

Go with the flow & have fun! Else fight the flow
Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2005-12-20 : 08:55:13
Learn SQL

Start with these
http://www.sql-tutorial.net/
http://www.firstsql.com/tutor.htm
http://www.w3schools.com/sql/default.asp


Madhivanan

Failing to plan is Planning to fail
Go to Top of Page
   

- Advertisement -