Tom knows Sally well because he has been working with her for years(compound sentence)
Tom knows Sally well; he has been working with her for years. //Tom knows Sally well, for he has been working with her for years.
Tom knows Sally well because he has been working with her for years(compound sentence)
Tom knows Sally well; he has been working with her for years. //Tom knows Sally well, for he has been working with her for years.