Doing a Google search for SQL standards, I found a
wonderful page of links to SQL info, including the BNF
specs for SQL92 and SQL3. Not exactly gram.y but hopefully
close.
Could be helpful in deciphering what the standards say.
See: http://www.contrib.andrew.cmu.edu/~shadow/sql.html
---------
Hannu