Is it possible to achieve this in the lightning database LWC?
Here in this image, let's take an example of account and contact. Account name will be in the first column ie; Course name. Then Patient Column onwards it will depend on how many contacts belong to that particular account. Suppose if two contacts then it will show one contact information in one line and another in the second line in the same row. If it's possible with a lightning data table how??
You can achieve this in lightning database LWC by building a custom Data Table and using rowspan. https://www.lightningdesignsystem.com/components/data-tables/