everything always starts like this
SELECTFROM
WHERE
...and then u just have to fill in the structure
posted by io @ 9:53 AM
messo |
living the big applepublished by joe
|
alla porta |
posted by io @ 9:53 AM
1 Comments:
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