需要对此输入和输出进行 SQL 查询

Need an SQL query for this input and output

需要 SQL 查询以下内容:

输入:

输出:

您可以为此使用聚合

Select id,
  max(col1) as col1,
  max(col2) as col2,
  ...
From your_table
Group by id;