Jump to content

Featured Replies

Posted

Hi There,

Can any SQL expert please help in creating a query to fetch following data in excel for our paid members (only)?

email phone fn ln zip ct st country gen value

 

Email: Email address

Phone: Mobile Number

fn: First Name

ln: Last Name

Zip: PO Box

ct: City

st: City

country: Country

Gen: Gender

Value: Total Spent

 

Thanks in advance.

 

I believe you can do this via the "Download member list thing:

image.png.135c950511ae9ca2e32230770269f78a.png

 

Change things to "expired" and cancelled active I think the "Total Spent" there at the bottom should work.

  • Author

I tried it and it didn't have any options for 

fn: First Name

ln: Last Name

Zip: PO Box

ct: City

Value: Total Spent

That data is stored in Commerce and would need to be pulled separately. Members can have more than one address so it's a bit trickier than just a specific SQL query.

  • Author

Thanks, so is there any way out I can fetch half details with "members list" and then remaining ones with SQL and then rebuild excel manually?

  • 2 weeks later...

Welcome, time traveler. Here's a solution:

 

Recently Browsing 0

  • No registered users viewing this page.