[MS-SQL] UNION, UNION ALL
데이터를 표기할 때, 두 개의 테이블에 자료를 하나로 합쳐서 표기해야 하는 경우들이 있다. 오늘은 그중에서 합집합과 관련된 함수인 UNION과 UNION ALL에 대해 확인하도록 하겠다.Create Temp Table & Create DataCREATE TABLE #tmp_math( cust_id int, cust_name varchar(10), math int)INSERT INTO #tmp_math VALUES (1,'홍길동',85)INSERT INTO #tmp_math VALUES (2,'이순신',100)CREATE TABLE #tmp_kr_lang( cust_id int, cust_name varchar(10), kr_lang int)INSERT INTO #tmp_kr_lang VALUES (1,'..
2025. 3. 18.