
251 S.E.2d 616 (1979)
296 N.C. 564
STATE of North Carolina
v.
Ronald McGILL.
No. 123.
Supreme Court of North Carolina.
February 5, 1979.
*618 Laura A. Kratt, Charlotte, for defendant.
Atty. Gen. Rufus L. Edmisten by Associate Atty. Gen. Christopher P. Brewer, Raleigh, for the State.
COPELAND, Justice.
For the reasons stated below, we find no error in defendant's trial; therefore, the decision of the Court of Appeals is affirmed.
In his first assignment of error, the defendant argues the trial court erred in not requiring the State to elect before trial between the two charges against the defendant. We do not agree.
The defendant contends that because the crime of possession of more than one ounce of marijuana is a lesser included offense of possession with intent to sell or deliver marijuana,[1] the State was required to choose *619 under which theory they were proceeding. Otherwise, he claims, the accused is prejudiced because the jury hears multiple charges against him and infers greater criminal activity than actually exists. The defendant states in his brief that his argument "is addressed to the limited situation dealing with multiple charges of a particular kind, that is, a principal charge and, in a separate indictment, its lesser included offense, and does not consider any other possible composition of multiple or duplicate charges."
The fault in defendant's position lies in his underlying premises that one charge in question is a lesser included offense of the other. While this Court has stated that simple possession of contraband is a lesser included offense of possession with intent to sell or deliver the same matter, State v. Aiken, 286 N.C. 202, 209 S.E.2d 763 (1974), that reasoning does not control this case. One crime is not a lesser included offense of another "[i]f each of two criminal offenses, as a matter of law, requires proof of some fact, proof of which fact is not required for conviction of the other offense." State v. Overman, 269 N.C. 453, 465, 153 S.E.2d 44, 54 (1967). See also State v. Stepney, 280 N.C. 306, 185 S.E.2d 844 (1972).
To prove the offense of possession of over one ounce of marijuana, the State must show possession and that the amount possessed was greater than one ounce. To prove the offense of possession with intent to sell or deliver marijuana, the State must show possession of any amount of marijuana and that the person possessing the substance intended to sell or deliver it. Thus, the two crimes each contain one element that is not necessary for proof of the other crime. One is not a lesser included offense of the other.
This does not mean, however, that a defendant can be punished for both offenses because of possession of the same contraband. Multiple punishment is one facet of the prohibition against double jeopardy. See State v. Irick, 291 N.C. 480, 231 S.E.2d 833 (1977). That rule applies "[w]here two or more offenses of the same nature are by statute carved out of the same transaction and are properly the subject of a single investigation." State v. Midgett, 214 N.C. 107, 110, 198 S.E. 613, 614 (1938) (quoting Dowdy v. State, 158 Tenn. 364, 366, 13 S.W.2d 794, 794 (1929)). See also In re Powell, 241 N.C. 288, 84 S.E.2d 906 (1954).
It is clear that the State charged the defendant with both these offenses so that the evidence would conform to the pleadings under either means of proving felonious possession. An election is not required in this situation.
"The rule here is, that where the indictment contains charges that are actually distinct, and grow out of different transactions, in such cases the Court will compel the State to elect, or will quash. But where it appears by the indictment . . that the charges in the several counts relate to the same transaction, varied and modified merely to meet the probable proofs, the Court cannot either quash or compel an election." State v. Eason, 70 N.C. 88, 91-92 (1874).
Although the charges here were contained in two separate indictments, they may be treated as separate counts of the same indictment. See, e. g., State v. Stephens, 170 N.C. 745, 87 S.E. 131 (1915).
In this case the judge instructed the members of the jury to first consider the offense of possession with intent to sell or *620 deliver marijuana. If and only if they found him not guilty of that offense were they to consider the charge of possession of more than one ounce of marijuana. The able trial judge followed the correct procedure in this situation. See State v. Meshaw, 246 N.C. 205, 98 S.E.2d 13 (1957).
This Court has applied the same rule in felony-murder situations. In State v. Boyd, 287 N.C. 131, 214 S.E.2d 14 (1975), the defendant was charged in two separate indictments with first degree murder and first degree burglary. The charges were consolidated for trial. The defendant made a pretrial motion to require the State to elect whether it was going to proceed on the theory of felony-murder or on both indictments separately, in which case premeditation and deliberation would be the basis for the crime of first degree murder. We held that the trial court's denial of the defendant's motion was correct. See also State v. Swift, 290 N.C. 383, 226 S.E.2d 652 (1976). This assignment of error is overruled.
The defendant also asks us to review the two other questions that were presented to the Court of Appeals. We have examined them and find them without merit for the reasons stated by that court.
It appears in the record that the trial court made a technical error and dismissed the wrong case after the jury returned its verdict. The judge inadvertently entered judgment on case number 76CRS69883, which was possession with intent to sell or deliver marijuana and of which the jury found defendant not guilty. He then dismissed case number 76CRS69882, possession of more than one ounce of marijuana, the crime of which the jury found defendant guilty. Therefore, we direct the Court of Appeals to return the case to Mecklenburg County Superior Court with directions to reinstate case number 76CRS69882 and to dismiss case number 76CRS69883.
For the foregoing reasons, the decision of the Court of Appeals is
Modified and affirmed.
BROCK, J., did not participate in this decision.
NOTES
[1]  Both offenses are included in G.S. 90-95, which reads in relevant part:

"(a) Except as authorized by this Article, it is unlawful for any person:
(1) To manufacture, sell or deliver, or possess with intent to manufacture, sell or deliver, a controlled substance;
(2) To create, sell or deliver, or possess with intent to sell or deliver, a counterfeit controlled substance;
(3) To possess a controlled substance.
(b) Any person who violates G.S. 90-95(a)(1) with respect to:
* * * * * *
(2) A controlled substance classified in Schedule III, IV, V, or VI shall be guilty of a felony and shall be sentenced to a term of imprisonment of not more than five years or fined not more than five thousand dollars ($5,000), or both in the discretion of the court, but the transfer of less than 5 grams of marijuana for no remuneration shall not constitute a delivery in violation of G.S. 90-95(a)(1);
* * * * * *
(d) Any person who violates G.S. 90-95(a)(3) with respect to:
* * * * * *
(4) A controlled substance classified in Schedule VI shall be guilty of a misdemeanor and shall be fined not more than one hundred dollars ($100.00); but if the quantity of the controlled substance exceeds one ounce (avoirdupois) of marijuana ... the violation shall be a felony punishable by a term of imprisonment of not more than five years or a fine of not more than five thousand dollars ($5,000), or both in the discretion of the court."
Under G.S. 90-94, marijuana is a Schedule VI controlled substance.
