how to get parent and child record in single query using sql

Solutions on MaxInterview for how to get parent and child record in single query using sql by the best coders in the world