Hi All,
I have a table which has the columns, ID, ForeName, Surname, Age, Entry
I need the Entries column to increment depending on how many entries a user has created, for example.
At the moment the entry columns says 1 for all rows, how can i write an update query to say, if the same person has more than one entry, increment Entry by 1?
I know i could write an If statement to say if the row exists +1 to Entry, but i've been asked to set it out this way.
Any help would be appreciated.
I have a table which has the columns, ID, ForeName, Surname, Age, Entry
I need the Entries column to increment depending on how many entries a user has created, for example.
Code:
ID ForeName Surname Age Entry
1 Dan Jones 21 1
2 Dan Jones 21 2
3 Dan Jones 21 3
I know i could write an If statement to say if the row exists +1 to Entry, but i've been asked to set it out this way.
Any help would be appreciated.