Better HN
topnewbestaskshowjobs
Log inSign up

matteote

2 karma · joined Aug 29, 2012 (14y ago) · 2 submissions

Submissions

comment 4y ago · link · parent

I use ANTLR4 and its rewriter to translate between two similar SQL dialects, for migration purposes.

comment 4y ago · link · parent

This reminds me of KEY JOIN in Sybase which, unlike this syntax, does not require to specify the foreign key. I find Sybase's syntax to be too implicit, and challenging to port to other dialects; JOIN FOREIGN with explicit PK reference looks much better.

I wonder how it is expected to work with non-table references (views, CTEs, subqueries), especially when the columns involved in the foreign key (on either side) are not returned explicitly by the referenced object.