Hoping to be human someday!

SQL Stored Procedures for Marriage

CREATE PROCEDURE MyMarriage
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, MiBA) 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

Find the errors if possible………..

Most Commented

3 Responses to “SQL Stored Procedures for Marriage”

  1. Raza says:

    The parameters are never used, their datatypes aren’t defined. Plus, you never declared FatherInLawBal and FatherInLawGold. They might as well be ZERO :P

    Waisay, its hard to find a decent bride in ANY CASE and you’re trying to find a 20 year-old Postgrad girl!

    • SAWJ says:

      Yar tu to serious ho gaya! :P
      Waise it’s a forwarded email aur agar itne saaray parameters declare kiye jayein to maza nahin kharab ho ga?

      Second point is factually true and unarguably accepted.

      Plus I’m not trying to find a bride bhai, I’m not “old enough”.

  2. Raza says:

    LOL @ not “old enough”

    XD

Leave a Reply