Visualizzazione dei risultati da 1 a 3 su 3

Discussione: query access vs mysql

  1. #1
    Utente di HTML.it L'avatar di agenti
    Registrato dal
    Feb 2002
    Messaggi
    2,427

    query access vs mysql

    con access questa query funziona benissimo..
    con mysql manda in palla tutto...

    provato sia in locale che in remoto....

    codice:
    SELECT hotels.DIY, (select count(*) from hotels as t where DIY = hotels.DIY) AS tot, hotels.IDPAESE_ISO
    FROM hotels
    GROUP BY hotels.DIY,hotels.IDPAESE_ISO;

  2. #2
    Utente di HTML.it L'avatar di wallrider
    Registrato dal
    Apr 2003
    Messaggi
    2,755
    cioè te vorresti tutti gli hotels raggruppati per DIY e IDPAESE_ISO e sapere quanti hotels ci sono ogni gruppo?

    non basta

    codice:
    SELECT hotels.DIY, count(*) as tot, hotels.IDPAESE_ISO
    FROM hotels
    GROUP BY hotels.DIY,hotels.IDPAESE_ISO;
    RIP Cicciobenzina 9/11/2010

    "Riseminaciceli, i ceci nell'orto"

  3. #3
    Utente di HTML.it L'avatar di agenti
    Registrato dal
    Feb 2002
    Messaggi
    2,427
    basta basta..

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2026 vBulletin Solutions, Inc. All rights reserved.