I have configured question sharing using these instructions: https://docs.moodle.org/38/en/Question_sharer. I have a course with lots of categories and I'd like to move to the Parent Category the course is in to be shared with other courses. I can move them one by one but there are lots and it is very time consuming. I'm looking for a script or perhaps a sql query that would be able to do it faster.
Warning aside, you should be able to make this change in the database however...you should start with Tim's database diagram of the quiz tables but I would think that there should just be a parent category field somewhere that would just need updating - Tim might correct me!!