When would you use a t-test vs. a z-test?

Technicaldata science and data analystData ScientistData AnalystStatistician