D
D
denism3002016-07-27 12:48:17
SQL
denism300, 2016-07-27 12:48:17

How to remake a SQL query according to the JDatabaseHelper Joomla 3 constructor?

I have a query like:

SELECT IF ((SELECT SUM ('field_1) FROM ('table_1')) = (SELECT SUM ('field_2) FROM ('table_2')), 1, 0)

how to compose it according to JDatabaseHelper constructor?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question