Formal:
* เรียนที่ไหน (rian thi nai)? - This is the most common and polite way to ask. It literally translates to "study at where?".
Informal:
* เรียนอยู่ที่ไหน (rian yoo thi nai)? - This is a slightly less formal way to ask, adding "yoo" (อยู่) which means "be" or "stay".
* เรียนอะไรที่ไหน (rian arai thi nai)? - This is even more informal and literally means "study what at where?", implying you want to know both the subject and the location.
Example:
* คุณเรียนที่ไหนคะ? (khun rian thi nai kha?) - "Where do you study?" (formal, to a female)
* เธอเรียนอยู่ที่ไหน (thor rian yoo thi nai)? - "Where do you study?" (informal, to a female friend)
Note:
* "kha" (คะ) is a polite particle added at the end of a sentence when speaking to a female.
* "krap" (ครับ) is used similarly for males.
* You can use the appropriate pronoun for the person you're asking.
Let me know if you have other questions!