I’m developing an Android 3.1 application.
I have the following tables:
FormBlock
---------
FormId (INTEGER) FOREIGN KEY TO Form.id
BlockId (INTEGER) FOREIGN KEY TO Block.id
Block
----------
id (INTEGER) PRIMARY KEY
name (TEXT) NOT NULL
orderInForm (INTEGER) NOT NULL
And I want to do the following select:
SELECT block.blockId, block.name, block.orderInForm FROM Block, FormBlock WHERE FormBlock.FormId = 1 AND block.blockId = FormBlock.blockId;
How can I do that select statement with SQLiteDatabase.query(…) or rawQuery()?
as
queryisif the
1is dynamic then