What are the good text books to learn SQP? Are there any online courses that you can suggest?

Another source which is complementary to the Nocedal and Wright book, and is more in-depth in certain areas, is the 125 page long Chapter 15, "Sequential Quadratic Programming Methods" in "Trust Region Methods" by Andrew R. Conn, Nicholas I. M. Gould, and Philippe L. Toint. In particular, that chapter can be bought as an electronic purchase of that individual chapter for \$14.95 (edit: \$19.99 as of Nov 2022, the ravages of inflation) https://epubs.siam.org/doi/pdf/10.1137/1.9780898719857.ch15 .