I also like A Student's Grammar of the English Language by Sidney Greenbaum and Randolph Quirk. [2] It is a difficult book, but the subtle taxonomies used in linguistic study actually make sense of matters that are confusing if you only know the type of grammar usually taught to non-specialists in middle or high school.
[1] https://www.amazon.com/gp/product/038535293X/ [2] https://www.amazon.com/gp/product/0582059712/
Knowing how to use a semicolon won't make you a better writer. My trick is if I'm not sure where to use a hyphen or whatever, I either google it, rewrite the sentence, or just assume I have it right.
If your grammar is wrong, don't worry, somebody will joyously point it out to you.
It's more humor than education, and more punctuation than grammar, but it's entertaining and sarcastic and very fun to read.
https://www.amazon.com/Eats-Shoots-Leaves-Tolerance-Punctuat...
https://en.wikipedia.org/wiki/A_Dictionary_of_Modern_English...
More style than grammar, but they intermingle the two.
https://www.amazon.com/Elements-Style-Fourth-William-Strunk/...