Click here to Skip to main content
15,887,477 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Query 1 :

select top 2 * from customerReviews
Query 2 :

select top 10 * from customerReviews where reviewid not in (select top 2 reviewid from customerReviews)




This 2 Queries i want in Linq Concepts.

i write a query from single table.

please sent me....
Posted
Updated 8-Nov-11 22:38pm
v4
Comments
[no name] 9-Nov-11 0:19am    
This is a volunteer site and people will answer on their time, not yours. Asking asap response is rude. Even more so since you have not even attempted anything on your own
Muralikrishna8811 9-Nov-11 4:35am    
Hi,
you want to select 2-12 rows of your db right

1 solution

Hi,

I've some code for your requirement just check this once

C#
 IQueryable<customerreviews> f = ((from g in db.customerReviews
                         select g).Skip (2)).Take(10);
</customerreviews>


I hope this helps you

All the Best
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900