I have a query which displays records linked to companies based on the ID:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]ID[/TD]
[TD]Name[/TD]
[TD]Date[/TD]
[TD]Current[/TD]
[/TR]
[TR]
[TD]ABC123[/TD]
[TD]John Smith[/TD]
[TD]01/01/19[/TD]
[TD]Yes[/TD]
[/TR]
[TR]
[TD]ABC123[/TD]
[TD]James Jackson[/TD]
[TD]22/12/18[/TD]
[TD]No[/TD]
[/TR]
[TR]
[TD]LMN321[/TD]
[TD]Sam Franklin[/TD]
[TD]12/10/18[/TD]
[TD]No[/TD]
[/TR]
[TR]
[TD]LMN321[/TD]
[TD]Danny Hudson[/TD]
[TD]25/12/18[/TD]
[TD]No[/TD]
[/TR]
</tbody>[/TABLE]
Is it possible to make the records show 1 line per ID (The most recent record based on the Date)? Example below:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]ID[/TD]
[TD]Name[/TD]
[TD]Date[/TD]
[TD]Current[/TD]
[/TR]
[TR]
[TD]ABC123[/TD]
[TD]John Smith[/TD]
[TD]01/01/19[/TD]
[TD]Yes[/TD]
[/TR]
[TR]
[TD]LMN321[/TD]
[TD]Danny Hudson[/TD]
[TD]25/12/18[/TD]
[TD]No[/TD]
[/TR]
</tbody>[/TABLE]
...
If this is possible, is it also possible (It doesn't necessarily have to be within this query) to create another field to show every Name for each record associated to an ID? Example below:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]ID[/TD]
[TD]Name[/TD]
[TD]Date[/TD]
[TD]Current[/TD]
[TD]New Field[/TD]
[/TR]
[TR]
[TD]ABC123[/TD]
[TD]John Smith[/TD]
[TD]01/01/19[/TD]
[TD]Yes[/TD]
[TD]John Smith, James Jackson[/TD]
[/TR]
[TR]
[TD]LMN321[/TD]
[TD]Danny Hudson[/TD]
[TD]25/12/18[/TD]
[TD]No[/TD]
[TD]Danny Hudson, Sam Franklin[/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]ID[/TD]
[TD]Name[/TD]
[TD]Date[/TD]
[TD]Current[/TD]
[/TR]
[TR]
[TD]ABC123[/TD]
[TD]John Smith[/TD]
[TD]01/01/19[/TD]
[TD]Yes[/TD]
[/TR]
[TR]
[TD]ABC123[/TD]
[TD]James Jackson[/TD]
[TD]22/12/18[/TD]
[TD]No[/TD]
[/TR]
[TR]
[TD]LMN321[/TD]
[TD]Sam Franklin[/TD]
[TD]12/10/18[/TD]
[TD]No[/TD]
[/TR]
[TR]
[TD]LMN321[/TD]
[TD]Danny Hudson[/TD]
[TD]25/12/18[/TD]
[TD]No[/TD]
[/TR]
</tbody>[/TABLE]
Is it possible to make the records show 1 line per ID (The most recent record based on the Date)? Example below:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]ID[/TD]
[TD]Name[/TD]
[TD]Date[/TD]
[TD]Current[/TD]
[/TR]
[TR]
[TD]ABC123[/TD]
[TD]John Smith[/TD]
[TD]01/01/19[/TD]
[TD]Yes[/TD]
[/TR]
[TR]
[TD]LMN321[/TD]
[TD]Danny Hudson[/TD]
[TD]25/12/18[/TD]
[TD]No[/TD]
[/TR]
</tbody>[/TABLE]
...
If this is possible, is it also possible (It doesn't necessarily have to be within this query) to create another field to show every Name for each record associated to an ID? Example below:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]ID[/TD]
[TD]Name[/TD]
[TD]Date[/TD]
[TD]Current[/TD]
[TD]New Field[/TD]
[/TR]
[TR]
[TD]ABC123[/TD]
[TD]John Smith[/TD]
[TD]01/01/19[/TD]
[TD]Yes[/TD]
[TD]John Smith, James Jackson[/TD]
[/TR]
[TR]
[TD]LMN321[/TD]
[TD]Danny Hudson[/TD]
[TD]25/12/18[/TD]
[TD]No[/TD]
[TD]Danny Hudson, Sam Franklin[/TD]
[/TR]
</tbody>[/TABLE]