I would like to create secondary accounts based upon family member's active subscription. i.e. Mom has an active subscription. Son wants to have an active account, without having to pay for it. I want a SQL query that will look at son's registration information, which would include mom's username as a look-up field in his profile (parent username).
Currently, I have a main acocunt subscription plan. It has a SQL query that sets expiration on a set date, regardless of start date. So, I also want the child account to go inactive on the same day as the parent's subscription expires.
What we have now is a main account with a subscription plan. Also, there is a second (kids) account with a different subscription plan, that requires moderator approval. We have to manually check the "Parent Username" field and compare it to the parent's username, and check to see if the parent is active, and then turn on the account manually. I want to alleviate the need for a moderator to accomplish this. I'm not very good with SQL queries though.