All grammarA2
ob
The rule
Use ob to put a yes/no question inside a sentence, and put the conjugated verb at the end of the ob clause.
ob means if or whether. It turns a yes/no question into a clause: Kommt er heute? becomes Weißt du, ob er heute kommt? A comma comes before ob.
Ich möchte fragen, ob … is a polite way to ask, on the phone or in an e-mail.
A question with a W-word such as wo or wann keeps its W-word instead of ob: see the grammar point Indirect questions (/grammar/indirect-questions).
Examples
Weißt du, ob er heute kommt?
Do you know if he is coming today?
Tom weiß nicht, ob er immer Zeit hat.
Tom doesn't know if he always has time.
Ich möchte fragen, ob am Freitag noch ein Termin frei ist.
I'd like to ask if there's still an appointment free on Friday.