The difference between carboxylic acid derivatives and aldehydes and ketones is that there is a group containing a negatively charged heteroatom (usually oxygen, nitrogen or sulfur), which is directly connected to the carbonyl carbon atom. You can think of carboxylic acid derivatives as bilateral.