in some exam past papers I have been doing I have come across the statistics equation
z=(sample mean - mean)/standard deviation
as well as the equation
z = (sample mean - mean)/(standard deviation/sqrt n).
could anyone please explain when to use which equation and what the difference is? thanks so much!
It is the difference between the $z$ score for a datum from an entire population and a sampling.
The $z$ score for a datum $x$ is $z = (x - \mu)/\sigma$ where $\mu$ is the population mean and $\sigma$ is the population standard deviation.
If the datum $x$ is not from the entire population but rather from a sampling from that population then the standard deviation is divided by the square root of the sample size $n$.