User240584894 posted
Hi, I need some help...
when I use 'distinct' and 'take' with entity framework pointing to oracle db using dot connect, the query being generated is bad.
it does the take 10 first followed by distinct which results in data loss....
any work around for these ?'
the entity framework query is - query.Select(select).Distinct().Take(100).ToList()
SELECT
"Limit1".NM AS name
FROM ( SELECT DISTINCT
"Extent2".NM AS name
FROM item "Extent1"
LEFT OUTER JOIN category "Extent2" ON "Extent1".ID = "Extent2".ID
WHERE ("Extent1".ID = 8070) AND ROWNUM <= 100
) "Limit1"