Well i have to update a table called "patron_filtrado" and fill one column called "fecha_nacimiento" type date. With random dates, the dates will be in a range between 1920 and 1980.
i thought on something like this
Update patron_filtrado
SET fecha_nacimiento= DateAdd(d, ROUND(DateDiff(d, '1920-01-01', '2080-12-31') * RAND(CHECKSUM(NEWID())), 0),
DATEADD(second,CHECKSUM(NEWID())%48000, '1920-01-01'))
im ok?