OPINION OF THE COURT
Margaret Cammer, J.
Respondents move to consolidate 23 nonpayment proceedings for trial, pursuant to CPLR 602 (subd [a]) and CCA 110 (subd [b]). Petitioner cross-moves to strike respondents’ jury demand on the ground that certain of these tenants have signed leases containing jury waiver clauses.
Consolidation or joint trial not only saves time, trouble and expense, but also may prevent contradictory decisions based on the same facts. (See 2 Weinstein-Korn-Miller, NY Civ Prac, par 602.04; Shlansky & Bro. v Grossman, 273 App Div 544.) Where several “actions involving a common question of law or fact are pending before a court” (CPLR 602, subd [a]) and no substantial right would be prejudiced (see Lee v Schmeltzer, 229 App Div 206; Denton v Koshfer, 201 Misc 394), the court has discretion to order consolidation. Further, and more specifically applicable to *100the instant motion, CCA 110 (subd [b]) requires that the court, on application of any party, “shall, unless good cause is shown to the contrary, consolidate all actions and proceedings pending * * * as to any building.” (Emphasis supplied.)