0
次のことを達成するために流暢なクエリーを作成しようとしています。 SQLクエリは次のように見ることができます:NHibernateクエリーを使用して、いくつかの等しい列を持ち、あるテーブルで異なるものを見つける
select * from [Service] t1
where exists (
select
*
from [Service] t2
where
t1.StudentId = t2.StudentId and
t1.ServiceDate = t2.ServiceDate and
t1.ProcedureCodeId <> t2.ProcedureCodeId)