G
Guest
How would I do the following for a datagrid?
I want a Union Query to be my DataSet for a datagrid:
1) The Union Query
qBenefitsUnion
============
SELECT *
FROM qIN
UNION SELECT *
FROM qOUT
2) The Pieces that make up the Union
qIN
===
SELECT "Inpatient" AS Type, qMembershipSelect.[IN-BNFT] AS Benefit,
qMembershipSelect.[IN-BFCH] AS Charge, qMembershipSelect.MRN,
qMembershipSelect.GROUP, qMembershipSelect.SGR
FROM qMembershipSelect;
qOut
===
SELECT "Outpatient" AS Type, qMembershipSelect.[OUT-BNFT] AS Benefit,
qMembershipSelect.[OUT-BFCH] AS Charge, qMembershipSelect.MRN,
qMembershipSelect.GROUP, qMembershipSelect.SGR
FROM qMembershipSelect;
This would help me tremendously...Thanks.
I want a Union Query to be my DataSet for a datagrid:
1) The Union Query
qBenefitsUnion
============
SELECT *
FROM qIN
UNION SELECT *
FROM qOUT
2) The Pieces that make up the Union
qIN
===
SELECT "Inpatient" AS Type, qMembershipSelect.[IN-BNFT] AS Benefit,
qMembershipSelect.[IN-BFCH] AS Charge, qMembershipSelect.MRN,
qMembershipSelect.GROUP, qMembershipSelect.SGR
FROM qMembershipSelect;
qOut
===
SELECT "Outpatient" AS Type, qMembershipSelect.[OUT-BNFT] AS Benefit,
qMembershipSelect.[OUT-BFCH] AS Charge, qMembershipSelect.MRN,
qMembershipSelect.GROUP, qMembershipSelect.SGR
FROM qMembershipSelect;
This would help me tremendously...Thanks.