Autor | Zpráva | ||
---|---|---|---|
Chatík Profil |
#1 · Zasláno: 20. 2. 2014, 17:17:27
Dobrý den,
mám tento dotaz SELECT * FROM ( SELECT Contentgroup, Track, Album FROM `zahranicni` UNION ALL SELECT Contentgroup, Track, Album FROM `domaci` )s WHERE Track = '1' GROUP BY Contentgroup Potřeboval bych zjistit počet alb daného interpreta. Jak upravit tento dotaz? Děkuji za radu. |
||
Taps Profil |
#2 · Zasláno: 20. 2. 2014, 17:32:14
Chatík:
zkus SELECT * FROM ( SELECT Contentgroup, Track, COUNT(Album) AS pocet FROM `zahranicni` UNION ALL SELECT Contentgroup, Track, COUNT(Album) AS pocet FROM `domaci` )s WHERE Track = '1' GROUP BY Contentgroup |
||
juriad Profil |
SELECT contentgroup AS interpret, Count(album) AS pocet FROM (SELECT contentgroup, album FROM `zahranicni` UNION ALL SELECT contentgroup, album FROM `domaci`) s GROUP BY contentgroup |
||
Chatík Profil |
#4 · Zasláno: 20. 2. 2014, 17:38:38
Taps:
Bohužel tvé řešení nešlo. juriad: Velice děkuji plně funkční. |
||
Časová prodleva: 11 let
|
0