Aldehydes and ketones have:
Hydroxyl group
Carbonyl group
Amide group
Nitro group
Aldehydes and ketones have Carbonyl group (C=O) in common.
Aldehydes and ketones both contain the carbonyl group.