Marriage Query
Tuesday, August 12, 2008
WeddingQuery (SQL Style)
Husbands QueryCREATE PROCEDURE MyMarriage (
BrideGroom Male (25) ,
Bride Female(20) )
AS BEGIN
SELECT Bride FROM Brides
WHERE FatherInLaw = 'Millionaire'AND Count(Car) > 20
Then the wife writes the below query:
AND HouseStatus = 'ThreeStoreyed'
AND BrideEduStatus IN (B.TECH ,BE ,Degree ,MCA ,MiBA)
AND HavingBrothers = Null
AND Sisters = Null
SELECT Gold ,Cash,Car,BankBalance
FROM FatherInLaw
UPDATE MyBankAccout
SET MyBal = MyBal + FatherInLawBal
UPDATE MyLocker
SET MyLockerContents = MyLockerContents + FatherInLawGold
INSERT INTO MyCarShed VALUES('BMW')
END
GODROP HUSBAND;
source : http://www.themediasite.net/forums/showthread.php?t=52420
Commit;
0 comments:
Post a Comment