MsSQL ve (muhtemelen) Access:

sorgu="select top 1 * from tbl_firmalar where kategori=2 order by newid()"