All these were David's sons, besides children born to his mistresses. Tamar was their sister.