Randomize subset of data
I have a table that has a date column. I need to take rows with 6 months behind the current day. After selecting these rows I need to take a random sample of 2 or 3 rows. I'm not sure how to get the random porition to work.
This is what I have so far
Select *
from tbl_dates
Where Dt > add_months(CURRENT_DATE, -6)
Any help would be greatly appreciated.