Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 show multiple rows per row as required

Author  Topic 

emceemic
Starting Member

1 Post

Posted - 2010-05-06 : 10:44:33
Hello guys,

Question about sql select... Is there a way to show multiple rows per row if required??
For example, say the table I currently have show the following data:

Impact to Business, Business Owner Name, Breakdown
1)Application, John Doe, Application
2)Hardware, Joe Smith , Hardware
3)Multiple , John Doe , 1:Hardware 2: Application

This is how the data is stored in the datatable itself.
Is there a way I can separate the 'Multiple' one to show individual info in different rows? ideally, the table I need is:

Impact to Business , Business Owner Name , Breakdown
1)Application , John Doe , Application
2)Hardware , Joe Smith , Hardware
3)Multiple , John Doe , 1:Hardware, 2: Application
4)Hardware , John Doe , Hardware
5)Application , John Doe , Application

I am using Crystal Reports to fetch data from database, so I cannot create a dummy table that would do the job.. is there a way of doing this using SELECTs???

Thanks!
Michael


Process Analyst
programmer

X002548
Not Just a Number

15586 Posts

Posted - 2010-05-06 : 12:49:08
Can you post the DDL of the table?

Brett

8-)

Hint: Want your questions answered fast? Follow the direction in this link
http://weblogs.sqlteam.com/brettk/archive/2005/05/25/5276.aspx

Add yourself!
http://www.frappr.com/sqlteam



Go to Top of Page
   

- Advertisement -