Click here to Skip to main content
       

Database

 
Questionupdate values in a table in single query Pinmembernainakarri7-Feb-13 20:07 
AnswerRe: update values in a table in single query PinmemberMycroft Holmes7-Feb-13 21:00 
GeneralRe: update values in a table in single query PinmemberShameel10-Feb-13 22:38 
GeneralRe: update values in a table in single query PinmemberMycroft Holmes11-Feb-13 13:30 
AnswerRe: update values in a table in single query PinmvpEddy Vluggen7-Feb-13 22:42 
GeneralRe: update values in a table in single query Pinmembergvprabu10-Feb-13 18:02 
AnswerRe: update values in a table in single query Pinmembergvprabu20-Feb-13 21:43 
QuestionIs it possible to print a variable in stored procedure PinmemberDeepthi.214567-Feb-13 19: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 Pinmembernainakarri7-Feb-13 20:22 
GeneralRe: Is it possible to print a variable in stored procedure Pinmembervanikanc12-Feb-13 8:19 
QuestionVisual Studio 2005 Access 2010 Database PinmemberMember 98194707-Feb-13 12:06 
AnswerRe: Visual Studio 2005 Access 2010 Database PinmemberMycroft Holmes7-Feb-13 13:45 
QuestionSimulate transaction: non blocking insert / update PinmemberBob Stanneveld7-Feb-13 11:12 
AnswerRe: Simulate transaction: non blocking insert / update PinmemberMycroft Holmes7-Feb-13 13:44 
QuestionPropagating a MySQL transaction with MSMQ II PinmemberGer Hayden6-Feb-13 8:08 
QuestionMissing Data in an Access Report PinmemberVuyiswa Maseko6-Feb-13 3:03 
AnswerRe: Missing Data in an Access Report Pinmemberjschell6-Feb-13 8:11 
GeneralRe: Missing Data in an Access Report PinmemberVuyiswa Maseko6-Feb-13 19:01 
GeneralRe: Missing Data in an Access Report Pinmemberjschell7-Feb-13 9:52 
AnswerRe: Missing Data in an Access Report PinmemberMycroft Holmes6-Feb-13 12:27 
GeneralRe: Missing Data in an Access Report PinmemberVuyiswa Maseko6-Feb-13 19:06 
GeneralRe: Missing Data in an Access Report PinmemberMycroft Holmes6-Feb-13 20:27 
GeneralRe: Missing Data in an Access Report PinmemberVuyiswa Maseko6-Feb-13 20:32 
GeneralRe: Missing Data in an Access Report Pinmemberjschell7-Feb-13 9:56 
Questionoracle error with winserver2008 Pinmemberfares35-Feb-13 1:03 

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
Web02 | 2.8.140905.1 | Last Updated 15 Sep 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid