TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Anitha
NA
3
2.4k
SQL to LINQ
Dec 10 2012 6:51 AM
How to write this sql query in Linq below
SELECT distinct Fom_Dato As OpenDate FROM
(SELECT Selskapskode, Periode_Selskap,Foringsvaluta, Konsol_Valuta,
CASE
WHEN Regnaar3_Kode IS NOT NULL THEN (
SELECT MIN(Periode) FROM PERIODE WHERE Periode_Sel = Periode_Selskap AND Periode > Regnaar3_Slutt)
WHEN Regnaar2_Kode IS NOT NULL THEN Regnaar3_Start
WHEN Regnaar1_Kode IS NOT NULL THEN Regnaar2_Start
WHEN Regnaar0_Kode IS NOT NULL THEN Regnaar1_Start
ELSE
Regnaar0_Start END As StartPeriod
FROM Selskap) VT, Periode
WHERE Periode_Sel = Periode_Selskap AND StartPeriod = Periode and selskapskode in ('ACHE','DAM')
Rgds,
Anitha
Reply
Answers (
3
)
How to create insert, update, delete operation through LINQ
How to dynamically cast a Table to a List