I have 2 tables. Both have the same amount of rows.
Sample data:
Table1{
Id, IdTable2Row
}
Table2 {
Id, RedChicken -- LOL
}
Each row of Table1 (column IdTable2Row) should get the id of 1 row of table 2 (irrelevant which one). Table1.IdTable2Row is null in every row before the operation.
How can I do something like this?
UPDATE Table1 SET IdTable2Row = (SELECT Id FROM [Table2])