-
Help with LINQ Query
I am trying to do a subquery and union to fetch some records. Below is my sql. How can I write the same in LINQ.
select * from tblID Where id = 1 and Desc not in(select desc from tblID where status like 'Detail')
union
select distinct * from tblID where id = 1 and status like 'Detail'
My goal:
id desc status
1 A Detail
2 A Detail1
I want to fetch record with detail1 while executing. Please help!
Similar Threads
-
Replies: 3
Last Post: 07-18-2011, 03:50 PM
-
By rrjii2000 in forum .NET
Replies: 9
Last Post: 03-18-2011, 10:37 AM
-
Replies: 2
Last Post: 04-27-2009, 01:20 PM
-
By pueblonative in forum .NET
Replies: 11
Last Post: 01-06-2009, 09:13 AM
-
By joewmaki in forum .NET
Replies: 9
Last Post: 01-15-2008, 11:07 AM
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
|
Development Centers
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center
|