He all,I have the following which selects values into parameters from one table and then updates another table with those parameters.Is there a way to skip the parameter part and just do 1 update statement? Any help is greatly appreciated.Here is an example:Declare @MemberID bigintSet @MemberID = 119152Declare @Score intDeclare @Bonuses intDeclare @Penalties intSelect @Score = IsNull(Sum(score), 0) ,@Bonuses = IsNull(Sum(bonuses), 0) ,@penalties = IsNull(Sum(penalties), 0)From dbo.member_scoreWhere memberid = @MemberIDAnd active = 1Update dbo.membersSet score = @Score ,bonuses = @Bonuses ,penalties = @PenaltiesWhere memberid = @MemberID
JBelthoff› As far as myself... I do this for fun!