The Birthday Paradox, or why PRNGs produce duplicates more often than you might think.
There are a couple of issues at play in the OP's problem. One is the birthday paradox as mentioned above and the second is the nature of what you are generating, which does not inherently guarantee that a giv...
As the documentation describes:
The return data type is RAW if the measure column is RAW; otherwise
the return value is VARCHAR2.
So unless you pass the column as RAW, the result will be VARCHAR2, and that is not good enough, because that means data loss during conversion.
LISTAGG works ...
I'm no Oracle expert, but that looks like a good answer. Much more detailed than his usual as well, I think I am right in saying.
Well, here I am at St Thomas's. The operation is tomorrow afternoon. They didn't have space in the ward so they've moved me to a hostel for tonight.
Currently there are no large incisions in my corpus delectii, but they want me to take a shower with some antiseptic gunk and shave my chest, arms and legs.
@PaulWhite Thanks. My friend (from NZ) asked the Canadian nurse if she was American. I introduced him as my Australian friend and said they're a bit thick across the Tasman.
@PaulWhite I'm reminded of the first time I had an angioplasty in a posh hospital in Auckland (I still had health insurance then). They sent a rather attractive Filipina nurse called Josephine in to shave my goolies. I remember thinking: 'could be worse'
These days they tell my to shave my own. I'm most disappointed.
There's quite a lot to be said for having a little pad somewhere nice and working contracts about 6 months of the year. I could aspire to that life style.
@ConcernedOfTunbridgeWells What time's your op? Local pub landlord here had a triple bypass at the tail end of last year. Said the recovery wasn't too bad. Just uncomfortable because of the broken ribs etc