Find Jobs
Hire Freelancers

505238 need help with some mysql queries

N/A

Completed
Posted almost 13 years ago

N/A

Paid on delivery
I'm writing some mysql queries for a reporting application and need some help in creating five different main queries. It may be a combination of mysql with php to get the exact results. I have a table with one transaction per row ... it includes user_id, transaction id, date, product (and other fields which are unrelated) The queries I need to create are: (1) how many results for a particular month for new users (i.e. this is the first occurrence of that user_id) (2) how many results for a particular month where there was no transaction for a user_id that, no transactions in the next two months, but there was in a previous month (3) how many transactions for a particular month where the user has a transaction this month and the product ID for the current month is a "higher level" we have a separate table to determine levels) than in previous months (4) how many transactions for a particular month where the user has a transaction this month and the product ID for the current month is a "lower level" than previous months (5) how many transactions for a particular month where the user has a transaction this month, did not have one the previous two months, but has one at the same level prior to that 3 months ago.
Project ID: 2251162

About the project

1 proposal
Remote project
Active 12 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
I can get this done for you pretty quickly.
$75 USD in 0 day
4.8 (157 reviews)
6.3
6.3

About the client

Flag of UNITED STATES
Mebane, United States
5.0
104
Payment method verified
Member since Jun 15, 2010

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.