Click here to Skip to main content
15,899,314 members
Home / Discussions / Database
   

Database

 
GeneralRe: How to store symbols like sigma, integral etc in sql server 2000 Pin
Jesu Prabhu.J15-Sep-08 19:17
Jesu Prabhu.J15-Sep-08 19:17 
GeneralRe: How to store symbols like sigma, integral etc in sql server 2000 Pin
razov16-Sep-08 0:11
razov16-Sep-08 0:11 
GeneralRe: How to store symbols like sigma, integral etc in sql server 2000 [modified] Pin
Jesu Prabhu.J16-Sep-08 0:19
Jesu Prabhu.J16-Sep-08 0:19 
QuestionIndentity Problem Pin
Syed Shahid Hussain14-Sep-08 20:44
Syed Shahid Hussain14-Sep-08 20:44 
AnswerRe: Indentity Problem Pin
Ashfield14-Sep-08 20:56
Ashfield14-Sep-08 20:56 
AnswerRe: Indentity Problem Pin
Blue_Boy14-Sep-08 22:00
Blue_Boy14-Sep-08 22:00 
GeneralRe: Indentity Problem Pin
Syed Shahid Hussain14-Sep-08 22:55
Syed Shahid Hussain14-Sep-08 22:55 
GeneralRe: Indentity Problem Pin
Blue_Boy14-Sep-08 23:27
Blue_Boy14-Sep-08 23:27 
GeneralRe: Indentity Problem Pin
Syed Shahid Hussain15-Sep-08 1:22
Syed Shahid Hussain15-Sep-08 1:22 
GeneralRe: Indentity Problem Pin
Blue_Boy15-Sep-08 1:24
Blue_Boy15-Sep-08 1:24 
JokeRe: Indentity Problem Pin
nelsonpaixao15-Sep-08 12:12
nelsonpaixao15-Sep-08 12:12 
QuestionDifference between Truncate and Delete Pin
r aa j14-Sep-08 19:57
r aa j14-Sep-08 19:57 
AnswerRe: Difference between Truncate and Delete Pin
Blue_Boy14-Sep-08 21:59
Blue_Boy14-Sep-08 21:59 
Questionedit view by adding squence number Pin
mahmoudinirat14-Sep-08 2:12
mahmoudinirat14-Sep-08 2:12 
AnswerRe: edit view by adding squence number Pin
Blue_Boy14-Sep-08 2:49
Blue_Boy14-Sep-08 2:49 
GeneralRe: edit view by adding squence number Pin
nelsonpaixao14-Sep-08 13:14
nelsonpaixao14-Sep-08 13:14 
AnswerRe: edit view by adding squence number Pin
Rocky#14-Sep-08 17:58
Rocky#14-Sep-08 17:58 
GeneralRe: edit view by adding squence number Pin
Mycroft Holmes14-Sep-08 19:29
professionalMycroft Holmes14-Sep-08 19:29 
GeneralRe: edit view by adding squence number Pin
Rocky#14-Sep-08 19:33
Rocky#14-Sep-08 19:33 
AnswerRe: edit view by adding squence number Pin
RyanEK14-Sep-08 20:35
RyanEK14-Sep-08 20:35 
AnswerRe: edit view by adding squence number Pin
nelsonpaixao15-Sep-08 13:45
nelsonpaixao15-Sep-08 13:45 
QuestionAggregating function on strings in a group by [modified] Pin
swjam14-Sep-08 0:15
swjam14-Sep-08 0:15 
If I have a table:

TAB1

PKey   Col1StrName   Col2IntDebt   Col3StrItem
1      Michael       2.00          Toothpaste
2      Josh          3.00          Shampoo
3      Karen         1.00          Softdrink
4      Josh          2.50          Soap
5      Michael       5.75          Lollies
6      Michael       0.25          Pen
7      Karen         3.25          Milk


If I do a group by

I can aggregate the debts to:

Name       Debt   

Michael    8.00
Josh       5.50
Karen      4.25


With the following code:

select
  Col1StrName as Name, SUM(Col2IntDebt) as Debt
from
  TAB1 
group by
  Col1StrName




I would like to include a column such that:

Name       Debt     Items

Michael    8.00     Toothpaste, Lollies, Pen
Josh       5.50     Shampoo, Soap
Karen      4.25     Softdrink, Milk


What is the aggregate function to use for the string?

TIA!

----------------------------------------------------------
"unzip; strip; touch; finger; mount; fsck; more; yes; unmount; sleep" - my daily unix command list

modified on Sunday, September 14, 2008 8:56 PM

AnswerRe: Aggregating function on strings in a group by Pin
Mycroft Holmes14-Sep-08 19:31
professionalMycroft Holmes14-Sep-08 19:31 
QuestionHow to connect Mysql database wamp from C#? Pin
cutedrew13-Sep-08 21:04
cutedrew13-Sep-08 21:04 
AnswerRe: How to connect Mysql database wamp from C#? Pin
Mycroft Holmes14-Sep-08 19:33
professionalMycroft Holmes14-Sep-08 19:33 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.