Подскажите пожалуйста, как объединить два запроса:
SELECT data_of_event_in_sites.site_id, COUNT(events.id) FROM data_of_event_in_sites, events, data_of_events WHERE data_of_event_in_sites.data_of_event_id=data_of_events.id AND data_of_events.event_id = events.id GROUP BY data_of_event_in_sites.site_id
и
SELECT site_id, count(id) FROM ( SELECT data_of_event_in_sites.site_id, events.id FROM data_of_event_in_sites, events, data_of_events WHERE data_of_event_in_sites.data_of_event_id=data_of_events.id AND data_of_events.event_id = events.id GROUP BY events.id HAVING count(events.id) = 1 ) as _teble GROUP BY site_id
You can post now and register later.
If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.
Здравствуйте, подскажите какой тег использовать для увеличения значения, пример на картинке.
Вроде, про такой тег я слышала. Если есть тег прогресс бар, значит и такое должно быть.
Question
Bolmazov
Подскажите пожалуйста, как объединить два запроса:
по site_id первой таблицы?
Link to comment
Share on other sites
5 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.