select substr(lower(hex(rand())),1,8)||'-'||substr(lower(hex(rand())),9,4)||'-'||substr(lower(hex(rand())),13,4)||'-'||substr(lower(hex(rand())),1,4)||'-'||substr(lower(hex(rand())),5,12)
as uuid from sysibm.sysdummy1
select substr(lower(hex(rand())),1,8)||'-'||substr(lower(hex(rand())),9,4)||'-'||substr(lower(hex(rand())),13,4)||'-'||substr(lower(hex(rand())),1,4)||'-'||substr(lower(hex(rand())),5,12)
as uuid from sysibm.sysdummy1