|
-
Feb 15th, 2012, 03:35 PM
#1
Thread Starter
Frenzied Member
[RESOLVED] Help translate SQL to LINQ
Hi! any one can help me translate this SQL to LINQ to SQL?
Especially with the CASE WHEN statement.
DECLARE @Language INT
SET @Language = 1
SELECT
tblSites.ID,
tblSites.Code + ' ' + tblSites.NoCivic + ', ' + CASE WHEN @Language = 1 THEN DV.DescrFr ELSE DV.DescrEn END AS Street
FROM
tblSites
LEFT JOIN tblDomval AS DV ON tblSites.pProvinceID = DV.ID
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|