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.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Amit GuptaRank #190 · 12.8K reputationPosted Aug 16, 2017, 1:32 PM EDT
Joma Alrzini26 reputationPosted Aug 16, 2017, 6:18 AM EDT
Joma Alrzini26 reputationPosted Aug 16, 2017, 10:52 AM EDT
Joma Alrzini26 reputationPosted Aug 17, 2017, 12:36 AM EDT
Nilesh ShahRank #42 · 34.2K reputationPosted Aug 16, 2017, 7:41 AM EDT
I think you need to clarify your question
what do you mean by insert 3 time in a column?
Nilesh ShahRank #42 · 34.2K reputationPosted Aug 16, 2017, 11:27 AM EDT
Sadly you are not yet able to express your problem statement.
is there any error? explain using some table what is not working
Rajkiran SwainRank #165 · 14.4K reputationPosted Aug 16, 2017, 5:42 AM EDT
Use the
DISTINCTkeywords afterSELECTstatementAs in
SELECT DISTINCT * FROM ...