SQL statement question

  • John Willems
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
4 years 8 months ago #140452 by John Willems
SQL statement question was created by John Willems
I need to create a custom report from using the Membership Pro database. The report needs to show a list of subscribers who paid sales tax last year. It needs to show the amount of the sales tax paid for our state. In looking at the MySQL data tables its is not apparent what tables/columns I would use to the pull the needed data. 

I will assume I am not the only person who needs to do this so this probably has been answered. Can someone help get me pointed to the right directions concerning tables and columns?

Any help is appreciated.

Please Log in or Create an account to join the conversation.

  • Tuan Pham Ngoc
  • Away
  • Administrator
  • Administrator
More
4 years 8 months ago #140462 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic SQL statement question
Hello John

I can only tell you the table is #__osmembership_subscribers. The columns you might need is created_date, tax_amount, gross_amount. Look at that table, you might need other columns, depends on your need

Regards,

Tuan

Please Log in or Create an account to join the conversation.

  • John Willems
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
4 years 8 months ago #140498 by John Willems
Replied by John Willems on topic SQL statement question
Tuan

Thanks! this at least gives me a starting place to search for the data.

John W

Please Log in or Create an account to join the conversation.

  • Tuan Pham Ngoc
  • Away
  • Administrator
  • Administrator
More
4 years 8 months ago #140499 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic SQL statement question
OK, Great.

Please Log in or Create an account to join the conversation.

  • John Willems
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
4 years 8 months ago #140500 by John Willems
Replied by John Willems on topic SQL statement question
Update - With your help I was able to track down what I needed and create the report.

Thanks again!

Please Log in or Create an account to join the conversation.

  • Tuan Pham Ngoc
  • Away
  • Administrator
  • Administrator
More
4 years 8 months ago #140501 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic SQL statement question
Great. Happy to hear that.

Tuan

Please Log in or Create an account to join the conversation.