CREATE TABLE finrev_fed_17 (state_code DECIMAL, idcensus DECIMAL, school_district TEXT, nces_id TEXT, yr_data DECIMAL, t_fed_rev DECIMAL, c14 DECIMAL, c25 DECIMAL)
CREATE TABLE ndecoreexcel_math_grade8 (year DECIMAL, state TEXT, all_students TEXT, average_scale_score DECIMAL)
CREATE TABLE finrev_fed_key_17 (state_code DECIMAL, state TEXT)

Which state get the highest revenue?
SELECT T2.state FROM finrev_fed_key_17 AS T2 JOIN finrev_fed_17 AS T1 ON T1.state_code = T2.state_code GROUP BY T2.state ORDER BY SUM(t_fed_rev) DESC LIMIT 1
SELECT "T2"."state" FROM "finrev_fed_key_17" AS "T2" JOIN "finrev_fed_17" AS "T1" ON "T1"."state_code" = "T2"."state_code" GROUP BY "T2"."state" ORDER BY SUM("t_fed_rev") DESC NULLS LAST LIMIT 1