A total of 987 people faced lengthy waits in Scottish emergency departments last November.