Nested Table Creation

hi - how do i create nested tables? like i have an existing table…if i select one row, it’ll display another table below it depending on the row i clicked above? thanks!