I’m wanting to insert random data from one field into another. I’m unsure of the syntax for this completely, So I’m thinking
icdtbl.icd_id = primary key
icdjxn.icd_id = foreign key
insert into icdjxn (icd_id,patiendID)
select top 5000 icd_id from icdtbl order by newid(),select top 5000 patientID from patientTbl order by newid()
edited for the entirety of what i was looking for.
You don’t use the word values when using a select.