I guess you want to ask when you should use “您好” and also“你好”. Actually both of them can be polite and the difference is that the former is more official and the latter is more casual. So when you talk to the waiter in a restaurant I suggest “你好” will be better.