Aggregated Data Table Structure

1. Table Columns

FieldTypeNullKeyDefaultExtra
sparkle_idbigint(20)NOPRIauto_increment
parent_companies-namevarchar(44)YES
parent_companies-qidvarchar(18)YES
companies-child_company_namevarchar(30)YES
companies-qidvarchar(18)YES
companies-idbigint(20)YES
typevarchar(12)YES
item_company_idbigint(20)YES
ticket_iddoubleYES
action_atdatetimeYES
action_at_date_in_tzdatetimeYES
scheduled_attextYES
scheduled_at_date_in_tztextYES
created_atdatetimeYES
created_at_date_in_tzdatetimeYES
item_start_atdatetimeYES
item_start_at_date_in_tzdatetimeYES
adjustment_iddoubleYES
item_iddoubleYES
item_typevarchar(20)YES
item_labelvarchar(50)YES
item_classvarchar(62)YES
item_quantitydoubleYES
item_employee_iddoubleYES
item_employee_namevarchar(30)YES
item_client_iddoubleYES
item_client_namevarchar(48)YES
item_client_emailvarchar(70)YES
item_client_mobile_phonevarchar(28)YES
item_client_home_phonevarchar(28)YES
item_client_work_phonevarchar(28)YES
item_child_iddoubleYES
item_child_labelvarchar(52)YES
item_child_secondary_labelvarchar(68)YES
item_child_is_deceasedvarchar(10)YES
sourcevarchar(16)YES
appt_statustextYES
service_durationtextYES
appt_idtextYES
days_since_last_appointmenttextYES
client_appointment_ranktextYES
item_amounttextYES
item_amount_before_discounttextYES
discount_amounttextYES
sub_item_iddoubleYES
sub_item_typevarchar(32)YES
sub_item_labelvarchar(32)YES
sub_item_classvarchar(58)YES
category_idtextYES
category_typetextYES
category_labeltextYES
category_classtextYES
in_membershipvarchar(8)YES
in_packagevarchar(10)YES
usage_amounttextYES
usage_original_amounttextYES
gift_cards_prepaid_amounttextYES
item_return_iddoubleYES
refund_amountdoubleYES
item_edit_idtextYES
edit_amounttextYES
edit_amount_before_discounttextYES
item_tax_idtextYES
tax_amounttextYES
payment_item_idtextYES
payment_idtextYES
payment_typetextYES
payment_labeltextYES
payment_classtextYES
payment_amounttextYES
payment_amount_collectedtextYES
payment_hold_amounttextYES
payment_deposittextYES
payment_charged_attextYES
payment_statustextYES
time_zonedatetimeYES
location_iddoubleYES
ticket_uuidvarchar(16)YES
ticket_raw_statusdoubleYES
ticket_statusvarchar(12)YES
ticket_closed_atdatetimeYES
ticket_closed_at_date_in_tzdatetimeYES
locations-qidvarchar(18)YES
location_nicknamevarchar(30)YES
location_store_idvarchar(14)YES
location_entity_idtextYES
location_street_addressvarchar(48)YES
location_street_address_2varchar(18)YES
location_zip_codebigint(20)YES
location_cityvarchar(30)YES
location_statevarchar(4)YES
location_time_zonedatetimeYES
location_resource_counttextYES
employees-qidvarchar(18)YES
employee_namevarchar(26)YES
ticket_client_iddoubleYES
ticket_client_walk_indoubleYES
ticket_client_namevarchar(46)YES
ticket_client_emailvarchar(70)YES
import_datedateNOMUL
import_timestamptimestampYESMULcurrent_timestamp()

2. Sample Data (5 rows)

