I have a table as
EmployeeID IndividualPay FamilyPay IsActive
1 200 300 true
1 100 150 false
Select
EmployeeID,
Active.IndividualPay As IndPay_IsActive,
Active.FamilyPay As FamilyPay_IsActive,
Inactive.IndividualPay As IndPay_IsNotActive,
Inactive.FamilyPay As FamilyPay_IsNotActive
From
PayTable Active
Join PayTable Inactive On Active.EmployeeID = Inactive.EmployeeId
And Inactive.IsActive = 'false'
Where
Active.IsActive = 'true'