Click here to Skip to main content
15,886,872 members
Home / Discussions / Database
   

Database

 
GeneralRe: How to create database with user id and password Pin
MikeRT20-Feb-07 18:28
MikeRT20-Feb-07 18:28 
GeneralRe: How to create database with user id and password Pin
Krish - KP21-Feb-07 3:39
Krish - KP21-Feb-07 3:39 
QuestionAbout SQL Pin
SwaSubhaVijju19-Feb-07 18:34
SwaSubhaVijju19-Feb-07 18:34 
AnswerRe: About SQL Pin
SwaSubhaVijju19-Feb-07 18:42
SwaSubhaVijju19-Feb-07 18:42 
GeneralRe: About SQL Pin
Colin Angus Mackay19-Feb-07 23:56
Colin Angus Mackay19-Feb-07 23:56 
Questionupdate/delete error "Could not determine which columns uniquely identify the rows for" Pin
roithi19-Feb-07 18:24
roithi19-Feb-07 18:24 
AnswerRe: update/delete error "Could not determine which columns uniquely identify the rows for" Pin
andyharman20-Feb-07 0:10
professionalandyharman20-Feb-07 0:10 
QuestionHelp Me:Can we select sum of 2 columns in one select statement? Pin
priya_p23319-Feb-07 17:41
priya_p23319-Feb-07 17:41 
Good morning freinds,
i m trying to create following procedure in mysql5.0 but getting error abt check syntax in sql statement on 2nd column i.e. at sum(Tuesday).
Monday & Tuesday are two columns of which i wnt to display sum of all records of Monday & tuesday so i wrote following procedure but Error??Sigh | :sigh:
As I tried already, i selected sum of other 2 columns at a time in one select stmt, but it is also giving error at 2nd column.
In simple query i can select sum of more than one columns but why not in procedure?
Anybody please help me following is the my procedure.---->

DELIMITER $$

DROP PROCEDURE IF EXISTS `timesheet`.`sp_select` $$
CREATE PROCEDURE `sp_select`()
BEGIN
DECLARE mon,tue double;

SELECT sum(Monday) into mon , sum(Tuesday) as tue FROM timesheet_nonbillables;

SELECT mon,tue;

END $$
DELIMITER ;

What should i change in it to run properly.
Please Reply Soon.Sigh | :sigh:
Thanx.

-Regards Priya.

"The Difficult i can do it now...
The Impossible will take a little longer."

AnswerRe: Help Me:Can we select sum of 2 columns in one select statement? Pin
K.P.Kannan19-Feb-07 18:26
K.P.Kannan19-Feb-07 18:26 
AnswerRe: Help Me:Can we select sum of 2 columns in one select statement? Pin
asithangae19-Feb-07 18:30
asithangae19-Feb-07 18:30 
GeneralRe: Help Me:Can we select sum of 2 columns in one select statement? Pin
asithangae19-Feb-07 18:42
asithangae19-Feb-07 18:42 
Questionparent and child deleting using typed datasets, cascade to delete children Pin
steve_rm19-Feb-07 17:06
steve_rm19-Feb-07 17:06 
QuestionRe: parent and child deleting using typed datasets, cascade to delete children Pin
steve_rm19-Feb-07 19:41
steve_rm19-Feb-07 19:41 
QuestionMulti-Column Contains Syntax??? Pin
code-frog19-Feb-07 12:50
professionalcode-frog19-Feb-07 12:50 
AnswerRe: Multi-Column Contains Syntax??? Pin
Krish - KP19-Feb-07 23:38
Krish - KP19-Feb-07 23:38 
GeneralRe: Multi-Column Contains Syntax??? Pin
code-frog20-Feb-07 8:19
professionalcode-frog20-Feb-07 8:19 
QuestionADO.NET book that uses practical application examples Pin
reach4thelasers19-Feb-07 11:18
reach4thelasers19-Feb-07 11:18 
AnswerRe: ADO.NET book that uses practical application examples Pin
firestoper19-Feb-07 12:56
firestoper19-Feb-07 12:56 
AnswerRe: ADO.NET book that uses practical application examples Pin
Rahithi23-Feb-07 2:30
Rahithi23-Feb-07 2:30 
GeneralRe: ADO.NET book that uses practical application examples Pin
reach4thelasers3-Mar-07 12:01
reach4thelasers3-Mar-07 12:01 
Questiondeference between tow types of join Pin
a_yosef19-Feb-07 11:13
a_yosef19-Feb-07 11:13 
AnswerRe: deference between tow types of join Pin
Christian Graus19-Feb-07 11:21
protectorChristian Graus19-Feb-07 11:21 
GeneralRe: deference between tow types of join Pin
a_yosef19-Feb-07 12:15
a_yosef19-Feb-07 12:15 
QuestionWhich DataType? Pin
Sam Heller19-Feb-07 6:16
Sam Heller19-Feb-07 6:16 
AnswerRe: Which DataType? Pin
andyharman19-Feb-07 7:00
professionalandyharman19-Feb-07 7:00 

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.