A court may order two or more indictments or informations, or both, to be tried together if the offenses, and the defendants, if there is more than one, could have been joined in a single indictment or information. The procedure shall be the same as if the prosecution were under a single indictment or information.
SDCL 23A-11-1