I'm very new to LINQ, but thought I would give it a try. I am re building a health care program and have hit a block trying to display employees and there dependents money limits.
The query in SQL is something like this:
SELECT e.employee, l.LIMIT, NVL (d.dependant, 0) dependant, l.limit_name, d.dependant_name, d.title , d.first_name , d.middle_name , d.last_name,DECODE (SUM (e.balance), NULL, 'N', 'Y') has_cash, DECODE (SUM (e.CHANGE), NULL, 'N', 'Y') has_cash_change, DECODE (SUM (e.balance_item), NULL, 'N', 'Y') has_item FROM PHSP.employee_limit e, PHSP.lt_limit l, PHSP.dependant d WHERE e.employee = :employee AND l.LIMIT = e.LIMIT AND e.dependant = d.dependant(+) GROUP BY e.employee, l.LIMIT, d.dependant, l.limit_name, d.dependant_name, d.title, d.first_name, d.middle_name, d.last_name
ORDER BY l.limit_name
I just don't know where to start with the joins, along with grouping and ordering by multiple columns in LINQ. Any advise would be much appreciated.
Thank you.