I have these four tables:
tblProducts
: ProductId, Name, Price, CategoryIdtblCategories
: CategoryId, NametblOrders
: OrderId, Date, TotaltblOrderDetails
: OrderDetailsId, OrderId, ProductId, Qty, Price
I want to create a procedure OrderDetails_SelectByOrderId
.
I want return type to be complex type in my app and I want these columns :
ProductId | Qty | Price | CategoryNAME |
I tried everything and cannot get category name in result.