2
是否可以在「crosstab」函數中使用case語句?這是我迄今爲止所做的。在交叉表函數中使用case語句
SELECT * FROM crosstab('select distinct test_id, cluster,total_points_earned FROM pmt_cluster')
case when test_id = 451 end AS Algebra(
"School___Teacher" text,
"Analyze functions using different representations" text,
"Construct and compare linear, quadratic, and exponential models and solve problems" text,
"Create equations that describe numbers or relationships" text,
"Expressions and Equations" text)
case when test_id = 454 end AS Ela(
"School___Teacher" text,
"Key Ideas and Details" text,
"Conventions of Standard English" text,
"Craft and Structure" text,
"Vocabulary Acquisition and Use" text)
出現以下錯誤:錯誤:您沒有運行GSET查詢的權限。我認爲這將工作,如果我可以通過此權限錯誤。 – Joe
第一次gset或第二次出現此錯誤? –
它是第一個gset。 – Joe