Hi All,
What Wrong with my QUERY ! it show Repetition of Record in INNER Join i.e when i have 3 record in database it show it 9 time using This query....
SELECT
dbo.EmployeeSetup.EmpID, dbo.EmployeeSetup.EmpName, dbo.EmployeeSetup.FatherName, dbo.EmployeePayment.Designation,
dbo.EmployeePayment.Department, dbo.EmployeePayment.Salary, dbo.EmployeePayment.Advance, dbo.EmployeePayment.Deduction,
dbo.EmployeePayment.OvertimeAmount, dbo.EmployeePayment.PaymentDate, dbo.EmployeePayment.ModeOfPayment,
dbo.EmployeePayment.NetPay, dbo.EmployeePayment.PayMonth, dbo.EmployeePayment.Fine, dbo.EmployeePayment.Fund,
dbo.EmployeePayment.Insurence, dbo.EmployeePayment.Tax, dbo.tblAllownce.MedicalAllownce, dbo.tblAllownce.DailyAllownce,
dbo.tblAllownce.TravellingAllownce, dbo.tblAllownce.OtherAllownce, dbo.EmployeeSetup.Salary AS BasicSalary,
dbo.EmployeeSetup.JoiningDate, dbo.EmployeePayment.PayDateFor
FROM
dbo.EmployeePayment
INNER JOIN
dbo.EmployeeSetup
ON dbo.EmployeeSetup.EmpID = dbo.EmployeePayment.EmpID
INNER JOIN
dbo.tblAllownce
ON dbo.EmployeeSetup.EmpID = dbo.tblAllownce.EmpID