dbTalk Databases Forums  

Help SQL

comp.databases.ibm-db2 comp.databases.ibm-db2


Discuss Help SQL in the comp.databases.ibm-db2 forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
eliane
 
Posts: n/a

Default Help SQL - 03-03-2010 , 04:27 PM






Hello All,

I have a query that returns the following results. We get multiple
rows back, with all the same info except for the Function.

ID NAME FUNCTION
001 Greg Johnson Administration
001 Greg Johnson Senior IT Specialist
002 Todd Thompson IT Specialist
002 Todd Thompson Project Manager


What shoudl I do to get the following result? Need to get Function
results for each contact within a single row, and separete them with
comma.

ID NAME FUNCTION
001 Greg Johnson Administration, Senior IT Specialist
002 Todd Thompson IT Specialist, Project Manager

Please, can anyone help?
Thanks!

Reply With Quote
  #2  
Old   
Tonkuma
 
Posts: n/a

Default Re: Help SQL - 03-03-2010 , 11:14 PM






Search this group with keyword "XMLGROUP".

Reply With Quote
  #3  
Old   
--CELKO--
 
Posts: n/a

Default Re: Help SQL - 03-05-2010 , 07:19 AM



Why do you wish to destroy First Normal Form (1NF) with a concatenated
list structure? Normal forms are the foundation of RDBMS, after
all.

Why are you formatting data in the back end? The basic principle of a
tiered architecture is that display is done in the front end and never
in the back end. This is a more basic programming principle than just
SQL and RDBMS.

Get a reporting tool so you can do a sort for your lists and lay them
out on paper or a screen in a way that a human being can read them.

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.