messo

published by joe

alla porta



mercoledì, dicembre 05, 2007

everything always starts like this

SELECT

FROM

WHERE






...and then u just have to fill in the structure

posted by io @ 9:53 AM

1 Comments:

At 10:23, Blogger rainwiz said...

Do you feel you have a SQLife?

CREATE PROCEDURE MyOnlyPossibilityToMarriage
@ BrideGroom Char(NotBad),
@ Bride Char(Good)

AS
BEGIN

SELECT Bride FROM brasil_ Brides
WHERE
FatherInLaw = ‘Millionaire’ AND
CarCount > 2 AND
HouseStatus =’TwoStoreyed’ AND
BrideEduStatus=’PG orAbove’ 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

 

Posta un commento

<< Home