User-893317190 posted
Hi JagjitSingh,
Yes , we could use inner join in ado.net.
When we want to retrieve data from two related tables , we usually consider inner join.
Do you have two tables?Or you only have one table?
If you only have one table we usually don't consider inner join unless you want to self join.(refer to
https://www.w3resource.com/sql/joins/perform-a-self-join.php)
Below is a sample using inner join.
select * from categories c inner join products p on c.CategoryID=p.CategoryID where p.CategoryID=@categoryId
For more information about inner join, you could refer to https://www.w3resource.com/sql/joins/perform-an-inner-join.php
Best regards,
Ackerly Xu