SQL SERVER – SQL Joke, SQL Humor, SQL Laugh – SP

One of my Friend send me(in email) following stored procedure. I laughed when I read it. Please enjoy it. It is here for amusement purpose only. Never use on development or production server. This is already dangerous you have been warned.

CREATE PROCEDURE MyMarriage
@ BrideGroom CHAR(NotBad),
@ Bride CHAR(Good)
AS
BEGIN
SELECT
Bride
FROM india_ Brides
WHERE
FatherInLaw = 'Millionaire'
AND
CarCount > 2
AND
HouseStatus ='TwoStoreyed'
AND
BrideEduStatus='PG or Above'
AND
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 ('BMW')
END
GO

When the girl comes to know about the above code she writes the below given query:
DROP HIM

Reference : Pinal Dave (http://blog.SQLAuthority.com) , Email received from friend

5 thoughts on “SQL SERVER – SQL Joke, SQL Humor, SQL Laugh – SP

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s