January 2, 2009

WeddingQuery........ ........ (SQL Style)

HUSBANDS QUERY

CREATE PROCEDURE
Marriage (
Bridegroom Male (25) ,
Bride Female(20) )

AS
BEGIN


SELECT
Bride FROM india_ Brides
WHERE FatherInLaw = 'Millionaire'

AND Count(Car) > 20 AND HouseStatus ='ThreeStoreyed'
AND BrideEduStatus IN (B.TECH ,BE ,Degree ,MCA ,MBA) 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 wife writes the below query:

DROP HUSBAND;
Commit;

 

No comments:

Post a Comment

Please Leave your valuable comments here. Thanks in Advance.

Disclaimer

Spend time by reading assumes no liability for the accuracy or completeness of any of the information contained on this web site. Furthermore, spend time by reading neither assumes liability for the accuracy or completeness, nor endorses the contents of, any outside links from our web site. This information is provided as a public service for convenience purposes only. Reliance upon the accuracy or completeness of the information contained herein is at the user’s risk. Users are strongly encouraged to make every effort to verify the accuracy and/or completeness of the information before reliance thereon.