You are here: Re: SQL Challenge Urgent, Please help « MsSQL Server « IT news, forums, messages
Re: SQL Challenge Urgent, Please help

Posted by Kart on 08/09/06 09:47

Look at "Expanding Hierarchies" in SQL Server 2000 BOL. I think that
should help

Dip wrote:
> Hello Expert,
> Here I am asking your help.
> I have a table with following data:
> TaskID ParentTaskID TaskName ProjectName
> 1 1 BA Rail
> 2 22 FA Financial
> 3 1 BA.1 Rail
> 4 1 BA.2 Rail
> 5 22 FA.1 Financial
> 6 22 FA.2 Financial
>
> Now I want the following format:
>
> ID ParentID Name
> 1 1 Rail
> 2 1 BA
> 3 2 BA.1
> 4 2 BA.2
> 5 22 Financial
> 6 5 FA.1
> 7 5 FA.2
>
> I need to create following hierarchy if I could tranform the data the
> above way in the Project Dimension:
> Rail
> --BA
> ----BA.1
> ----BA.2
> Financial
> --FA
> ----FA.1
> ----FA.2
> Please help and thanks in advance,
> Soumya

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация