SQL Queries by Husband and Wife
SQL Queries with Fun and Laughs
WeddingQuery. ……. …….. (SQL Style)
HUSBANDS QUERY
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | CREATE PROCEDURE MyMarriage (BrideGroom Male (25) ,Bride Female(20) ) Sisters =Null 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 ,MiBA) AND Having Brothers= Null AND SELECT Gold ,Cash,Car,BankBalance FROM FatherInLaw UPDATE MyBankAccout SETMyBal = MyBal + FatherInLawBal UPDATE MyLocker SET MyLockerContents = MyLockerContents + FatherInLawGold INSERT INTO MyCarShed VALUES(‘BMW’) |
Then the wife writes the below query:
1 2 | DROP HUSBAND; Commit; |