Click here to Skip to main content
11,412,833 members (73,230 online)
   

Database

 
AnswerRe: SQL 2008 Truncate vs Delete Pin
NickPace at 12-Feb-13 11:09
memberNickPace12-Feb-13 11:09 
AnswerRe: SQL 2008 Truncate vs Delete Pin
djj55 at 13-Feb-13 4:59
memberdjj5513-Feb-13 4:59 
AnswerRe: SQL 2008 Truncate vs Delete Pin
gvprabu at 20-Feb-13 22:37
membergvprabu20-Feb-13 22:37 
QuestionSQL Server 2008 Pin
VishwaKL at 10-Feb-13 18:51
memberVishwaKL10-Feb-13 18:51 
AnswerRe: SQL Server 2008 Pin
Shameel at 10-Feb-13 23:33
memberShameel10-Feb-13 23:33 
AnswerRe: SQL Server 2008 Pin
jschell at 11-Feb-13 9:20
memberjschell11-Feb-13 9:20 
Questionupdate values in a table in single query Pin
nainakarri at 7-Feb-13 21:07
membernainakarri7-Feb-13 21:07 
AnswerRe: update values in a table in single query Pin
Mycroft Holmes at 7-Feb-13 22:00
memberMycroft Holmes7-Feb-13 22:00 
GeneralRe: update values in a table in single query Pin
Shameel at 10-Feb-13 23:38
memberShameel10-Feb-13 23:38 
GeneralRe: update values in a table in single query Pin
Mycroft Holmes at 11-Feb-13 14:30
memberMycroft Holmes11-Feb-13 14:30 
AnswerRe: update values in a table in single query Pin
Eddy Vluggen at 7-Feb-13 23:42
mvpEddy Vluggen7-Feb-13 23:42 
GeneralRe: update values in a table in single query Pin
gvprabu at 10-Feb-13 19:02
membergvprabu10-Feb-13 19:02 
AnswerRe: update values in a table in single query Pin
gvprabu at 20-Feb-13 22:43
membergvprabu20-Feb-13 22:43 
QuestionIs it possible to print a variable in stored procedure Pin
Deepthi.21456 at 7-Feb-13 20:45
memberDeepthi.214567-Feb-13 20:45 
I am adding my code below
create procedure dist_profit_pairs1(IN user_id 
varchar(20),IN plan varchar(20))
begin
DECLARE left_bvs,right_bvs Float DEFAULT 0;
SELECT sum(businessvalues)as left_bvs from bv_history where userid=user_id and type='Distribution Profit' and position='Left';
SELECT sum(businessvalues)as right_bvs from bv_history where userid=user_id and type='Distribution Profit' and position='Right';
 
IF left_bvs < right_bvs  THEN
    SELECT left_bvs;
ELSE
    SELECT right_bvs;

