0
Update Person
SELECT Person.person_id, MIN(donation_date) AS DonorDate, Person.person_isdonor
FROM Listing
inner join Person on Listing.fk_listing_person_id = Person.person_id
WHERE donation_date is not null
and fk_listing_program = 6
GROUP BY person_id;
SET Person.person_firstdonation = DonorDate
나는 이것이 매우 사용자 정의 된 질문/요청이라는 것을 알았지 만 나는 취미가있는 개발자로서 일부 데이터베이스 유지와 함께 비영리 단체를 도우려고 노력하고 있으며 학생으로서의 MySQL/PHP 설정에 빠져있다. 지금 졸업했습니다.MySQL에서 그룹 by을 사용하는 방법은 무엇입니까?
기본적으로 우리가하려는 것은 Listing 테이블에서 기부금을 찾아 보는 것입니다. 그런 다음 기부 순서대로 첫 번째 기부 날짜로 기재하십시오. – BluTiger13