ВЫБОРКА
Добавлено: 02 сен 2011, 08:17
.Create view SchNakl
as select * From
StepDoc
,KatSopr
,SpsOpr
,KatMC
,KatParty
,KatOtpEd
,attrval
,attrnam
Where
((
BaseDocNrec == StepDoc.cBaseDoc
and StepDoc.NRec == KatSopr.cStepDoc
and KatSopr.Nrec == SpsOpr.cSopr
?????and word(106) <> katsopr.vidsopr
and SpsOpr.cMCUsl == KatMC.nRec
and SpsOpr.cMCUsl == KatUsl.nRec
and SpsOpr.cParty == KatParty.nRec
and SpsOpr.cOtpEd == KatOtpEd.nRec
and word(1411)==attrnam.wtable
and 'МНН'==attrnam.name
and word(1411)==attrval.wtable
and katmc.nrec==attrval.crec
and attrnam.nrec==attrval.cattrnam
));
Ребята скажите а как выделить в выборке документы с katsopr.vidsopr<>106
as select * From
StepDoc
,KatSopr
,SpsOpr
,KatMC
,KatParty
,KatOtpEd
,attrval
,attrnam
Where
((
BaseDocNrec == StepDoc.cBaseDoc
and StepDoc.NRec == KatSopr.cStepDoc
and KatSopr.Nrec == SpsOpr.cSopr
?????and word(106) <> katsopr.vidsopr
and SpsOpr.cMCUsl == KatMC.nRec
and SpsOpr.cMCUsl == KatUsl.nRec
and SpsOpr.cParty == KatParty.nRec
and SpsOpr.cOtpEd == KatOtpEd.nRec
and word(1411)==attrnam.wtable
and 'МНН'==attrnam.name
and word(1411)==attrval.wtable
and katmc.nrec==attrval.crec
and attrnam.nrec==attrval.cattrnam
));
Ребята скажите а как выделить в выборке документы с katsopr.vidsopr<>106