AnswerRe: Is it possible to print a variable in stored procedure Pin
nainakarri at 7-Feb-13 21:22
membernainakarri7-Feb-13 21:22 
GeneralRe: Is it possible to print a variable in stored procedure Pin
vanikanc at 12-Feb-13 9:19
membervanikanc12-Feb-13 9:19 
QuestionVisual Studio 2005 Access 2010 Database Pin
Member 9819470 at 7-Feb-13 13:06
memberMember 98194707-Feb-13 13:06 
AnswerRe: Visual Studio 2005 Access 2010 Database Pin
Mycroft Holmes at 7-Feb-13 14:45
memberMycroft Holmes7-Feb-13 14:45 
QuestionSimulate transaction: non blocking insert / update Pin
Bob Stanneveld at 7-Feb-13 12:12
memberBob Stanneveld7-Feb-13 12:12 
AnswerRe: Simulate transaction: non blocking insert / update Pin
Mycroft Holmes at 7-Feb-13 14:44
memberMycroft Holmes7-Feb-13 14:44 
QuestionPropagating a MySQL transaction with MSMQ II Pin
Ger Hayden at 6-Feb-13 9:08
memberGer Hayden6-Feb-13 9:08 
QuestionMissing Data in an Access Report Pin
Vuyiswa Maseko at 6-Feb-13 4:03
memberVuyiswa Maseko6-Feb-13 4:03 
AnswerRe: Missing Data in an Access Report Pin
jschell at 6-Feb-13 9:11
memberjschell6-Feb-13 9:11 
GeneralRe: Missing Data in an Access Report Pin
Vuyiswa Maseko at 6-Feb-13 20:01
memberVuyiswa Maseko6-Feb-13 20:01 
GeneralRe: Missing Data in an Access Report Pin
jschell at 7-Feb-13 10:52
memberjschell7-Feb-13 10:52 
AnswerRe: Missing Data in an Access Report Pin
Mycroft Holmes at 6-Feb-13 13:27
memberMycroft Holmes6-Feb-13 13:27 
GeneralRe: Missing Data in an Access Report Pin
Vuyiswa Maseko at 6-Feb-13 20:06
memberVuyiswa Maseko6-Feb-13 20:06 
GeneralRe: Missing Data in an Access Report Pin
Mycroft Holmes at 6-Feb-13 21:27
memberMycroft Holmes6-Feb-13 21:27 
GeneralRe: Missing Data in an Access Report Pin
Vuyiswa Maseko at 6-Feb-13 21:32
memberVuyiswa Maseko6-Feb-13 21:32 
GeneralRe: Missing Data in an Access Report Pin
jschell at 7-Feb-13 10:56
memberjschell7-Feb-13 10:56 
Questionoracle error with winserver2008 Pin
fares3 at 5-Feb-13 2:03
memberfares35-Feb-13 2:03 
AnswerRe: oracle error with winserver2008 Pin
Bernhard Hiller at 5-Feb-13 5:57
memberBernhard Hiller5-Feb-13 5:57 
Questionchar(255) vs varchar(255) vs varchar(MAX) Pin
devvvy at 1-Feb-13 19:22
memberdevvvy1-Feb-13 19:22 
AnswerRe: char(255) vs varchar(255) vs varchar(MAX) Pin
Richard MacCutchan at 2-Feb-13 0:07
mvpRichard MacCutchan2-Feb-13 0:07 
GeneralRe: char(255) vs varchar(255) vs varchar(MAX) [modified] Pin
devvvy at 2-Feb-13 16:39
memberdevvvy2-Feb-13 16:39 
AnswerRe: char(255) vs varchar(255) vs varchar(MAX) Pin
PIEBALDconsult at 2-Feb-13 6:22
memberPIEBALDconsult2-Feb-13 6:22 
GeneralRe: char(255) vs varchar(255) vs varchar(MAX) Pin
devvvy at 3-Feb-13 0:30
memberdevvvy3-Feb-13 0:30 
GeneralRe: char(255) vs varchar(255) vs varchar(MAX) Pin
jschell at 3-Feb-13 7:36
memberjschell3-Feb-13 7:36 
QuestionSP Unexpected Behavior Pin
eddieangel at 1-Feb-13 8:19
membereddieangel1-Feb-13 8:19 
QuestionEncrypt a field in the database. Pin
vanikanc at 1-Feb-13 6:31
membervanikanc1-Feb-13 6:31 
AnswerRe: Encrypt a field in the database. Pin
Eddy Vluggen at 1-Feb-13 8:02
mvpEddy Vluggen1-Feb-13 8:02 
Questioncheck before insert Pin
vanikanc at 31-Jan-13 5:55
membervanikanc31-Jan-13 5:55 
AnswerRe: check before insert Pin
Eddy Vluggen at 31-Jan-13 6:00
mvpEddy Vluggen31-Jan-13 6:00 
GeneralRe: check before insert Pin
Eddy Vluggen at 31-Jan-13 11:35
mvpEddy Vluggen31-Jan-13 11:35 
AnswerRe: check before insert Pin
mark merrens at 31-Jan-13 9:10
membermark merrens31-Jan-13 9:10 
GeneralRe: check before insert Pin
vanikanc at 31-Jan-13 9:21
membervanikanc31-Jan-13 9:21 
GeneralRe: check before insert Pin
mark merrens at 31-Jan-13 11:09
membermark merrens31-Jan-13 11:09 
GeneralRe: check before insert Pin
Chris Meech at 31-Jan-13 11:24
memberChris Meech31-Jan-13 11:24 
GeneralRe: check before insert Pin
mark merrens at 31-Jan-13 11:25
membermark merrens31-Jan-13 11:25 
AnswerRe: check before insert Pin
djj55 at 1-Feb-13 8:50
memberdjj551-Feb-13 8:50 

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

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


Advertise | Privacy | Mobile
Web01 | 2.8.150427.1 | Last Updated 26 Apr 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid