Ultimate version SQL tables

In the ultimate version, in which table can we find the information about which store is used or not ?



As I check directly in the SQL database, if I want to find an order from the shop #1, which table have I to check for this ?