
45 Cal.2d 835 (1955)
291 P.2d 30
ROBERT G. WEIL, Appellant,
v.
HARVEY O. BARTHEL et al., Respondents.
Docket No. Sac. 6398.
Supreme Court of California. In Bank.
December 23, 1955.
James S. Eddy and Douglas C. Busath for Appellant.
Robert M. Cole for Respondents.
Driver & Driver as Amici Curiae on behalf of Respondents.
*836 McCOMB, J. pro tem.[*]
Lou B. Rowland,[] the assignee of the interests of C.E. Burton and his wife in a parcel of real property, brought a suit in the Superior Court of Yolo County entitled "Complaint to Compel Redemption and to Quiet Title." Named as defendants were Harvey O. Barthel and his wife and the Bank of Davis. This appeal is from a judgment entered upon an order sustaining a general demurrer to the complaint without leave to amend.
Plaintiff alleged that in an action "involving title" to the same property here concerned, the land by a prior judgment against the Burtons in the same court was ordered to be sold "as the property of the plaintiff's said assignors in the manner provided by law for sales pursuant to execution upon real property." The effect of that judgment, it was alleged, was to create in the Burtons, as an equitable interest, "a right to redeem said real property according to law." The complaint includes the official record of the judgment, but its terms are pleaded by a statement of their legal effect.
Pursuant to the judgment, it was alleged, the property was sold by the sheriff to the Barthels, who were purchasers at the "execution sale." It was further alleged that prior to the expiration of the period provided by law for the redemption of real property sold upon execution, the sheriff wrongfully delivered a deed to the property to the Barthels, who recorded it; that also of record is a deed of trust to secure a note payable to the Bank of Davis, which claims an interest in the property.
The prayer was for (1) a declaration of Rowland's right to redeem the property; (2) an accounting by the Barthels; (3) an order directing the Barthels to reconvey the property; and the court was also asked to retain jurisdiction of the matter pending a redemption, and to quiet Rowland's title against each of the defendants.
The defendants demurred to the complaint asserting, among other grounds, that it does not state facts sufficient to constitute a cause of action. In their memorandum of points and authorities accompanying the demurrer, defendants relied in part upon the terms of the judgment in the prior action. The trial judge considered the prior judgment which "terminated and foreclosed the interest of the plaintiff's assignors in said *837 real property and enjoined and restrained them forever from asserting any right, title and interest therein," and held that it was impossible for Rowland to state a cause of action which would enable him to redeem the real property in controversy.
Two contentions are made by Rowland for the reversal of the judgment: (1) That it was prejudicial error for the trial court to consider the prior judgment; (2) that even if such consideration were proper, the record in the former action may not be construed so as to deprive him of the right to redeem the property. Both of these contentions are devoid of merit.
The following rules are applicable to the first contention:
[1] 1. A demurrer reaches only to the contents of the pleading and such matters as may be considered under the doctrine of judicial notice. (County of Los Angeles v. Security First Nat. Bank, 84 Cal. App.2d 575, 579 [4] [191 P.2d 78].)
[2] 2. When a former judgment is properly pleaded in a complaint, such judgment may be considered by the trial court in determining whether it is res judicata of a plaintiff's alleged cause of action. (Cf. Rideaux v. Torgrimson, 12 Cal.2d 633, 638 [8] [86 P.2d 826]; Spitzer v. Superior Court, 74 Cal. App. 494, 498 [1] [241 P. 270].)
Applying the foregoing rules to the facts of the instant case, the judgment relied upon by defendants in bar of the cause of action alleged in the complaint was pleaded and identified in the complaint. Therefore, the trial court properly considered the contents of the judgment in ruling upon the demurrer. Since the judgment was pleaded it is unnecessary to consider whether the doctrine of judicial notice is here applicable. We do not decide such question.
[3] As to the second contention, it is the general rule that a final judgment is res judicata of the issues involved therein where the trial court had jurisdiction. (Pacific Mutual Life Ins. Co. v. McConnell, 44 Cal.2d 715, 725 [10] [285 P.2d 636]; San Diego Trust & Sav. Bank v. Young, 19 Cal.2d 98, 100 [1] [119 P.2d 133].)
[4] In the present case the record discloses that the Barthels formerly were owners of a tract of unimproved land. In 1948, they entered into an oral contract, which was superseded by a later oral agreement, to sell the land and an abandoned streetcar on the premises to the Burtons. If the consideration was not paid in cash, the Barthels were to receive a note secured by a purchase money trust deed. The Burtons *838 took possession of the property and began constructing improvements but, although demands were made upon them, they refused to pay the purchase price or to execute a note. In October of that year, a third oral agreement was made, the Burtons agreeing to pay immediately $5,000 for the land and to perform certain other obligations which were incident to the original agreements.
The Burtons continued in possession of the property for more than a year and one-half without paying the agreed purchase price. During that time, they continued to make improvements on the property for which they incurred mechanics' liens and claims of materialmen in the sum of about $5,700. Despite repeated demands and a tender of a deed to the property by the Barthels, the purchase price remained unpaid. The Burtons resided in one of the buildings on the property without paying rent, and the Barthels were deprived of the crops from several walnut trees during the period of occupancy.
Finally, the Barthels brought suit against the Burtons. Their complaint was in two counts. In the first one, they alleged the execution of the oral agreements, the defendants' breach, their unlawful holding of possession of the premises, and losses assertedly resulting therefrom. The second count pleaded that the Barthels were the owners of the property in question and that the Burtons claimed a right in it adverse to them. The prayer was for a cancellation of the oral agreement and a decree adjudging the defendants to be without interest in the property and enjoining them from asserting any claim to it. It was also prayed that the sheriff be commanded to put them into possession of the realty and to evict the Burtons. They also sought damages.
The trial court found that the Burtons had breached their oral agreement and that "Plaintiffs are the owners of said property, and Defendants, and anyone acting through them, have no right, title, or interest therein. The Plaintiffs have owned said real property at all times herein mentioned, subject only to said oral agreements." The Burtons had erected substantial improvements on the property of an uncertain value, and the court found that liens had accrued against the realty for mechanics' services and materialmen's claims; that the Burtons were in unlawful possession of the premises, and that the Barthels had been damaged by loss of use of the property and loss of the walnut crops.
It was adjudged: (1) that the interest of the Burtons, and of any person claiming through them, in the real property or *839 the oral contract "is hereby terminated and foreclosed"; (2) that the Burtons and such other persons were enjoined from aserting "any right, title or interest in and to said contract or said real property, which arose before the date of this Decree"; (3) that the Barthels were the owners of the real property in fee simple subject to its sale by order of the court "in the manner provided by law for sale pursuant to execution upon real property"; (4) that title was to be quieted in the purchaser from all claims by either the Barthels or the Burtons, or persons acting through them; (5) that they were enjoined from asserting any claim or demand arising prior to the date of the decree and (6) that "all equity of redemption of any of the aforesaid persons is hereby foreclosed."
No appeal was taken from the decree and it became final. Pursuant to the decree, the property was sold at public auction to the Barthels and the proceeds from the sale distributed as ordered by the court.
From the foregoing facts it is apparent that the very issue which is presented in the instant case was before the trial court in the prior action, and that it gave a judgment contrary to the present contentions of the plaintiff, which expressly foreclosed "all equity of redemption of any of the aforesaid persons," which includes the plaintiff. Since it appears that in the prior action the trial court had jurisdiction of the subject matter and of the parties thereto, and the judgment in such action has become final, it may not now be attacked by plaintiff on the ground that it was incorrect. [5] In Panos v. Great Western Packing Co. this court, speaking through Mr. Chief Justice Gibson, succinctly stated the applicable rule thus: "An erroneous judgment is as conclusive as a correct one." (21 Cal.2d 636, 640 [4] [134 P.2d 242].)
The judgment is affirmed.
Gibson, C.J., Shenk, J., Traynor, J., Schauer, J., and Spence, J., concurred.
CARTER, J.
I dissent.
The majority opinion states that there is no question here of whether a trial court may take judicial notice of a judgment in another action in ruling on a demurrer based on res judicata because the judgment "was pleaded." The record does not bear out that statement. In the complaint it is alleged that there was a judgment rendered on a stated day and the aspects thereof beneficial to plaintiff were alleged but the entire judgment *840 was not set forth or incorporated in the complaint. Therefore unless judicial notice is taken of the judgment the issue cannot be decided on demurrer because the part relied upon by defendant as res judicata does not appear in the complaint.
There are many cases holding that judicial notice will not be taken of another action in the same court. Section 1962, subdivision 6, of the Code of Civil Procedure states that: "The following presumptions, and no others, are deemed conclusive: ...
"6. The judgment or order of a court, when declared by this code to be conclusive; but such judgment or order must be alleged in the pleadings if there be an opportunity to do so; if there be no such opportunity, the judgment or order may be used as evidence." (Emphasis added.)
We said in Wolfsen v. Hathaway, 32 Cal.2d 632, 638 [198 P.2d 1], that "It has been uniformly held that in the absence of either pleading or proof of a former judgment upon litigated issues, the defense of res judicata is thereby waived in the subsequent action. (15 Cal.Jur., § 233, p. 214; 50 C.J.S., § 822, p. 389; Domestic & Foreign Petroleum Co., Ltd. v. Long, 4 Cal.2d 547, 562 [51 P.2d 73]; Rideaux v. Torgrimson, 12 Cal.2d 633, 638 [86 P.2d 826]; Spitzer v. Superior Court, 74 Cal. App. 494, 498 [241 P. 270].) Nor can respondents avail themselves of the principle of judicial notice in support of their present plea of the former adjudication. It is the general rule that `the court will not take judicial notice of other actions, not even those pending or concluded in the same court.' [Citations.] The authority of a court to take judicial notice of its own records `is limited to proceedings in the same case.'" In Willson v. Security-First Nat. Bank, 21 Cal.2d 705, 711 [134 P.2d 800], it was said: "To hold that a court may generally take judicial notice of another proceeding with a view to determining whether it is a bar to the pending suit, would do away with the rule that the defense of res judicata may not be raised by demurrer unless the facts appear in the complaint, in those cases where the judgment relied on as a bar was rendered by the same court." The general rule is apparently subject to an exception. In Christiana v. Rose, 100 Cal. App.2d 46, 52-53 [222 P.2d 891], the court said: "It has been held that, in the interests of justice, the court may take judicial notice of proceedings in other cases in the same court. (Willson v. Security-First Nat. Bank, 21 Cal.2d 705, 711 [134 P.2d 800]; Calhoun v. Calhoun, 81 Cal. App.2d 297, 302 [183 P.2d 922].) In the instant case the appellant in his *841 complaint referred to the wrongful death action and specifically alleged the date of the case, its file number in the clerk's office, and the date the appellate court affirmed. Under such circumstances, there can be no doubt but that this court may look at and consider the records in the wrongful death action. (See Popcorn Equipment Co. v. Page, 92 Cal. App.2d 448, 453 [207 P.2d 647].)" (Emphasis added.) The Calhoun case involved taking judicial notice of a former appeal in the same court between the same parties; the Christiana case involved another case which had been appealed; the Popcorn Equipment Company case pointed out that "Only in exceptional cases will the court depart from the general rule, for example in order to avoid a resulting unreasonable hardship. Under certain circumstances the Supreme Court will take judicial notice of the records of that court, although not pleaded in the trial court, when brought to the court's attention in some appropriate manner." (Popcorn Equipment Co. v. Page, 92 Cal. App.2d 448, 453 [207 P.2d 647].) In Bank of America v. Button, 23 Cal. App.2d 651 [74 P.2d 81], it was said (p. 653): "It is the general rule that courts will not take judicial notice of other actions even though pending in the same court. (Estate of Fulton, 8 Cal. App.2d 423 [48 P.2d 120]; Brown v. Brown, 83 Cal. App. 74 [256 P. 595]; Ralphs v. Hensler, 97 Cal. 296 [32 P. 243].) This rule has been made subject to exception, in the discretion of the court. (Sewell v. Johnson, 165 Cal. 762 [134 P. 704, Ann.Cas. 1915B 645]; City of Los Angeles v. Abbott, 217 Cal. 184 [17 P.2d 993].) The exception is only invoked in unusual cases where unreasonable hardship would otherwise result. This does not appear to us to be such a case." (See also 10 Cal.Jur., § 52; 5 Cal.Jur.Supp., § 52.) In Johnston v. Ota, 43 Cal. App.2d 94, 97 [110 P.2d 507], the court stated the general rule and said: "The only exception to the rule is where unreasonable hardship would result. (Bank of America v. Button, supra.) Although the judgment pleaded was an adjudication of the matter at bar and may have been rendered by the same court upon the same cause of action, and although such judgment and its supporting papers may be on file in the same court still the party pleading such prior adjudication carried the burden of establishing his plea which can be done only by actual proof of its records. (Glaze v. Bogle, supra [105 Ga. 295 (31 S.E. 169)].)
"It must appear either upon the face of the record or be shown by extrinsic evidence that the precise issue raised in the second action was determined in the former suit....
*842 "There was no circumstance in the instant case that would have justified the court's taking judicial notice of the judgment pleaded or of the pleadings which preceded it...." (Emphasis added.)
If the court is now going to take a different position it should overrule those cases. However, it will also have to overrule the legislative declaration in section 1962, subdivision 6, of the Code of Civil Procedure.
There is an additional reason why the demurrer should not have been sustained and the prior judgment considered. Plaintiff's action was in part for declaratory relief and he stated a controversy between himself and defendants thus presenting a case for such relief. "Thus, it has been pointed out that it is rare that a demurrer is an appropriate pleading for the defendant to file in an action for declaratory relief, it being more appropriate for the defendant to admit the existence of the controversy, and if the defendant feels that the plaintiff has not alleged the facts giving rise to the controversy fully and accurately, or that the contentions between the parties are not properly stated, he should plead such facts and contentions affirmatively as he understands them to be, and seek explicit judicial confirmation of his contentions." (15 Cal.Jur.2d, Declaratory Relief, § 36; see Maguire v. Hibernia Sav. & Loan Soc., 23 Cal.2d 719 [146 P.2d 673, 151 A.L.R. 1062]; Anderson v. Stansbury, 38 Cal.2d 707 [242 P.2d 305]) and that rule is particularly applicable to the interpretation of a former judgment (Lord v. Garland, 27 Cal.2d 840 [168 P.2d 5]).
I would, therefore, reverse the judgment.
Appellant's petition for a rehearing was denied January 18, 1956. Carter, J., was of the opinion that the petition should be granted.
NOTES
[*]   Assigned by Chairman of Judicial Council.
[]   After the argument of this case, Robert G. Weil, by order of the superior court, was substituted as party-plaintiff for Rowland. Similarly, Weil has been substituted for Rowland as party-appellant.
