Hi. I am pretty new to this sql server 2012 programming and have a difficult task in school wich i can't seem to figure out. So I now ask for your help. The task is as follows: Create a AFTER INSERT trigger for the table Sokande that verifies the new row(s) postalcode (postNr) and city is correct. This is done by finding the postalcode and making sure the city is correct. If the postalcode isn't found or the city doesn't match, the new row(s) should be deleted from the Sokande table by the trigger.
So thats the task I've been working on for two days. I hope you understand and I hope any of you can help me in any way possible.
Usually people on the forum are reluctant to post answers to school-related work for fear that they may be doing a disservice rather than helping. If you post what you have tried so far, I am sure many people on the forum would be very glad to help.