lahmanlite/sql/seasons.sql

8 lines
132 B
PL/PgSQL

begin;
create table if not exists "seasons" (
"year" text
);
insert into seasons select distinct yearID from appearances;
commit;