LoslegenKostenlos loslegen

Learning more about a table's columns

There have been some performance issues and the team wanted to know if you could investigate the coffee county weather table to see if you could identify what is going on. You decided you wanted to check for any DISTKEY or SORTKEYs that might be on the table.

Diese Übung ist Teil des Kurses

Introduction to Redshift

Kurs anzeigen

Anleitung zur Übung

  • Select the column_name, distkey and sortkey from the SVV_REDSHIFT_COLUMNS system view for the public_intro_redshift.coffee_county_weather table

Interaktive Übung

Versuche dich an dieser Übung, indem du diesen Beispielcode vervollständigst.

-- View the distkey and sortkey status of each column
SELECT column_name, 
       ___, 
       ___
  -- Use the proper system view
  FROM ___ 
 -- Only in the proper schema
 WHERE schema_name = '___'
       -- For the proper table
       AND table_name = '___';
Code bearbeiten und ausführen