.comment-link {margin-left:.6em;}

Wednesday, November 08, 2006

Marriage Invitation... (SQL Server Stored Procedure Style)

CREATE PROCEDURE MyMarriage
@BrideGroom Char(NotBad),
@Bride Char(Good)
AS

SELECT Bride FROM
Brides
WHERE
FatherInLaw = 'Millionaire' AND
CarCount > 2 AND
HouseStatus ='TwoStoreyed' AND
BrideEduStatus='UG or Above'
HavingBrothers='NO' AND
HavingSisters ='YES' AND
AllowRelocate ='YES' AND

SELECT Gold, Cash, Car, BankBalance FROM FatherInLaw

UPDATE MyBankAccout SET MyBal = MyBal + FatherinLawBal
UPDATE MyLocker SET MyLockerContents = MyLockerContents + FatherinLawGold

INSERT INTO MyCarShed VALUES ('Ford')

Comments: Post a Comment



<< Home

This page is powered by Blogger. Isn't yours?