Hi!
Is it possible to translate this sql-statement to a CreateCriteria
and second does NHibernate deals with ORDER BY COALESCE
?
SELECT obs1.OBSLOPNR, obs1.LOKALLOPNR, obs2.OBSLOPNR, obs2.LOKALLOPNR
FROM
(SELECT * FROM OBS WHERE OBS.LOKALLOPNR = 9) AS obs1
FULL OUTER JOIN
(SELECT * FROM OBS WHERE OBS.LOKALLOPNR = 8) AS obs2
ON obs1.ARTLOPNR = obs2.ARTLOPNR
ORDER BY COALESCE(obs1.OBSLOPNR, obs2.OBSLOPNR)