Click here to Skip to main content
15,894,460 members
Home / Discussions / Database
   

Database

 
GeneralRe: Getting Top 5 from table of same category Pin
ChandraRam17-Apr-08 1:33
ChandraRam17-Apr-08 1:33 
QuestionSql Query Pin
~V~16-Apr-08 1:44
~V~16-Apr-08 1:44 
GeneralRe: Sql Query Pin
Ashfield16-Apr-08 4:43
Ashfield16-Apr-08 4:43 
QuestionFetch DB2 table data into MS-Excel Pin
Jay_se15-Apr-08 22:57
Jay_se15-Apr-08 22:57 
GeneralRe: Fetch DB2 table data into MS-Excel Pin
ChandraRam16-Apr-08 1:27
ChandraRam16-Apr-08 1:27 
GeneralRe: Fetch DB2 table data into MS-Excel Pin
Jay_se16-Apr-08 19:49
Jay_se16-Apr-08 19:49 
QuestionRegarding sum of a column Pin
mrcsn15-Apr-08 21:41
mrcsn15-Apr-08 21:41 
AnswerRe: Regarding sum of a column Pin
Mycroft Holmes15-Apr-08 22:21
professionalMycroft Holmes15-Apr-08 22:21 
I feel I have the wrong handle on your problem but...

If you want the additional of col1 + col2 then it is the same method as the multiply
If you are after the sum of all the records preceding the current record then you need to look into running totals (depends on your DB)

if you want the sum of the 2 cols included in the result set you need to do the query 2 times, 1 to get the total into a var and the seconed to include it in your result set

You really need to define your problem a little clearer. Remember we have not gone through the process of getting where you are stuck and do not have the code in front of us.


Never underestimate the power of human stupidity
RAH

GeneralRe: Regarding sum of a column Pin
mrcsn21-Apr-08 19:56
mrcsn21-Apr-08 19:56 
GeneralRe: Regarding sum of a column Pin
Pete O'Hanlon15-Apr-08 23:24
mvePete O'Hanlon15-Apr-08 23:24 
GeneralRe: Regarding sum of a column Pin
ChandraRam16-Apr-08 1:23
ChandraRam16-Apr-08 1:23 
QuestionRe: Regarding sum of a column Pin
mrcsn17-Apr-08 2:51
mrcsn17-Apr-08 2:51 
QuestionRe: Regarding sum of a column Pin
mrcsn21-Apr-08 20:00
mrcsn21-Apr-08 20:00 
GeneralRe: Regarding sum of a column Pin
ChandraRam21-Apr-08 20:10
ChandraRam21-Apr-08 20:10 
GeneralRe: Regarding sum of a column Pin
mrcsn21-Apr-08 20:27
mrcsn21-Apr-08 20:27 
GeneralRe: Regarding sum of a column Pin
ChandraRam21-Apr-08 20:53
ChandraRam21-Apr-08 20:53 
Questionsqldmo backup issue (Cannot open backup device) Pin
JoZ CaVaLLo15-Apr-08 21:36
JoZ CaVaLLo15-Apr-08 21:36 
GeneralRe: sqldmo backup issue (Cannot open backup device) Pin
SimulationofSai16-Apr-08 1:24
SimulationofSai16-Apr-08 1:24 
GeneralConnection of MS-Access 2007 to VC++2005 Pin
Le@rner15-Apr-08 19:56
Le@rner15-Apr-08 19:56 
GeneralRe: Connection of MS-Access 2007 to VC++2005 Pin
ChandraRam16-Apr-08 1:12
ChandraRam16-Apr-08 1:12 
Questionhow can i write a trigger for backup of table and calling a web service in sql server 2005? Pin
elham.a15-Apr-08 19:10
elham.a15-Apr-08 19:10 
QuestionDetecting a broken connection in SQL-ADO Pin
Ben_Slater15-Apr-08 10:46
Ben_Slater15-Apr-08 10:46 
GeneralRe: Detecting a broken connection in SQL-ADO Pin
SimulationofSai16-Apr-08 1:29
SimulationofSai16-Apr-08 1:29 
QuestionRe: Detecting a broken connection in SQL-ADO Pin
Ben_Slater16-Apr-08 5:08
Ben_Slater16-Apr-08 5:08 
QuestionHow to access a table in sql2005 database from stored procedure in another database Pin
Shaimmaa15-Apr-08 8:31
Shaimmaa15-Apr-08 8:31 

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.