
436 S.E.2d 390 (1993)
112 N.C. App. 557
CATAWBA MEMORIAL HOSPITAL, Petitioner-Plaintiff,
v.
NORTH CAROLINA DEPARTMENT OF HUMAN RESOURCES, Respondent-Defendant and
Ami Frye Regional Medical Center, Intervenor-Respondent-Defendant.
No. 9210SC821.
Court of Appeals of North Carolina.
November 16, 1993.
*392 Petree Stockton by Noah H. Huffstetler, III, L. Elizabeth Henry, and Gary S. Qualls, Raleigh, for petitioner Catawba Memorial Hosp.
Atty. Gen. Lacy H. Thornburg by Associate Atty. Gen. Margaret C. Ciardella, and Associate Atty. Gen. Sherry L. Cornett, Raleigh, for respondent North Carolina Dept. of Human Resources.
Bode, Call & Green by Robert V. Bode, S. Todd Hemphill and Diana E. Ricketts, Raleigh, for intervenor-respondent AMI Frye Regional Medical Center.
MARTIN, Judge.
The parties raise numerous issues by this appeal. We find three to be dispositive and, in view of our decisions with respect thereto, conclude that it is unnecessary to address the remainder. For the reasons set forth herein, the decision below is reversed in part and affirmed in part.

RESPONDENTS' APPEAL
By their first assignment of error, respondents contend that the superior court erred by reversing the Agency's denial of Catawba's request for a declaratory ruling. Declaratory rulings under the Administrative Procedure Act are governed by G.S. § 150B-4, which provides in pertinent part:
(a) On request of a person aggrieved, an agency shall issue a declaratory ruling as to the validity of a rule or as to the applicability to a given state of facts of a statute administered by the agency or of a rule or order of the agency, except when the agency for good cause finds the issuance of a ruling undesirable. (Emphasis added.)
Respondents argue that because the questions raised in Catawba's request to the Agency for a declaratory ruling were identical to the questions decided by the Agency in its final agency decision, the Agency had good cause to decline Catawba's request for a declaratory ruling. We agree.
*393 The issue addressed by the decision maker in the contested case was "[w]hether the annual operating costs of Catawba's proposed open heart surgical service will equal or exceed one million dollars, thus making it a new institutional health service, requiring it to obtain a Certificate of Need." The Agency concluded that Catawba would be required to obtain a CON and that under former G.S. § 131E-176(16)f it was proper for the Agency to analyze the proposed service's annual operating costs for a three year period.
In its request for a declaratory ruling, Catawba sought,
a declaration that it is entitled to offer open heart surgical services without obtaining a certificate of need so long as the capital expenditures associated with development of the service do not exceed $2,000,000, [and] the annual operating costs of the service will not exceed $1,000,000 in the first year.... In addition, Catawba requests a declaration that the three-year standard the Agency has applied to Catawba's proposal in determining the applicability of N.C.G.S. § 131E-176(16)f is an invalid rule.
Clearly, the issues to be addressed in deciding the contested case were virtually identical to the issues which Catawba sought to have determined by way of its requested declaratory ruling. Both actions required the Agency to determine the applicability of former G.S. § 131E-176(16)f to Catawba's proposed open heart surgery facility. As stated by Director Syria in his letter denying Catawba's request for a declaratory ruling, the interpretation sought by Catawba was included in the decision in the contested case. Furthermore, Catawba did not approach the Agency for a declaratory ruling until after the official record in the contested case had been closed. Whereas a declaratory ruling by definition involves the application of a statute or agency rule to a given state of facts, the facts regarding Catawba's proposed surgical services were established by the record in the contested case.
We hold good cause exists for denial of a request for a declaratory ruling where the denial is based on the existence of a prior agency ruling which necessarily required an interpretation of the same statute which is the subject of the request for declaratory ruling. To hold otherwise would be to require an agency to twice decide the same case, between the same parties, by applying the same statute to the same facts. We are convinced that the Administrative Procedure Act was not intended to allow such unnecessary repetition. Thus, the Agency's denial of Catawba's request was for good cause, and we must reverse that part of the superior court's order which reversed the Agency's denial of Catawba's request for declaratory ruling.
Respondents also assign error to that portion of the superior court's order which reversed the 16 April 1991 final agency decision. Respondents argue that the superior court lacked jurisdiction to enter an order reversing the final agency decision. We agree.
The record shows, and the parties agree, that Catawba did not perfect an appeal of the final agency decision. Rather, Catawba's appeal to the superior court only sought review of the Agency's refusal to issue a declaratory ruling in response to Catawba's request. Moreover, G.S. § 131E-188, which governs appeals from final agency decisions regarding the issuance of a CON, provides that such appeals are to be filed in this Court, not the superior court. N.C.Gen.Stat. § 131E-188; Iredell Mem. Hosp. v. N. C. Dept. of Human Resources, 103 N.C.App. 637, 406 S.E.2d 304 (1991). Thus, the superior court had no jurisdiction to consider the final agency decision and that decision, not having been appealed, remains binding on the parties.

