I tried this
update Student set Sup_Name =(select top 1 Supervisors.Sup_Name from Supervisors order by newid())where student.St_ID = '98754'
and I used update beuase I need to insert into one column
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Amit GuptaPosted Aug 16, 2017, 5:32 PM
Joma AlrziniPosted Aug 17, 2017, 4:36 AM
Nilesh ShahPosted Aug 16, 2017, 3:27 PM
Sadly you are not yet able to express your problem statement.
is there any error? explain using some table what is not working
Joma AlrziniPosted Aug 16, 2017, 2:52 PM
Nilesh ShahPosted Aug 16, 2017, 11:41 AM
I think you need to clarify your question
what do you mean by insert 3 time in a column?
Joma AlrziniPosted Aug 16, 2017, 10:18 AM
Rajkiran SwainPosted Aug 16, 2017, 9:42 AM
Use the
DISTINCTkeywords afterSELECTstatementAs in