Click here to Skip to main content
15,885,767 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
hello


sir want to write the following query in linq but i'm having problem with linq,
so i need help

SQL
select service_name, Category,OnHand, COUNT(status) as Pending,OnHand - COUNT(status) as Inventory
from ViewForInventory
where business_id=26 and [Type]=1
group by service_name, Category,OnHand order by service_name asc


i need the same query for linq

thank you
Posted
Updated 20-Jan-12 0:19am
v3

1 solution

 
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