Skip to content
This repository has been archived by the owner on Jun 14, 2020. It is now read-only.

Commit

Permalink
Wrong ID output from join
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabian Dennler committed Mar 13, 2016
1 parent 9904950 commit 707b359
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sql/views.sql
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
CREATE VIEW missingSequenceNumbers AS
SELECT l.ID AS start
SELECT l.ID + 1 AS start
FROM citation AS l
LEFT OUTER JOIN citation AS r ON l.ID + 1 = r.ID
WHERE r.ID is null
Expand Down

0 comments on commit 707b359

Please sign in to comment.