Hello,
I want to make a query that is grouped by code-bar field and has to data fields: data1 and data2
Data2 - the grouping field - so it has all values
Data1 - in each line has the maximum value but under the value of data2 of the line
Table1
cod-bar data1
123 01-01-2004
123 10-01-2004
Table2
cod-bar data2
123 05-01-2004
123 12-01-2004
Query
cod-bar data1 data2
123 01-01-2004 05-01-2004
123 10-01-2004 12-01-2004
Thank you very much
Best regards
I want to make a query that is grouped by code-bar field and has to data fields: data1 and data2
Data2 - the grouping field - so it has all values
Data1 - in each line has the maximum value but under the value of data2 of the line
Table1
cod-bar data1
123 01-01-2004
123 10-01-2004
Table2
cod-bar data2
123 05-01-2004
123 12-01-2004
Query
cod-bar data1 data2
123 01-01-2004 05-01-2004
123 10-01-2004 12-01-2004
Thank you very much
Best regards