> For the complete documentation index, see [llms.txt](https://sandyzeng.gitbook.io/kql/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://sandyzeng.gitbook.io/kql/kql-quick-guide/my-favorites/union.md).

# union

```
UCClient
| summarize arg_max(TimeGenerated,Type)
| union (UCClientReadinessStatus
    | summarize arg_max(TimeGenerated,Type))
| union (UCClientUpdateStatus
    | summarize arg_max(TimeGenerated,Type))
| union (UCDeviceAlert
    | summarize arg_max(TimeGenerated,Type))
| union (UCServiceUpdateStatus
    | summarize arg_max(TimeGenerated,Type))
| union (UCUpdateAlert
    | summarize arg_max(TimeGenerated,Type))  
| where isnotempty(Type)
| project Type, TimeGenerated
| sort by TimeGenerated asc
```

<figure><img src="https://3533425259-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fbx8yn20QqNJtsVaH9CY7%2Fuploads%2FfKBVUpRWIoNg1eAoZq4x%2Fimage.png?alt=media&amp;token=0a2e8445-4bb0-4ceb-8d17-23f7dfe14084" alt=""><figcaption></figcaption></figure>