sparkle_idparent_companies-nameparent_companies-qidcompanies-child_company_namecompanies-qidcompanies-idtypeitem_company_idticket_idaction_ataction_at_date_in_tzscheduled_atscheduled_at_date_in_tzcreated_atcreated_at_date_in_tzitem_start_atitem_start_at_date_in_tzadjustment_iditem_iditem_typeitem_labelitem_classitem_quantityitem_employee_iditem_employee_nameitem_client_iditem_client_nameitem_client_emailitem_client_mobile_phoneitem_client_home_phoneitem_client_work_phoneitem_child_iditem_child_labelitem_child_secondary_labelitem_child_is_deceasedsourceappt_statusservice_durationappt_iddays_since_last_appointmentclient_appointment_rankitem_amountitem_amount_before_discountdiscount_amountsub_item_idsub_item_typesub_item_labelsub_item_classcategory_idcategory_typecategory_labelcategory_classin_membershipin_packageusage_amountusage_original_amountgift_cards_prepaid_amountitem_return_idrefund_amountitem_edit_idedit_amountedit_amount_before_discountitem_tax_idtax_amountpayment_item_idpayment_idpayment_typepayment_labelpayment_classpayment_amountpayment_amount_collectedpayment_hold_amountpayment_depositpayment_charged_atpayment_statustime_zonelocation_idticket_uuidticket_raw_statusticket_statusticket_closed_atticket_closed_at_date_in_tzlocations-qidlocation_nicknamelocation_store_idlocation_entity_idlocation_street_addresslocation_street_address_2location_zip_codelocation_citylocation_statelocation_time_zonelocation_resource_countemployees-qidemployee_nameticket_client_idticket_client_walk_inticket_client_nameticket_client_emailimport_dateimport_timestamp
23994Sparkle Grooming Corp.qid141656Sparkle - 48002qid143134143134edit143134434376822025-08-11 20:21:552025-08-11 00:00:002025-08-11 18:00:002025-08-11 00:00:002025-08-06 23:57:012025-08-06 00:00:00NULLNULL13270582097896260AppointmentThe Essentials (Non-Member)SlotVariationNULL306655Kwatrelle B.22906830chloe smart9py2b2kcvs@privaterelay.appleid.com(509) 591-1688NULLNULL3102201CaboCockapooFalsein_storecompleted45.065453588.062.04.0NULLNULLNULLNULLNULLNULLNULL265356.0Service CategoryNon-MembersDealFalseFalseNULLNULLNULLNULLNULL106039715.065.065.0NULLNULLNULLNULLNULLNULLNULLNULLNULLNULLNULLNULLNULL2026-04-16 18:02:30158462MYOHJIE21closed2025-08-11 20:21:552025-08-11 00:00:00qid158462Scottsdale SheaUS48002NULL10392 N Scottsdale RdSuite 10185254ScottsdaleAZ2026-04-16 18:02:30NULLqid306655Kwatrelle B.229068300chloesmart9py2b2kcvs@privaterelay.appleid.com2026-04-162026-04-16 04:02:30
28515Sparkle Grooming Corp.qid141656Sparkle - 48002qid143134143134edit143134434367162025-08-11 19:55:192025-08-11 00:00:002025-08-11 18:00:002025-08-11 00:00:002025-08-11 18:01:282025-08-11 00:00:00NULLNULL13270174298076100AppointmentHypoallergenic TreatmentSlotVariationNULL307595Maddy W.23645622Laura WesleyJasonwesley@cox.net(602) 793-0907(602) 793-0906NULL3331998JaxsonJack Russell TerrierFalsein_storecompleted1.065529404.016.02.0NULLNULLNULLNULLNULLNULLNULL263954.0Service CategoryPamper + ProtectDealFalseFalseNULLNULLNULLNULLNULL106036135.010.010.0NULLNULLNULLNULLNULLNULLNULLNULLNULLNULLNULLNULLNULL2026-04-16 18:02:31158462CAINP8Z51closed2025-08-11 19:55:192025-08-11 00:00:00qid158462Scottsdale SheaUS48002NULL10392 N Scottsdale RdSuite 10185254ScottsdaleAZ2026-04-16 18:02:31NULLqid307595Maddy W.236456220LauraWesleyJasonwesley@cox.net2026-04-162026-04-16 04:02:32
32569Sparkle Grooming Corp.qid141656Sparkle - 48002qid143134143134edit143134433653612025-08-11 17:55:532025-08-11 00:00:002025-08-11 17:30:002025-08-11 00:00:002025-08-08 18:56:042025-08-08 00:00:00NULLNULL13240501397971814AppointmentPlaque Reduction TreatmentSlotVariationNULL300465Megan K.23096008Alison Collinsalison@collinsaz.com(602) 743-4675NULLNULL3129200RileyBoston TerrierFalseonlinecompleted0.065502418.035.04.0NULLNULLNULLNULLNULLNULLNULL263952.0Service CategoryAdd-onsDealFalseFalseNULLNULLNULLNULLNULL106021749.012.015.0NULLNULLNULLNULLNULLNULLNULLNULLNULLNULLNULLNULLNULL2026-04-16 18:02:33158462G38OS4CI1closed2025-08-11 17:55:532025-08-11 00:00:00qid158462Scottsdale SheaUS48002NULL10392 N Scottsdale RdSuite 10185254ScottsdaleAZ2026-04-16 18:02:33NULLqid300465Megan K.230960080AlisonCollinsalison@collinsaz.com2026-04-162026-04-16 04:02:33
33723Sparkle Grooming Corp.qid141656Sparkle - 48002qid143134143134edit143134434376822025-08-11 20:21:552025-08-11 00:00:002025-08-11 18:00:002025-08-11 00:00:002025-08-11 18:27:222025-08-11 00:00:00NULLNULL13270582198077846AppointmentHaircutSlotVariationNULL306655Kwatrelle B.22906830chloe smart9py2b2kcvs@privaterelay.appleid.com(509) 591-1688NULLNULL3102201CaboCockapooFalsein_storecompleted45.065453588.062.04.0NULLNULLNULLNULLNULLNULLNULL263955.0Service CategoryAdd Style or ComfortDealFalseFalseNULLNULLNULLNULLNULL106039716.060.060.0NULLNULLNULLNULLNULLNULLNULLNULLNULLNULLNULLNULLNULL2026-04-16 18:02:33158462MYOHJIE21closed2025-08-11 20:21:552025-08-11 00:00:00qid158462Scottsdale SheaUS48002NULL10392 N Scottsdale RdSuite 10185254ScottsdaleAZ2026-04-16 18:02:33NULLqid306655Kwatrelle B.229068300chloesmart9py2b2kcvs@privaterelay.appleid.com2026-04-162026-04-16 04:02:33
41362Sparkle Grooming Corp.qid141656Sparkle - 48002qid143134143134service143134432084242025-08-02 16:00:512025-08-02 00:00:002025-08-11 21:15:002025-08-11 00:00:002025-08-02 16:00:422025-08-02 00:00:00NULLNULL13181918497691261AppointmentTrimSlotVariation1300465Megan K.23226568Matthew Mansholtmattmansholt@yahoo.com(661) 208-6731NULLNULL3193459Azura Mix Medium (Short Hair)Falseonlinecanceled_by_consumer20.065317228.0NULLNULL0.00.0NULLNULLNULLNULLNULL263952.0Service CategoryAdd-onsDealFalseFalse0.0NULL0.0NULLNULLNULL0.00.0NULLNULLNULLNULLNULLNULLNULLNULLNULLNULLNULLNULLNULL2026-04-16 18:02:36158462HLM7C4H62voidNULLNULLqid158462Scottsdale SheaUS48002NULL10392 N Scottsdale RdSuite 10185254ScottsdaleAZ2026-04-16 18:02:36NULLqid300465Megan K.232265680MatthewMansholtmattmansholt@yahoo.com2026-04-162026-04-16 04:02:36

3. Key Field Values

Unique values in 'appt_status':

Unique values in 'payment_type':

Unique values in 'item_child_label':

Unique values in 'client_membership_status':


Fatal error: Uncaught mysqli_sql_exception: Unknown column 'client_membership_status' in 'SELECT' in /home2/dataforsparkle/public_html/reports/explore-aggregated-table.php:70 Stack trace: #0 /home2/dataforsparkle/public_html/reports/explore-aggregated-table.php(70): mysqli_query(Object(mysqli), 'SELECT DISTINCT...') #1 {main} thrown in /home2/dataforsparkle/public_html/reports/explore-aggregated-table.php on line 70