title: net.ucanaccess.jdbc.UcanaccessSQLException: UCAExc:::4.0.4 unexpected token: DAY
body: <pre><code>public void sqlData() throws ClassNotFoundException, SQLException
  {
  
      Class.forName("net.ucanaccess.jdbc.UcanaccessDriver");
      Connection con = DriverManager.getConnection("jdbc:ucanaccess://path;
      String qry = "SELECT Patient.NAME AS patient, Patient.DISEASE AS 
      disease FROM Patient, Doctor WHERE 
      Patient.DISEASE=Doctor.SPECIALIZATION";
      try{
  
        Statement st = con.createStatement();
        ResultSet rs = st.executeQuery(qry);
        DefaultTableModel model = (DefaultTableModel)appoint_table.getModel();
        int x =1;
        while(rs.next())
        {
          String rrr = rs.getString("patient");
          System.out.println(rrr);
  
        }
      }
      catch(SQLException e)
      {
          System.out.println(e);
      }
  }
  </code></pre>