Question:
So when i run this query i created the numbers come back in the wrong order and i cannot figure out whyAnswer:
It pretty much seems to come in order, however to remove any confusion why don’t you wrap it all as a subquery and use an order by clause:If you have better answer, please add a comment about this, thank you!