MySQLforum.de Foren-Übersicht
 
FAQFAQ SuchenSuchen MitgliederlisteMitgliederliste BenutzergruppenBenutzergruppen RegistrierenRegistrieren ProfilProfil Einloggen, um private Nachrichten zu lesenEinloggen, um private Nachrichten zu lesen LoginLogin

Additional query without the need of using a loop.

 
Neues Thema eröffnen   Neue Antwort erstellen    MySQLforum.de Foren-Übersicht -> Fortgeschrittene
Vorheriges Thema anzeigen :: Nächstes Thema anzeigen  
Autor Nachricht
ahwiewo



Anmeldedatum: 23.11.2011
Beiträge: 2

BeitragVerfasst am: 24.11.2011, 09:54    Titel: Additional query without the need of using a loop.

I have got a MySQL result in which all entries of a certain period of time are held. These entries are login data and its corresponding members. The quantity of that entries can be up to 50000 depending on the chosen period of time.
The data come from 2 tables and I used a LEFT JOIN to get that result.

Now using that result of all entries lets assume the number is 250 I need to get the number of logins of each member which are held in the second table. In other words - I need to find out how often each member has logged in within that period of time?
There is only the chance to use a loop to get the result as far as my limited knowledge of MySQL is.
I would rather do without using a loop if there is a chance to do so.

How could that be done?
Nach oben
Benutzer-Profile anzeigen Private Nachricht senden
hgfelix



Anmeldedatum: 31.03.2012
Beiträge: 4

BeitragVerfasst am: 01.04.2012, 10:09    Titel:

there are always several ways to reach rome Very Happy If you might post the two table's structure (partially) and the expected result I can propably help you.

Regards
Nach oben
Benutzer-Profile anzeigen Private Nachricht senden
Beiträge der letzten Zeit anzeigen:   
Neues Thema eröffnen   Neue Antwort erstellen    MySQLforum.de Foren-Übersicht -> Fortgeschrittene Alle Zeiten sind GMT
Seite 1 von 1

 
Gehe zu:  
Du kannst keine Beiträge in dieses Forum schreiben.
Du kannst auf Beiträge in diesem Forum nicht antworten.
Du kannst deine Beiträge in diesem Forum nicht bearbeiten.
Du kannst deine Beiträge in diesem Forum nicht löschen.
Du kannst an Umfragen in diesem Forum nicht mitmachen.


Powered by phpBB © 2001, 2005 phpBB Group
Deutsche Übersetzung von phpBB.de
SEO phpBB powered by SEO Wiki
Impressum


Anti Bot Question MOD - phpBB MOD gegen Spambots
Vereitelte Spamregistrierungen / Spambeiträge: 101 / 0