Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I would like to delete this one in the db visualizer and not sure if I am writing the correct syntax:

enter image description here

I also see that the idsapusertype 25 is also linked to idsapusertypedetails 75 and 76. Can I use this one?

delete from sap_user_type_details where idsapusertypedetails = 77

or

delete from sap_user_type_details where idsapusertype = 25
share|improve this question
up vote 2 down vote accepted

It should be delete from sap_user_type_details where idsapusertypedetails = 77 since idsapusertype = 25 condition matches other records.

For best results, delete from sap_user_type_details where idsapusertypedetails = 77 and idsapusertype = 25

share|improve this answer
    
ah ok you can mix the two then? – tintincutes Jan 6 '11 at 17:41
    
ey, that was easy. Thanks:-) – tintincutes Jan 6 '11 at 17:45
    
but i have problems the other value was still there.. and if I click on it, the software hangs:-( – tintincutes Jan 6 '11 at 18:54
    
@tintin how do you mean the other value was there ? – Sathya Jan 7 '11 at 3:30
    
thanks for helping. I was able to figure it out. I've seen that there are other tables which are link so I also have to delete it first. Now it's working. – tintincutes Jan 11 '11 at 10:36

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .