I have a parent table and a child table,I want to randomly receive 3 values from each print ID in the child table and display them on the site.
Parent table:
Id Name
---------------
1 Red
2 Blue
3 Green
Child Table
Id ColorId Name
-----------------------
1 1 RedOne
2 1 RedTwo
3 1 RedThree
4 2 BlueOne
5 2 BlueTwo
6 2 BlueThree
How can I do this?