Marriage Query(SQL)

Posted on Friday 19 May 2006

Print This Post Print This Post

Ack :~ Chintan Vasani

CREATE OR REPLACE PROCEDURE MyMarriage @BrideGroom CHAR(NotBad), @Bride CHAR(Good) IS
SELECT Bride
FROM *****Brides –this is ur guess reply with this
WHERE FatherInLaw = ‘Millionaire’
AND CarCount = 2
AND HouseStatus =’TwoStoreyed’
AND BrideEduStatus=’PGorAbove’ HavingBrothers=’NO’ AND HavingSisters =’No’ AND AllowRelocate =’YES’ ;

SELECT gold, cash, car, bankbalance
FROM fatherinlaw;

UPDATE mybankaccout
SET mybal = mybal + fatherinlawbal;

UPDATE mylocker
SET mylockercontents = mylockercontents + fatherinlawgold;

INSERT INTO mycarshed
VALUES (’Safari’);

END;


No comments have been added to this post yet.

Leave a comment

(required)

(required)


Information for comment users
Line and paragraph breaks are implemented automatically. Your e-mail address is never displayed. Please consider what you're posting.

Use the buttons below to customise your comment.


RSS feed for comments on this post | TrackBack URI