MySQL Forums
Forum List  »  German

Re: Komplexe Abfrage
Posted by: Wolfgang Moriske
Date: July 19, 2018 03:00AM

Moin,
eventuell mit einer Subquery.

table = touren

select
t.id, t.tour, t.anschrift,
(select count(*) from touren where tour = t.tour) as Anzahl
from touren t

Options: ReplyQuote


Subject
Views
Written By
Posted
444
July 18, 2018 11:48PM
Re: Komplexe Abfrage
218
July 19, 2018 03:00AM
214
July 19, 2018 05:52AM


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.