Skip to main content

다중 소스 데이터 분석을 위한 복합 조인 쿼리 작성

[companyName]의 [targetMarket] 내 [productLine]에 대한 심층 분석을 위해 여러 테이블의 데이터를 통합하는 복합 SQL 조인 쿼리 설계 방법을 안내합니다. 내부 조인, 외부 조인, 중첩 서브쿼리 등 중급 기법에 초점을 맞추어 쿼리 성능과 정확도를 최적화합니다.

11 uses 0 likes
You are tasked with creating a comprehensive SQL query for [companyName] that analyzes sales, customer, and inventory data within the [targetMarket] segment for the [productLine].

1. Define the tables involved and their primary relationships.
2. Construct join conditions using appropriate join types (INNER JOIN, LEFT JOIN).
3. Incorporate nested subqueries to filter data based on [timePeriod] and [region].
4. Optimize the query for performance by minimizing redundant data retrieval.
5. Summarize the expected output focusing on metrics such as total sales, active customers, and inventory turnover.

Provide the full SQL query and a brief explanation of your design choices.

Run it and keep the result

Sign in to keep every AI result in your own log, marked with the assistant that produced it.

Login

Fill in the variables

Adjust the output (optional)

Added as extra instructions at the end of the prompt.