August 25, 2017 at 9:27 am
Hi,
I have an interesting project. I need to show materials that make up parts then find materials that make up those materials that they are composed of if any. Not sure of what technique to get started with. Any ideas? Recursive? Some kind of looping? See the attachment of the result set I am looking for.
Thanks,
Calvin
August 25, 2017 at 10:17 am
calvin.clay - Friday, August 25, 2017 9:27 AMHi,
I have an interesting project. I need to show materials that make up parts then find materials that make up those materials that they are composed of if any. Not sure of what technique to get started with. Any ideas? Recursive? Some kind of looping? See the attachment of the result set I am looking for.Thanks,
Calvin
It depends on the data structure that you have. If you still don't have the structure, I suggest that you read the following articles:
http://www.sqlservercentral.com/articles/Hierarchy/94040/
http://www.sqlservercentral.com/articles/T-SQL/94570/
If you have a structure, just share it with us to give you any pointers.
August 25, 2017 at 10:43 am
This is known in the business world as BOM, or Bill Of Materials. That's another avenue you can investigate online, in addition to the excellent suggestions Luis has made.
Steve (aka sgmunson)
Rent Servers for Income (picks and shovels strategy)
August 25, 2017 at 5:33 pm
Thanks Luis and Steve! Luis, I got to try those links and Steve, I'll do a search on sql and BOM to see what's out there.
Calvin
Viewing 4 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply
This website stores cookies on your computer.
These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media.
To find out more about the cookies we use, see our Privacy Policy