Hi Alvaro, por tu nombre supongo que hablas español y este foro es únicamente para español y por eso te respondo en español.
Tu problema se resuelve de una forma muy sencilla pero das muy poca infoamción sobre las tablas implicadas.
Igual debería ser algo muy parecido a esto:
SELECT TABLA1.STORE_NAME, COUNT(*) AS NUM_ORDERS FROM TABLA1 INNER JOIN TABLA2 ON TABLA2.IDORDER=TABLA1.IDORDER
WHERE TABLA2.FECHA=CURDATE()-1
GROUP BY TABLA1.IDSTORE
___________________________
Ing. Jesús Alfredo Uzcanga
Twitter: @JesusUzcanga
We learn the 20% of what we HEAR,
the 50% of what we SEE,
the 80% of what we DO and
the 95% of what we TEACH.
____________________________________________________________
https://www.linkedin.com/in/jauzcanga/