Menu of dynamic pages based on filtering dataset

Is there a way (or work around) to create a menu where the drop-down itmes will be dynamic pages filtered by dataset?
To clarify - I have a database with the contents of the dymanic pages, and one of the fields is “categoryID”. I would like to create a menu that all dynamic pages in a categoryID=1 will be display under MenuItem1 etc…