When you say "the product" I assume you mean the derivative of the aldehyde or ketone in question?
Oximes are easily formed by the condensation reaction between the carbonyl group and hydroxylamine NH2OH. They are relatively stable and can be isolated.
To form the functional grouping suggested (R2C=N-H) you would have to use ammonia to react with the carbonyl group. However, ammonia gives a different reaction resulting in a nucleophilic addition product R2C(OH)-NH2
This latter reaction does not go on to the elimination stage of the condensation reaction like the oxime.