I am trying to pull certain cases from a table, and am not sure how to do this.
Here is my query that I am running:
SELECT TOP (100) PERCENT dbo.VW_Triage.CaseID, dbrganTissueGroup.Category, dbrganTissueGroup.OrganTissue AS Expr1
FROM Tissue.RecoveryTissue AS TISSUE INNER JOIN
dbo.VW_Triage ON TISSUE.DonorTracCaseId = dbo.VW_Triage.DonorTracCaseID LEFT OUTER JOIN
dbrganTissueGroup ON TISSUE.TissueId = dbrganTissueGroup.ID
GROUP BY dbo.VW_Triage.CaseID, dbrganTissueGroup.Category, dbrganTissueGroup.OrganTissue
ORDER BY dbo.VW_Triage.CaseID
I am trying to return only those caseid's that have a certain value only in the OrganTissue field. Any help would be much appreciated.
Here is my query that I am running:
SELECT TOP (100) PERCENT dbo.VW_Triage.CaseID, dbrganTissueGroup.Category, dbrganTissueGroup.OrganTissue AS Expr1
FROM Tissue.RecoveryTissue AS TISSUE INNER JOIN
dbo.VW_Triage ON TISSUE.DonorTracCaseId = dbo.VW_Triage.DonorTracCaseID LEFT OUTER JOIN
dbrganTissueGroup ON TISSUE.TissueId = dbrganTissueGroup.ID
GROUP BY dbo.VW_Triage.CaseID, dbrganTissueGroup.Category, dbrganTissueGroup.OrganTissue
ORDER BY dbo.VW_Triage.CaseID
I am trying to return only those caseid's that have a certain value only in the OrganTissue field. Any help would be much appreciated.