LT_NSCAN_ATTENDANCE

Hi,

I'm trying to work out the logic and meaning behind some of the fields in LT_NSCAN_ATTENDANCE, as some of the data in our table doesn't seem to make sense.  In particular, does anyone know the logic behind the ticket_updated and exit_logged fields?

If ticket_updated is 'Y' does that mean that this physical database row has been updated, so if exit_logged now says 'Out' did it previously say 'In'?  Also if exit_mode is 'N' then how can exit_logged still be set as 'Out'?

If anyone is able to help, or point me in the direction of some documentation, it would be greatly appreciated!

  • I think Exit Mode just refers to what state the scanner was in when the ticket was scanned.

    I would look at a specific ticket number that has the info on there to see the pattern of what is happening. This is what I did to try and understand the logic when I was writing some reports for FOH.

    From memory, it writes a new line to that table for each event that happens, so you will get a line for the first scan in, a line for the scan out, and a line for the scan back in again.

     

    Caryl

  • Thanks Caryl,

    I have tried to track through like that and some seem to make sense, however there are other cases where it doesn't.  Case in point, The ticket_update on one line says 'Y', the exit_mode is 'N', but the exit_logged is 'Out'.  How can it scan 'Out' if it isn't in exit_mode?!?

    Its important that I get accurate figures so that we can monitor attendance at General Adminission events so we don't go over our insurance / H&S occupancy limit...

  • Former Member
    Former Member $organization

    Does it have anything to do with people exiting the venue mid-performance, being scanned on the way out, and then perhaps re-scanned when they come back in?  I believe we do that for emergency purposes so that we have a constantly updated count of people who are actually in the venue.  Some people will arrive, get scanned in, but then have to leave early, or they exit the venue to get some refreshments, so we scan them out….those who do not come back are never scanned back in, those who come back in later are re-scanned as being in the venue.

     

    Not sure…just some random ideas…

     

     

    Penny Tabor

    IT Manager

    Midland Center for the Arts

    Midland, MI 48640    

                                         Description: Comptia                                              

     

     

     

     

    From: Tessitura Technical Forum [mailto:forums-technical@tessituranetwork.com] On Behalf Of Simon Davidson
    Sent: Wednesday, July 25, 2012 4:05 PM
    To: Tabor, Penny
    Subject: Re: [Tessitura Technical Forum] LT_NSCAN_ATTENDANCE

     

    Thanks Caryl,

    I have tried to track through like that and some seem to make sense, however there are other cases where it doesn't.  Case in point, The ticket_update on one line says 'Y', the exit_mode is 'N', but the exit_logged is 'Out'.  How can it scan 'Out' if it isn't in exit_mode?!?

    Its important that I get accurate figures so that we can monitor attendance at General Adminission events so we don't go over our insurance / H&S occupancy limit...

    From: Caryl Jones <bounce-caryljones3976@tessituranetwork.com>
    Sent: 7/25/2012 9:04:43 AM

    I think Exit Mode just refers to what state the scanner was in when the ticket was scanned.

    I would look at a specific ticket number that has the info on there to see the pattern of what is happening. This is what I did to try and understand the logic when I was writing some reports for FOH.

    From memory, it writes a new line to that table for each event that happens, so you will get a line for the first scan in, a line for the scan out, and a line for the scan back in again.

     

    Caryl




    This message was sent automatically to you by www.tessituranetwork.com because you subscribed to the Tessitura Technical Forum. You may reply to this message to post to the Technical forum or visit the site to search, read and post to the forums. In the interest of keeping the forum posts from becoming cluttered, we encourage you to delete previous message text from your reply before sending. Thank you!

  • Hi Simon,

     

    Here’s a bit of technical background.

     

    1.       When N-Scan first scans a ticket in, that barcode creates a row in LT_NSCAN_ATTENDANCE. For the purpose of future scans of the same barcode number, LT_NSCAN_ATTENDANCE, and the procedure that writes to it (LRP_NSCAN_TICKET_INFO) uses that original row as a “control record” to compare to. This row has a ticket_update status of “Y”, an exit_mode status of “N” and an exit_logged status of “N” (the default for any barcode).

    2.       When you exit-scan a barcode that has already been scanned in, a new row is  created in LT_NSCAN_ATTENDANCE with a ticket_update status of “Y”, an exit_mode of “Y” and an exit_logged of “Out.”

    a.       in addition to/ this new record, the procedure also updates  the exit_dt of the control record with the update_dt of the new row and sets the exit_logged status of the control record to “Out.”

    3.       If the same barcode is scanned back in, then a new row is written to LT_NSCAN_ATTENDANCE with a ticket_update status of “Y”, an exit_mode of “N” and an exit_logged of “In.”

    a.       At the same time, the control record – the original barcode – is updated with an exit_dt equal to the update_dt of the row for barcode being scanned back in, and its exit_logged status is changed to “In”.  

    b.      It’s possible to see this happening by looking at the update_dt of the in/out scan records and comparing those to the exit_dt of the original scan:

    select ticket_no,update_dt,ticket_ok,ticket_msg,ticket_updated,exit_mode,exit_dt,

    exit_logged from lt_nscan_attendance

                   where ticket_no in (select ticket_no from lt_nscan_attendance where exit_logged = 'Out')

                   order by ticket_no, update_dt

     

    This is why you can have a record that appears to have contradictory information (exit_mode = ‘N’ but exit_logged = ‘Out’). In short, what you want to look at is the exit_logged status – if it’s ‘N’, that was a ticket that scanned in and never left; if it’s ‘In’, it’s a ticket that was scanned in, left and came back; an ‘Out’ scanned in, left and was not scanned back in.

     

    I should note that for attendance-counting purposes, reports in Tessitura don’t count scans out and back in as depleting or adding to the number attending. If you want “total scans in, net of scans out” you’ll have to do a real-time calculation of the number of unique barcodes with exit_logged status of ‘N’ or ‘In’ less the unique number of barcodes with exit_logged status of ‘Out.’  

     

    Hope this helps!

     

    Jonathan

     

  • Hi Jonathan,

    Thanks for explaining this, you've been a great help!

  • With the latest version of N-Scan.  Has anyone worked out how to change reports to use the new T_Attendance table to report what one previously got from the table: LT_NSCAN_ATTENDANCE?

    I've got an old report that used this table that I want to re-do.

  • Tom:

    There’s more than just one attendance-recording table these days. T_ATTENDANCE is the “sanitized” version of attendance data- it records the actual, successful attendance scans. If you’re looking for the raw data that goes with every attempt to scan a ticket, the table you’ll want to query is T_NSCAN_EVENT_CONTROL. Everything that’s T_ATTENDANCE is in T_NSCAN_EVENT_CONTROL, but not vice versa.

     

  • ... speaking of T_NSCAN_EVENT_CONTROL. I've tried to find some documentation to explain what the different status mean. What is the difference between 'C', 'I' and 'N', that all appear on tickets with ticket_msg = 'OK'?

    (if there are more than 'C','I','N' AND 'X') i'd like to know what they mean as well.

    Thanks