Holiday Notice – Support Unavailable on April 18 and April 21
We just wanted to let you know that our support team will be offline on Friday, April 18th (Good Friday) and Monday, April 21st (Easter Monday) due to the holidays.
We'll be back on Tuesday, ready to assist you!
In the meantime, if you need any help, feel free to:
-
Use the support widget in the bottom right corner on our websites (Amelia and wpDataTables) — our latest AI-powered assistant is there 24/7 to help with basic and intermediate questions,
-
Browse our detailed documentation (Amelia, wpDataTables)
-
Explore helpful articles,
-
Or check out our YouTube channels for video guides!
Amelia YouTube Channel
wpDataTables YouTube Channel
Thank you for your understanding, and we wish you a wonderful holiday weekend!
Hello
This query works in phpMyAdmin, вut it gives empty table in the plugin
select le.id, lead_id,
(select value from wp_rg_lead_detail f where f.lead_id = l.lead_id and f.field_number = 34 ) strah,
(select value from wp_rg_lead_detail f where f.lead_id = l.lead_id and f.field_number = 37 ) naim,
(select value from wp_rg_lead_detail f where f.lead_id = l.lead_id and f.field_number = 36 ) inn
from wp_rg_lead_detail l, wp_rg_lead le
WHERE l.lead_id = le.id
AND status='active'
AND l.form_id = '12' or l.form_id = '18' or l.form_id = '14' or l.form_id = '15' or l.form_id = '16' or l.form_id = '17'
group by lead_id
Wow!
This code works!
select le.id, lead_id,
(select value from wp_rg_lead_detail f where f.lead_id = l.lead_id and f.field_number = 34 ) strah,
(select value from wp_rg_lead_detail f where f.lead_id = l.lead_id and f.field_number = 37 ) naim,
(select value from wp_rg_lead_detail f where f.lead_id = l.lead_id and f.field_number = 36 ) inn
from wp_rg_lead_detail l, wp_rg_lead le
WHERE l.lead_id = le.id
AND status='active'
AND l.form_id in('12','18' ,'14' ,'15' ,'16' ,'17')
group by lead_id
Hi Alex,
Thank you for the purchase and sorry for delayed replay.
I am glad that you have found the solution. My recommendation is when you have complex queries to create MySQL View from that query in the database and then to use this MySQL View as table input.