Problem with sql sentence
- Daniel
- Offline
- Administrator
-
07 Oct 2016 15:02 #3206
by Daniel
Thanks
Daniel
Replied by Daniel on topic Problem with sql sentence
Hello,
Please share your backend & FTP login credentials via Contact us form, We'll look into it.
Please share your backend & FTP login credentials via Contact us form, We'll look into it.
Thanks
Daniel
Please Log in to join the conversation.
- Denise Bru
- Topic Author
- Offline
- Junior Member
-
Less
More
- Posts: 23
07 Oct 2016 14:18 #3204
by Denise Bru
Replied by Denise Bru on topic Problem with sql sentence
Ye, of course.
I'm making a new chart.
Data are in table but is imposible with options read correct data. Then I have to write sql sentence.
This. sql is running OK in mysql but no in vchart WHY??
SELECT (CASE WHEN p1_ret_realizados < 8 THEN 'Menos de 8 Retos' WHEN p1_ret_realizados >= 8 THEN '8 o más Retos' END) as tipo, count( p1_ret_realizados) as valor FROM hs_historico_datos where co_estadistica=1 and p1_ret_realizados != "" group by tipo order by tipo
VChart change case 1 "<8" for "=8" and delete case ">=9"
I need this sql but i you think that is posible do it using other way tell me. please.
I'm making a new chart.
Data are in table but is imposible with options read correct data. Then I have to write sql sentence.
This. sql is running OK in mysql but no in vchart WHY??
SELECT (CASE WHEN p1_ret_realizados < 8 THEN 'Menos de 8 Retos' WHEN p1_ret_realizados >= 8 THEN '8 o más Retos' END) as tipo, count( p1_ret_realizados) as valor FROM hs_historico_datos where co_estadistica=1 and p1_ret_realizados != "" group by tipo order by tipo
VChart change case 1 "<8" for "=8" and delete case ">=9"
I need this sql but i you think that is posible do it using other way tell me. please.
Please Log in to join the conversation.
- Daniel
- Offline
- Administrator
-
07 Oct 2016 11:08 #3201
by Daniel
Thanks
Daniel
Replied by Daniel on topic Problem with sql sentence
Hi,
couldn't understand what you actually mean. Can you please explain the problem you are having?
couldn't understand what you actually mean. Can you please explain the problem you are having?
Thanks
Daniel
Please Log in to join the conversation.
- Denise Bru
- Topic Author
- Offline
- Junior Member
-
Less
More
- Posts: 23
07 Oct 2016 10:50 #3200
by Denise Bru
Replied by Denise Bru on topic Problem with sql sentence
Pardon in sql sentence can not change NOT equal.
Look
SELECT (CASE WHEN p1_ret_realizados < 8 THEN 'Menos de 8 Retos' WHEN p1_ret_realizados >= 8 THEN '8 o más Retos' END) as tipo, count( p1_ret_realizados) as valor FROM hs_historico_datos where co_estadistica=1 and p1_ret_realizados != "" group by tipo order by tipo
The problem is <8 and >= 8
Look
SELECT (CASE WHEN p1_ret_realizados < 8 THEN 'Menos de 8 Retos' WHEN p1_ret_realizados >= 8 THEN '8 o más Retos' END) as tipo, count( p1_ret_realizados) as valor FROM hs_historico_datos where co_estadistica=1 and p1_ret_realizados != "" group by tipo order by tipo
The problem is <8 and >= 8
Please Log in to join the conversation.
- Zaheer Abbas
- New Member
-
Less
More
02 Jul 2016 06:19 #2840
by Zaheer Abbas
Replied by Zaheer Abbas on topic Problem with sql sentence
Hi Denise
You have to use not equal option in sql query writing section. I have explained in attach image.
Thanks
Zaheer
You have to use not equal option in sql query writing section. I have explained in attach image.
Thanks
Zaheer
- Denise Bru
- Topic Author
- Offline
- Junior Member
-
Less
More
- Posts: 23
01 Jul 2016 12:11 #2837
by Denise Bru
Problem with sql sentence was created by Denise Bru
Hello I need tell to sql sentence this
where field <> ''
how can i do it??
Thanks
where field <> ''
how can i do it??
Thanks
Please Log in to join the conversation.