openstates-sqlite/export_csv.sql
2024-09-18 12:45:53 -05:00

5 lines
213 B
SQL

.headers on
.mode csv
.output legislators.csv
select name, given_name, family_name, gender, party, jurisdiction, r.district, r.type from person join personrole r on r.person_id=person.id where r.end_date is null;