Find Jobs
Hire Freelancers

505238 need help with some mysql queries

N/A

Suoritettu
Julkaistu lähes 13 vuotta sitten

N/A

Maksettu toimituksen yhteydessä
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.
Projektin tunnus (ID): 2251162

Tietoa projektista

1 ehdotus
Etäprojekti
Aktiivinen 12 vuotta sitten

Haluatko ansaita rahaa?

Freelancerin tarjouskilpailun edut

Aseta budjettisi ja aikataulu
Saa maksu työstäsi
Kuvaile ehdotustasi
Rekisteröinti ja töihin tarjoaminen on ilmaista
Myönnetty käyttäjälle:
Käyttäjän avatar
I can get this done for you pretty quickly.
$75 USD 0 päivässä
4,8 (157 arvostelua)
6,3
6,3

Tietoja asiakkaasta

Maan UNITED STATES lippu
Mebane, United States
5,0
104
Maksutapa vahvistettu
Liittynyt kesäk. 15, 2010

Asiakkaan vahvistus

Kiitos! Olemme lähettäneet sinulle sähköpostitse linkin, jolla voit lunastaa ilmaisen krediittisi.
Jotain meni pieleen lähetettäessä sähköpostiasi. Yritä uudelleen.
Rekisteröitynyttä käyttäjää Ilmoitettua työtä yhteensä
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Ladataan esikatselua
Lupa myönnetty Geolocation.
Kirjautumisistuntosi on vanhentunut ja sinut on kirjattu ulos. Kirjaudu uudelleen sisään.