Reference organizational listings in queries

Note

Organizational listings can be queried without mounting.

To reference an organizational listing’s datasets in a SQL query, use the Uniform Listing Locator (ULL). The ULL serves as a unique identifier that points to a listing in the Internal Marketplace, making it easy to query its datasets directly. If the listing is published in a different region, see Query a listing from another region.

ULL format

A ULL has this format:

ORGDATACLOUD$<organization_profile_name>$<listing_name>
  • ORGDATACLOUD: Fixed prefix for all organizational listings.
  • <organization_profile_name>: The organization profile that published the listing (for example, INTERNAL).
  • <listing_name>: The listing name.

Separate the parts of a ULL with dollar signs ($). A ULL takes the place of a database name in a query. To reference an object in the listing, add the schema and object names with periods, for example ORGDATACLOUD$INTERNAL$MY_LISTING.my_schema.my_table.

Copy the exact ULL from Snowsight (Copy ULL) instead of building it by hand.

  1. Sign in to Snowsight.
  2. In the navigation menu, select Catalog » Internal Marketplace.
  3. Browse or search for a data product.
  4. Select a listing and select Copy ULL.
  5. In the navigation menu, select Projects » Notebooks or another project tool.
  6. Write a SQL query, using the ULL in place of the database name.