Here the source is at the fan/light and a switch loop runs to the wall switch. The source is wired directly to the fan and spliced through to the switch. With this arrangement the light is controlled with the switch and the fan is hardwired for pull-chain control.
Here two receptacles in one box are wired using the device terminals. With this arrangement, if receptacle #1 fails, receptacle #2 may also fail if failure is due to physical damage. However, if the copper tab conductors between the terminals remain intact, even if #1 stops functioning, receptacle #2 will probably still work.
Splice both the fan and the light hot wires together with the common wire from the SW2. The traveler wires are spliced together in the ceiling fixture box. To control the fan and light separately, a builtin switch such as a pull chain or remote control is required on the fan/light.
The black cable wire is connected to the top terminal on the switch and spliced to the black and blue wires at the fan at the other end. The neutral source and ground are spliced through to the white and ground connections at the fan.