i am creating a trigger on the below table : D0086_reading_table_t
D0010_ID |
REG_ID |
MPAN |
READING |
SETTLEMENTDATE |
Meter_Register_Id |
BSC_Validation_Status |
Reading_Type |
ENTRY_TYPE |
BILL_ID |
110568 |
17450 |
2380000366766.00 |
36872 |
21-11-2019 |
2 |
V |
E |
D0086 |
NULL |
110567 |
17450 |
2380000366766.00 |
83435 |
21-11-2019 |
1 |
V |
E |
D0086 |
NULL |
So whenever the D0010_id 110567 data will insert,it will go for logic inside trigger.
Is it possible like After 2 rows insert with the same registraion id,the logic will take place.
ALTER TRIGGER [dbo].[CHANGE_SUPPLIER_D0300_TG]
ON [dbo].[D0086_CHANGE_SUPPLIER_READING_DET_T]
AFTER INSERT
AS
BEGIN
END