I'm trying to set the value of a column 'VALUE' where the 'ID' equals 2 AND the 'USERID' matches another row in the same table, where the 'ID' equals 1 and the VALUE is, say, 'London' in the example...
So:
ID | USERID | VALUE
1 | 1 | London
1 | 2 | Madrid
1 | 3 | London
1 | 4 | Paris
2 | 1 | null
2 | 2 | null
2 | 3 | null
2 | 4 | null
Becomes
ID | USERID | VALUE
1 | 1 | London
1 | 2 | Madrid
1 | 3 | London
1 | 4 | Paris
2 | 1 | on
2 | 2 | null
2 | 3 | on
2 | 4 | null
Is this possible?
If anyone can help I would be most grateful! Thanks.