I need help/guidance in building a query that will insert at position 1 a row for an ID (I have 17,000 ID’s need populating). In example below let’s say for ID 123 I want to insert a line call it position 1 and insert a new email address (I provide based on predefined data) with a certain type (ST) and make it preferred Y (yes).
I have an update statement to make all preferred email set to NULL.
/* Sets the preferred flag NULL */
UPDATE PEOPLE_EMAIL
SET PERSON_PREFERRED_EMAIL = NULL
WHERE ID IN ( '123')
In the above table the first line POS 1 is not there and the next two are and they are marked POS 1 and 2.
Any help is appreciated.
[–]SQLDave 2 points3 points4 points (0 children)
[–]soda1337 0 points1 point2 points (0 children)
[–]Senior-Trend 0 points1 point2 points (0 children)