Thursday, 27 October 2016
  7 Replies
  1.3K Visits
0
Votes
Undo
Hi Team,

I've got one of the users who wants to export all users who have attended a particular Event over the last couple of years. Is that possible? Please advise what syntax should I use in mySQL to extract the username and email address. The event has the same name every time they have it.

Thank you.

Best wishes,
Sathesh.
Thursday, 27 October 2016 11:03
·
#177749
0
Votes
Undo
So its not the same event - is a sequence of 'unrelated' events with the same title?

That isn't trivial I'm afraid. Assuming they are not repeating events with separate signups per event

Something like this MAY

SELECT atdees.*, atdce.id, det.evdet_id FROM onjqe_jev_attendees as atdees
INNER JOIN onjqe_jev_attendance as atdce on atdees.at_id = atdce.id
INNER JOIN onjqe_jevents_vevent as evt on atdce.ev_id = evt.ev_id AND atdce.allrepeats = 1
INNER JOIN onjqe_jevents_vevdetail as det on evt.detail_id = det.evdet_id
WHERE det.summary = 'test'

JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!

Wednesday, 02 November 2016 09:50
·
#178088
0
Votes
Undo
Yes, they are not the same event, but same title. Nope, they aren't repeating events :)

Will try and let you know. Thank you.
Thursday, 03 November 2016 07:58
·
#178131
0
Votes
Undo
Thanks Geraint.

If I wanted to extract from a postcode range?
Thursday, 03 November 2016 10:04
·
#178137
0
Votes
Undo
Unfortunately the custom field data for each attendee is stored in a combined text field in JSON format so extracting entries based on a range of values of a specific field is going to be very hard (unless you are using MySQL 5.7+) - even then it would be slow and only work if you use the same session template for each of these events.

JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!

Thursday, 03 November 2016 23:00
·
#178172
0
Votes
Undo
oh..ok.. Thank you. We'll have to think of ways to do data extraction, I guess.... :D
Sunday, 13 November 2016 00:00
·
#178643
0
Votes
Undo
SELECT atdees.*, atdce.id, det.evdet_id FROM onjqe_jev_attendees as atdees
INNER JOIN onjqe_jev_attendance as atdce on atdees.at_id = atdce.id
INNER JOIN onjqe_jevents_vevent as evt on atdce.ev_id = evt.ev_id AND atdce.allrepeats = 1
INNER JOIN onjqe_jevents_vevdetail as det on evt.detail_id = det.evdet_id
WHERE det.summary = 'test'


The thing with this code is that....it extracts from the entire system, all event creators. If I wanted it from just one particular event creator? Possible?
Monday, 14 November 2016 09:59
·
#178671
0
Votes
Undo
where evt.created_by = 12

JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!

  • Page :
  • 1
There are no replies made for this post yet.

Members Area

Show your support

Unlike many Joomla calendars we do not charge to download JEvents - please show your support for this project by becoming a member of the JEvents Club Club members get access to early releases, exclusive member support forums, and Silver and Gold members can use many exciting JEvents addons

Your membership will ensure that JEvents continues to be the best events calendar for Joomla.