Skip to content

Commit f4b4691

Browse files
Update Advanced SQL Puzzles Solutions.sql
1 parent 77dbfc8 commit f4b4691

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Advanced SQL Puzzles/Advanced SQL Puzzles Solutions.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4071,11 +4071,11 @@ GO
40714071
WITH cte_BatchLines_Go AS
40724072
(
40734073
SELECT *
4074-
FROM ##BatchLines
4074+
FROM #BatchLines
40754075
WHERE Syntax = 'GO'
40764076
)
40774077
SELECT a.Batch, a.BatchStart, MIN(b.Line) AS MinLine
4078-
FROM ##BatchStarts a LEFT JOIN
4078+
FROM #BatchStarts a LEFT JOIN
40794079
cte_BatchLines_Go b ON b.Line >= a.BatchStart AND a.Batch = b.Batch
40804080
GROUP BY a.Batch, a.BatchStart;
40814081

0 commit comments

Comments
 (0)