title: SQLite query from multiple tables using SQLiteDatabase
body: <p>I have 2 tables in my database, for example: <code>Table1: id (PK), data1</code> and <code>Table2: id (PK), id_table1 (FK), data2</code>. How can I make a query like that: </p>
  
  <pre><code>SELECT * FROM Table1, Table2 WHERE Table1.id = Table2.id_table1 
  GROUP BY Table1.data1
  </code></pre>
  
  <p>I'm using <code>SQLiteDatabase</code> and its <code>query()</code> method.</p>
  
  <pre><code>Cursor mCursor = db.query(true, new String[] {"Table1","Table2"}, 
  new String[] {"Table1.id","data1", "Table2.id", "id_table1", "data2"},
  "Table1.id=Table2.id_table1", null, "Table1.data1", null,null,null);
  </code></pre>
  
  <p>But there's a problem with the second arg - it's only possible to use String, not String[] (like <code>new String[] {"Table1","Table2}</code>). What should I do to make a query from multiple tables in that way?</p>