How can I wire two switched outlets but power is connected at the first outlet?
If the power enters at the first receptacle outlet, then you can wire it as follows:
At the receptacle outlet box

14/2 feed into the receptacle outlet box.
14/3 between the receptacle outlet box and the other outlet box.
Connect white wire from 14/2 feed to the silver screw on the receptacle, and the white wire from the 14/3 cable going to the other box.
Connect the black wire from the 14/2 feed, to the black wire of the 14/3 cable.
Connect the red wire from the 14/3 cable, to the brass screw on the receptacle.
Connect all grounding conductors to box and device.

At the other outlet box

Connect the white wire from the 14/3 cable to the silver screw on the receptacle.
Connect the black wire from the 14/3 cable to one of the switch terminals.
Connect the red wire from the 14/3 cable to the brass screw on the receptacle, and the other switch terminal.
Connect all grounding conductors to box and device.


Grounding conductors not shown for simplicity