Wedding Query

xcorect

Well-known member
  • Apr 17, 2007
    7,881
    84
    48
    CREATE PROCEDURE MyMarriage
    BrideGroom Male (25) ,
    Bride Female(20) AS
    BEGIN
    SELECT Bride FROM lanka_ 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;

    Find the errors if possible.... .......​
     

    nj542

    Member
    Jul 25, 2007
    3,747
    28
    0
    xcorect said:
    CREATE PROCEDURE MyMarriage
    BrideGroom Male (25) ,
    Bride Female(20) AS
    BEGIN
    SELECT Bride FROM lanka_ 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;

    Find the errors if possible.... .......​


    DROP
    HUSBAND;
    Commit;

    or

    DIVORCE;
    Commit;

    :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :cool: :cool: :cool:
     

    shelan

    Member
    Dec 19, 2007
    728
    5
    0
    xcorect said:
    CREATE PROCEDURE MyMarriage
    BrideGroom Male (25) ,
    Bride Female(20) AS
    BEGIN
    SELECT Bride FROM lanka_ 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')

    if (success)
    " +r" //read only:lol:

    go
    end



    Then the wife writes the below query:

    DROP
    HUSBAND;
    commit;

    return-->"cant append the file- read only"

    :lol::lol::lol::lol::lol::lol::lol::lol::lol::lol:








    I think nw thr is no prob!!!!
     
    Last edited: