Skip to main content
All CollectionsBI
Operating Guide: Creating a Query Incorporating Serial Numbers
Operating Guide: Creating a Query Incorporating Serial Numbers
Alex Merkin avatar
Written by Alex Merkin
Updated over 7 months ago

To create a query incorporating serial numbers, follow these steps:

  1. Select Data from the Sessions Table Start by selecting the relevant data from the Sessions table, such as Session ID, Start Time, etc.

  2. Join to the Session Stocks Table To find which records are associated with a particular session, perform a JOIN between the Sessions table and the Session Stocks table using the Session ID. This will allow you to link the records in the Session Stocks table with the corresponding sessions in the Sessions table.

  3. Join Results to the Stock Table Perform an additional JOIN between the Session Stocks table and the Stock table using the Stock ID. This will allow you to retrieve additional details about the devices, such as serial numbers, device names, etc.

After completing these three steps, you will be able to retrieve the serial numbers of the devices associated with specific sessions, along with additional details about the sessions and devices.

Did this answer your question?