I am trying to find a way to randomize invoice numbers in a SQL Server query to just see 15 random invoices, is there a way to do this?
select
f.Facility
,v.Vendor_Name
,d.Date as 'Posting_Date' --,Trans_Date_Skey --post
,Trans_No
,Invoice_No
,Invoice_Date as 'Service_Date' --service
,Charge_Amount
,Apply_Amount
,Entry_Date
from dw.dbo.fctAPCharges c
left join dw.dbo.dimfacility f on f.Facility_Skey = c.Facility_Skey
left join dw.dbo.dimVendor v on v.Vendor_Skey = c.Vendor_Skey
left join dw.dbo.dimDate d on d.DateKey = c.Trans_Date_Skey