The driver models the data in Slack into a list of tables that can be queried using standard SQL statements.
Generally, querying Slack tables is the same as querying a table in a relational database. Sometimes there are special cases, for example, including a certain column in the WHERE clause might be required to get data for certain columns in the table. This is typically needed for situations where a separate request must be made for each row to get certain columns. These types of situations are clearly documented at the top of the table page linked below.
CData ODBC Driver for Slack Tables
|Calls||Register,update,end or return information about a Call.|
|Channels||Create, update, and query the available channels in Slack.|
|Files||Query and delete team files.|
|MessageReplies||Create, update, delete, and query threads of messages posted to a conversation.|
|Messages||Create, update, delete, and query the available messages in Slack.|
|Pins||Create, delete, and query all items pinned to a channel.|
|Reactions||Create, delete, and query reactions on items.|
|Reminders||Create, delete, and query all reminders by or for a given user.|
|Stars||Create,List or Delete a user's saved items.|
|UserGroups||Create, update, and query all User Groups for a Slack team.|
|Users||Update and query all users for a Slack team.|