http://xavier.bouedo.free.fr/texte.gif
in the first table, it's the result that I would like to have and in the second is the result I have
If u want to see my draft
http://xavier.bouedo.free.fr/table.gif
thank for ur help
XavierXavier,
I don't know what language you use to display your data, but in C#.Net or VB.Net I would create a dataset with two tables; one with Name (the parent)(Select distinct; if needed) and the other table with the Message (the children). Then create a relationship between the two tables in your code and use nested repeaters to display the data.
I can't really think of another way.
Does anybody have more experience with SQL to have a more elegant solution?
Does this help Xavier?
KJ.|||thanks for ur solution, I use sql server 2000.|||OK. That was a very high level discussion. Let me know if you want a few code examples. I use nested repeaters, datalists or datagrids. It all depends on the circumstances.
You basically have a typical master-detail scenario. You have to manipulate the data on the .Net side to display it the way you want. SQL server can't really do it for you. (I think!)
I use C# and SQL Server 2000.
No comments:
Post a Comment