An aldehyde is either a functional group consisting of a terminal carbonyl group, or a compound containing a terminal carbonyl group.
(Where -R represents the carbon chain.)