I have this Query MtDispositivo.where("id_conta = ?", "28")
which returns all the accounts that have ID_CONTA = 28 .
Below I have these other Queries that return me same result that are accounts with ID_CONTA
tal.
MtDispositivo.where("id_conta = ?", "29")
MtDispositivo.where("id_conta = ?", "30")
MtDispositivo.where("id_conta = ?", "36")
I need to do a Query with all these IDS_CONTAS
to return all accounts that contain only these IDs: 28 , 29 , 30 > and 36 .
And then I need to add a Download session, where these accounts will be downloaded in Excel.
Can you help me? Did you understand the question?
I have a Device called MtDispository where it stores all accounts.
I need to make a Query with these ID_CONTAS: 28, 29, 30 e 36
that return these accounts.
When I made MtDispositivo.where("id_conta = ?", "29")
it returns only accounts that contain ID_CONTA 29
.
Instead of doing one-on-one rendering of a Query where I can get all the results from multiple IDS instead.
They are the IDS: 28, 29, 30 and 36.