We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f801797 commit 46b3c02Copy full SHA for 46b3c02
documentation/reference/sql/update.md
@@ -39,13 +39,13 @@ UPDATE spreads s SET s.spread = p.ask - p.bid FROM prices p WHERE s.symbol = p.s
39
40
```questdb-sql title="Update with multiple joins"
41
WITH up AS (
42
- SELECT p.ask - p.bid AS spread, s.timestamp
+ SELECT p.ask - p.bid AS spread, p.timestamp
43
FROM prices p
44
JOIN instruments i ON p.symbol = i.symbol
45
WHERE i.type = 'BOND'
46
)
47
UPDATE spreads s
48
-SET s.spread = up.spread
+SET spread = up.spread
49
FROM up
50
WHERE s.timestamp = up.timestamp;
51
```
0 commit comments