Home News Contact Us Forum About Us Demos Products F.A.Q.
Shopping Cart
You currently have 0 items in your cart.


Recent Events
  • 31/12/2023 New Year SALE

    We are glad to announce New Year SALE. 25% discount for all our extensions. Use NY24 coupon code. Hurry up the discount is valid till 7 January.

  • 21/11/2023 BLACK FRIDAY 23 is coming

    BIG SALE, 35% discount for all our extensions. Use BF23 coupon code. Hurry up the discount is valid till 27 November.


2Checkout.com, Inc. is an authorized retailer of goods and services provided by ARI Soft. 2CheckOut




Follow us on twitter



Welcome, Guest
Please Login or Register.    Lost Password?

Problem making the module work
(1 viewing) (1) Guest
Go to bottomPage: 12345678
TOPIC: Problem making the module work
#59274
Re:Problem making the module work 7 Years, 3 Months ago Karma: 0
according to the picture

Last Edit: 2016/12/22 10:19 By mkcup.
The administrator has disabled public write access.
 
#59275
Re:Problem making the module work 7 Years, 3 Months ago Karma: 747
tc1 and tc4 fields are selected in "SELECT" query where "GROUP BY" is used. It selects one record per user according to "GROUP BY" condition. If an aggregate function is not used for a field in "SELECT" query, any value can be selected from record for a user. For example if you want to select MAX value for tc1 field, use MAX aggregate function. It will look like MAX(tc1) as max instead of tc1

Regards,
ARI Soft
The administrator has disabled public write access.
 
#59276
Re:Problem making the module work 7 Years, 3 Months ago Karma: 0
Hello
Thanks for the advice I used min (TC1) and min (TC4)
still shows wrong.
Sending code please check what I'm doing wrong.
Thanks

code:
SELECT Datum,Kára,min,tc2,avatar,username,@curRank := @curRank + 1 AS Rank
FROM
(SELECT min(a.tc1) AS Datum, min(a.tc4) AS Kára, min(a.tc5) AS min, a.tc2, b.avatar, c.username, @curRank := @curRank + 0 AS Rank
FROM
sbhgl_chronoengine_chronoforms_datatable_treningove_casy a INNER JOIN
sbhgl_jsn_users b ON a.user_id=b.id INNER JOIN
sbhgl_users c ON a.user_id=c.id, (SELECT @curRank := 0) r
WHERE a.tc2 LIKE 'Motokáry Modrice'
GROUP BY a.user_id
ORDER BY min ASC) T
Last Edit: 2016/12/22 10:55 By mkcup.
The administrator has disabled public write access.
 
#59277
Re:Problem making the module work 7 Years, 3 Months ago Karma: 747
This problem with DB field types. It is stored as string instead of date time (for example for tc1 column).

Regards,
ARI Soft
The administrator has disabled public write access.
 
Go to topPage: 12345678