programer
Posting Yak Master
221 Posts |
Posted - 2012-03-18 : 18:05:13
|
Hi,For examples I want to show what I mean with triggers.I have two tables:- tbl_BetSlipDetails:Id, ,Stake, Winnings,1, 15.00, 0.00- tbl_BetSlipEventsId, BetSlipEventsId, IsWinning1, 1, false2, 1, false3, 1, falseI use join for tables: tbl_BetSlipDetails.Id join with tbl_BetSlipEvents.BetSlipEventsIdAs soon as the table value of "true" I need to use trigger to be recorded in the database winnings = 15.00Like this:Id, ,Stake, Winnings,1, 15.00, 15.00- tbl_BetSlipEventsId, BetSlipEventsId, IsWinning1, 1, true2, 1, true3, 1, trueIf is one value is "false" the winnings = 0.00Can you please help me how to use trigger for my solution? |
|