I’m doing a project in the field of multilevel marketing on .Net and SQL server.
In the database it should save like a binary tree. How should i design a database?
I’m doing a project in the field of multilevel marketing on .Net and SQL
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
SQL Server 2008 has a built-in data-type called hierarchyid to store hierarchical information. Here are some pointers.
http://blogs.msdn.com/manisblog/archive/2007/08/17/sql-server-2008-hierarchyid.aspx
http://technet.microsoft.com/en-us/library/bb677290.aspx
And of course you can do this as mentioned by arsenmkrt in databases other than sqlserver2008.