두 테이블이 있습니다 : customers
및 customer_listing
.테이블에서 다른 테이블로 열을 가져 오는 방법은 무엇입니까?
customer.id
은 customer_listing.id
과 동일하며 동일한 costumer이며 동일한 ID에 대해 각 테이블에 거의 동일한 데이터가 있습니다.
그러나 나는 customer_listing
제거하기 위해 customers
에 customer_listing
에서, 두 개의 열, type
및 events
을 가져와야합니다.
하지만 멋지고 빠르게하는 방법을 모릅니다.