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
877
July 18, 2018 11:48PM
Re: Komplexe Abfrage
469
July 19, 2018 03:00AM
451
July 19, 2018 05:52AM


Sorry, you can't reply to this topic. It has been closed.
This forum is currently read only. You can not log in or make any changes. This is a temporary situation.

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.