-- 1.1.8 Power.TechnologicalConnection
CREATE TABLE SealAccountList
(
	SealAccountID	int,
	CounterID		int,
	Primary Key(SealAccountID, CounterID)
)
GO
ALTER TABLE SealAccountList 
       ADD FOREIGN KEY (CounterID)
       REFERENCES Измерительный_прибор(Код_прибора)
       ON DELETE CASCADE
       
ALTER TABLE SealAccountList 
       ADD FOREIGN KEY (SealAccountID)
       REFERENCES SealAccounts (SealAccountID)
       ON DELETE CASCADE