Select Rand() Select Rand() Select Rand()
------------------------
0.54394180599525266
------------------------
0.42456630005083063
------------------------
0.17371712353459362
In einer Abfrage mit Union (ohne ALL) werden die drei Zeilen auf eine Zeile reduziert, da nur ein Wert durch die Rand-Funktion bereitgestellt wird:
Select Rand() Union Select Rand() Union Select Rand()
------------------------
0.39100694464831615
Mit All:
Select Rand() Union All Select Rand() Union All Select Rand()
------------------------
0.41669890535553933
0.41669890535553933
0.41669890535553933