MySQL Forums
Forum List  »  MySQL Query Browser

How to join two Select?
Posted by: Matteo Giudici
Date: October 03, 2011 09:27AM

I've migrated a mdb-access to mysql how can I write this query to be used in mysql query broswer?

SELECT First([Studente-giorno-ora].studente) AS studenteCampo, First([Studente-giorno-ora].data) AS dataCampo, First([Studente-giorno-ora].ora) AS oraCampo, Count([Studente-giorno-ora].studente) AS NumDuplicati
FROM [Studente-giorno-ora]
GROUP BY [Studente-giorno-ora].studente, [Studente-giorno-ora].data, [Studente-giorno-ora].ora
HAVING (((Count([Studente-giorno-ora].studente))>1) AND ((Count([Studente-giorno-ora].ora))>1));

Studente-giorno-ora is
SELECT newstudlesson.studente,, newlesson.ora
FROM newlesson INNER JOIN newstudlesson ON = newstudlesson.id_lezione;

Thank you for your help.

Options: ReplyQuote

Written By
How to join two Select?
October 03, 2011 09:27AM

Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.