If someone doesnt pay an ticket for like 4 years and it goes into collections, how long would that put a mark on your credit score for?

what about other collections inquiries? how long do those remain with a person?
I’m in Canada by the way.