How to add two header to the table?

How to add one more heading which should be located after after the name of the columns but before the data array? In general, I want to do something like this.

I tried to add just an empty header but it does not appear:

<th mat-header-cell *matHeaderCellDef></th>


<table mat-table [dataSource]="dataSource" matSort matSortDisableClear matSortActive="NAME"
  <ng-container [matColumnDef]="column.value" *ngFor="let column of allCols;">
    <th mat-header-cell *matHeaderCellDef mat-sort-header (click)="load()">
    <td mat-cell *matCellDef="let row">
  <ng-container matColumnDef="button">
    <th mat-header-cell *matHeaderCellDef></th>
    <td mat-cell *matCellDef="let row">
      <button mat-icon-button color="primary" (click)="view(row)" matTooltip="Delete">
  <tr mat-header-row *matHeaderRowDef="displayedColumns.concat(['button'])"></tr>
  <tr mat-row *matRowDef="let row; columns: displayedColumns.concat(['button']);"></tr>

Source: New feed
Source Url How to add two header to the table?