<div dir="ltr"><div>To be more concrete. the 'id' column in the example is a proxy for the full set of attribute columns in the data table.  So wherever 'id' appears in a SELECT list you will need to substitute the full set of required columns.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Sep 6, 2019 at 10:37 AM Martin Davis <<a href="mailto:mtnclimb@gmail.com">mtnclimb@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Sep 6, 2019 at 5:48 AM <<a href="mailto:paul.malm@lfv.se" target="_blank">paul.malm@lfv.se</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">





<div lang="SV">
<div class="gmail-m_-5671926766326952788gmail-m_500049021138851547WordSection1">
<p class="MsoNormal"><span lang="EN-US" style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Hi, I’ve succeeded in creating the table as you suggested Martin (Thanks!). With some small modifications (CollectionExtract etc.)<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">The problem is that I would like to transfer all attributes from the original file to the result file. I’ve tried so many ways but I can’t get
 it right.   <u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u> <br></span></p></div></div></blockquote><div>You'll probably have to name all the attribute columns you want to keep in the SELECT list.</div><div><br></div><div>This would be easier & more reusable if Postgres supported SELECT * EXCEPT ( ...) (a la H2 [1])</div><div><br></div><div>[1] <a href="https://h2database.com/html/grammar.html#wildcard_expression" target="_blank">https://h2database.com/html/grammar.html#wildcard_expression</a></div><div><br></div><div> </div></div></div>
</blockquote></div></div>