CREATE PROCEDURE MyMarriage
@ BrideGroom Char(NotBad) ,
@ Bride Char(Good)
@ BrideGroom Char(NotBad) ,
@ Bride Char(Good)
AS
BEGIN
BEGIN
SELECT Bride FROM Pakistan_ Brides
WHERE
FatherInLaw = ‘Millionaire’ AND
CarCount > 2 AND
HouseStatus =’TwoStoreyed’ AND
BrideEduStatus= ‘PG orAbove’ AND
HavingBrothers= ‘NO’ AND
HavingSisters =’No’ AND
AllowRelocate =’YES’
WHERE
FatherInLaw = ‘Millionaire’ AND
CarCount > 2 AND
HouseStatus =’TwoStoreyed’ AND
BrideEduStatus= ‘PG orAbove’ AND
HavingBrothers= ‘NO’ AND
HavingSisters =’No’ AND
AllowRelocate =’YES’
SELECT Gold ,Cash,Car,BankBalan ce FROM FatherInLaw
UPDATE MyBankAccout SET MyBal = MyBal + FatherinLawBal
UPDATE MyLocker SET MyLockerContents = MyLockerContents + FatherinLawGold
UPDATE MyLocker SET MyLockerContents = MyLockerContents + FatherinLawGold
INSERT INTO MyCarShed VALUES (’BMW’)
END
GO
GO
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.