Click here to Skip to main content
15,885,278 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi I Am Using SQL And ASp.Net my problem is that i have Items Table
Item_ID BigInt
item_name nv
Parent_id BigInt
is_product Bit
is_material Bit
for_sale Bit
the item May Be a Product Or material
i Need To relate the item With Its material "Note that may be one material is Related To more Than One Product"
Posted
Comments
Mohamed Mitwalli 10-Mar-13 6:24am    
Why u are not make separated Table Contains
ID Name
1 material
2 product
and make relation with your table , using inner join you will get what you want .
Maciej Los 10-Mar-13 8:01am    
Not clear. Please be more specific and provide more details. Read Mohamed's comment.

1 solution

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