Dual Credit vs Advanced Placement

How do they compare?