PETITIONER'S APPEAL
Catawba assigns error to the portion of the superior court's order which dismissed Catawba's complaint for declaratory judgment on the ground that it was moot. The superior court ruled that Catawba's complaint was moot on the ground that it had *394 adequately determined Catawba's rights under former G.S. § 131E-176(16)f when it reversed the final agency decision. Catawba argues that its complaint for a declaratory judgment will no longer be moot if we reverse the superior court's decision in favor of Catawba. Because we have reversed the superior court's decision in favor of Catawba, we must now determine whether dismissal of Catawba's complaint for declaratory judgment was proper. We hold that Catawba's complaint was properly dismissed, although on grounds other than mootness.
As we have previously noted, Catawba failed to appeal the final agency decision in the contested case. "[A] final judgment, rendered on the merits, by a court of competent jurisdiction, is conclusive of rights, questions and facts in issue, as to the parties and privies, in all other actions involving the same matter." Masters v. Dunstan, 256 N.C. 520, 523, 124 S.E.2d 574, 576 (1962), (quoting Bryant v. Shields, 220 N.C. 628, 634, 18 S.E.2d 157, 161 (1942)). Such a final judgment will bar a subsequent action involving the same issues between the same parties. Thomas M. McInnis & Assoc., Inc. v. Hall, 318 N.C. 421, 349 S.E.2d 552 (1986); see also, Cannon v. Cannon, 223 N.C. 664, 28 S.E.2d 240 (1943).
Without question, Catawba's declaratory judgment action and the contested case involved the same parties: Catawba and the Agency. Likewise, we are persuaded that the issues addressed in the final agency decision are identical to the issues raised in Catawba's declaratory judgment action.
The central issue in both cases was whether, under former G.S. § 131E176(16)f, Catawba would be required to obtain a CON prior to offering its proposed open heart surgical services. A CON would be required if Catawba's "annual operating costs" exceeded $1,000,000. N.C.Gen.Stat. § 131E-176(16)f (repealed 1993). However, the phrase "annual operating costs" is not defined by the statute. Thus, in rendering a decision in the contested case, the decision maker was required to interpret the meaning of the phrase "annual operating costs." The decision maker concluded that "the term `annual operating costs' in the statute is not limited to annual operating costs in the first year."
In its complaint for declaratory judgment, Catawba prayed for a declaration that "[a]s a matter of law, the $1,000,000 limitation on operating costs set forth in N.C.G.S. § 131E-176(16)f applies to the operating costs for the first year the service is offered...." Thus, Catawba was seeking a declaratory judgment regarding a matter which it previously litigated in the contested case and which was resolved against it in the final agency decision. As we have said, the final agency decision was never appealed and remains binding on the parties.
Although the contested case decision was an administrative decision, it may nevertheless bar Catawba's request for a declaratory judgment under the doctrine of res judicata. As a general rule, "[a]n administrative decision denying or dismissing a party's claim on the merits precludes such party from obtaining, in a judicial proceeding not designed for review of the administrative decision, the relief denied by the administrative agency, whether upon the same ground as urged in the administrative proceeding, or upon another ground." 2 Am.Jur.2d Administrative Law § 502. In In re Mitchell, 88 N.C.App. 602, 364 S.E.2d 177 (1988), this Court stated:
Whether an administrative decision is res judicata depends upon its nature; decisions that are "judicial" or "quasi-judicial" can have that effect, decisions that are simply "administrative" or "legislative" do not. Though the distinction between a "quasi-judicial" determination and a purely "administrative" decision is not precisely defined, the courts have consistently found decisions to be quasijudicial when the administrative body adequately notifies and hears before sanctioning, and when it adequately provides in the legislative authority for the proceeding's finality and review.

*395 Id., at 605, 364 S.E.2d at 179. Thus, we examine the legislative authority which governs contested cases involving certificates of need to decide whether the final agency decision was a "judicial" decision.
G.S. § 131E-188(a) provides:
After a decision of the Department to issue, deny or withdraw a certificate of need or exemption or to issue a certificate of need pursuant to a settlement agreement with an applicant to the extent permitted by law, any affected person,... shall be entitled to a contested case hearing....
G.S. § 131E-188(b) provides that "[a]ny affected person who was a party to a contested case hearing shall be entitled to judicial review of all or any portion of any final decision of the department...."
Clearly, the foregoing sections adequately provide for the finality and review of the final agency decision in the present case. Thus, we conclude that the final agency decision was a judicial decision which barred, as res judicata, Catawba's complaint for declaratory judgment. Based on the foregoing conclusion, we hold that the superior court's dismissal of Catawba's declaratory judgment complaint was proper. A judgment which is correct must be affirmed even though the reason stated for its entry is incorrect. Payne v. Buffalo Reinsurance Co., 69 N.C.App. 551, 317 S.E.2d 408 (1984).
In summary, we reverse that part of the order of the superior court which reversed the final agency decision of the respondent Agency requiring the petitioner to obtain a certificate of need before providing the proposed open heart surgical services, as well as the decision of the respondent Agency denying Catawba's request for a declaratory ruling. The order of the superior court dismissing Catawba's complaint for declaratory judgment is affirmed.
Reversed in part, and affirmed in part.
ARNOLD, C.J., and COZORT, J., concur.
