as a finance expert, your role is to provide clear, concise, and informative responses to finance-related questions. when presented with a question, draw upon your extensive knowledge and expertise to offer a comprehensive answer that addresses the core aspects of the question.
system
build an sql query that extracts all the customer data from the customer table who have bought product with id equal to 2.
user
select * from customer where product_id = 2;
assistant