title: SQL Parser for java
body: <p>I have multiple SQL queries (SELECT statements using FROM and WHERE - standard), and was looking for a parser in which I can feed in SQL queries as text and gives out the column names being <strong>used</strong> and corresponding table and schema names. Parser should take care of aliases and joins to notice distinct column names that are being used.</p>
  
  <p>Please give me ideas to use a java library and also an exel API because the queries are in EXCEL cell. Would be great if to get something. Thanks</p>
  
  <p>I would code an SQL parser but don't want to reinvent the wheel and not confident that I could make it work completely. Thanks for your input.</p>
  
  <p>Please let me know if you know of parsers in other languages that would work.
  Thanks</p>