Posted by:
Ganjadi
December 4, 2009
Wedding Query ....
Login in to Rate this Post:
0
?
CREATE
PROCEDURE MyMarriage
BrideGroom Male (29),
Bride Female(24) AS
BEGIN
SELECT Bride FROM All_ Brides
WHERE FatherInLaw = 'Millionaire' AND Count(Car) > 10 AND
HouseStatus = 'TwoStorey_Fully_Furnished'
AND BrideEduStatus IN (Bachelor Degree, Masters Degree) AND Having
Brothers = 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 GO
Then the Bride writes the below query:
DROP HUSBAND;
Commit;
Read Full Discussion Thread for this article