Get N number of records from child table for each parent record in a MySQL View
问题 I tried finding answer to this question in SO , but could not find any. Any links will be of great help. I have a parent table and a child table with one to many relationship between the parent and child table. The child table contains around 1 million records and I want to create a view with 1st 10 records in child table for each parent record. Example- Parent_Table - Fields -- ID, Name ID Name ---- ----- 1 A 2 B 3 C Child_Table - Fields -- ID, ParentID, Date, Data ID ParentID Date Data ----