-- ============================================
-- 간단 Seed 데이터 v2 (모든 엔티티 포함)
-- 시나리오: test 유저 + 암소 3마리 + 7개 유전자
-- ============================================
-- 설명: 최소한의 데이터로 모든 엔티티 테스트 가능

-- ============================================
-- PART 0: 스키마 초기화 (선택사항 - 완전히 새로 시작할 때만 사용)
-- ============================================
-- 주의: 아래 주석을 해제하면 모든 테이블과 데이터가 삭제됩니다
-- DROP SCHEMA public CASCADE;
-- CREATE SCHEMA public;
-- GRANT ALL ON SCHEMA public TO postgres;
-- GRANT ALL ON SCHEMA public TO public;

-- ============================================
-- PART 0: ENUM 타입 생성 및 VARCHAR 길이 수정
-- ============================================

-- ENUM 타입이 이미 존재하면 삭제 후 재생성
DROP TYPE IF EXISTS tb_cow_anlys_stat_enum CASCADE;
CREATE TYPE tb_cow_anlys_stat_enum AS ENUM ('친자일치', '친자불일치', '분석불가', '이력제부재');

DROP TYPE IF EXISTS tb_cow_cow_repro_type_enum CASCADE;
CREATE TYPE tb_cow_cow_repro_type_enum AS ENUM ('공란우', '수란우', '인공수정', '도태대상');

DROP TYPE IF EXISTS tb_cow_cow_status_enum CASCADE;
CREATE TYPE tb_cow_cow_status_enum AS ENUM ('정상', '폐사', '도축', '매각');

-- tb_cow 테이블에 컬럼 추가 (이미 있으면 무시)
ALTER TABLE tb_cow ADD COLUMN IF NOT EXISTS anlys_stat tb_cow_anlys_stat_enum;
ALTER TABLE tb_cow ADD COLUMN IF NOT EXISTS cow_repro_type tb_cow_cow_repro_type_enum;
ALTER TABLE tb_cow ADD COLUMN IF NOT EXISTS cow_status tb_cow_cow_status_enum DEFAULT '정상'::tb_cow_cow_status_enum;
ALTER TABLE tb_cow ADD COLUMN IF NOT EXISTS cow_short_no varchar(4);

-- 기타 테이블 컬럼 확장 (테이블 있을 경우만)
ALTER TABLE tb_genome_trait ALTER COLUMN dam TYPE varchar(20);
ALTER TABLE tb_region_genome ALTER COLUMN dam TYPE varchar(20);

-- tb_pedigree 모든 ID 컬럼 확장
ALTER TABLE tb_pedigree
ALTER COLUMN fk_animal_no TYPE varchar(20),
ALTER COLUMN sire_id TYPE varchar(20),
ALTER COLUMN dam_id TYPE varchar(20),
ALTER COLUMN paternal_grandsire_id TYPE varchar(20),
ALTER COLUMN paternal_granddam_id TYPE varchar(20),
ALTER COLUMN maternal_grandsire_id TYPE varchar(20),
ALTER COLUMN maternal_granddam_id TYPE varchar(20);

-- ============================================
-- PART 1: 마스터 데이터
-- ============================================

-- 1. 마커 타입 (2개)
INSERT INTO tb_marker_type (pk_type_cd, type_nm, type_desc, use_yn, reg_dt, updt_dt)
VALUES
  ('QTY', '육량형', '육량 관련 마커 (도체중, 등심단면적 등)', 'Y', NOW(), NOW()),
  ('QLT', '육질형', '육질 관련 마커 (근내지방도, 연도 등)', 'Y', NOW(), NOW());

-- 2. 마커 정보 (7개 유전자만 - 각 1개 대표 SNP)
INSERT INTO tb_marker (fk_marker_type, marker_nm, marker_desc, related_trait, snp_cnt, use_yn, favorable_allele, reg_dt, updt_dt)
VALUES
  -- 육량형 (3개)
  ('QTY', 'PLAG1', 'Pleiomorphic adenoma gene 1', '도체중', 1, 'Y', 'G', NOW(), NOW()),
  ('QTY', 'NCAPG2', 'Non-SMC condensin II complex subunit G2', '체구', 1, 'Y', 'T', NOW(), NOW()),
  ('QTY', 'BTB', 'BTB domain containing', '등심단면적', 1, 'Y', 'T', NOW(), NOW()),

  -- 육질형 (4개)
  ('QLT', 'NT5E', '5 prime nucleotidase ecto', '근내지방도', 1, 'Y', 'C', NOW(), NOW()),
  ('QLT', 'SCD', 'Stearoyl-CoA desaturase', '지방산불포화도', 1, 'Y', 'G', NOW(), NOW()),
  ('QLT', 'FASN', 'Fatty acid synthase', '지방합성', 1, 'Y', 'G', NOW(), NOW()),
  ('QLT', 'CAPN1', 'Calpain 1', '연도', 1, 'Y', 'G', NOW(), NOW());

-- 3. SNP 정보 (7개 - 각 유전자당 1개 대표 SNP)
INSERT INTO tb_snp_info (snp_nm, chr, position, snp_alleles, reg_dt, updt_dt)
VALUES
  -- 육량형 대표 SNP
  ('14:25016263', '14', 25016263, '[G/C]', NOW(), NOW()),  -- PLAG1 (GG/GC/CC)
  ('7:38528304', '7', 38528304, '[T/G]', NOW(), NOW()),    -- NCAPG2 (TT/TG/GG)
  ('5:45120340', '5', 45120340, '[T/C]', NOW(), NOW()),    -- BTB (TT/TC/CC)

  -- 육질형 대표 SNP
  ('6:58230560', '6', 58230560, '[C/T]', NOW(), NOW()),    -- NT5E (CC/CT/TT)
  ('26:21194784', '26', 21194784, '[G/A]', NOW(), NOW()),  -- SCD (GG/GA/AA)
  ('19:51230120', '19', 51230120, '[G/A]', NOW(), NOW()),  -- FASN (GG/GA/AA)
  ('29:44104889', '29', 44104889, '[G/A]', NOW(), NOW());  -- CAPN1 (GG/GA/AA)

-- 4. 마커-SNP 매핑 (7개 - 각 유전자당 1개 대표 SNP)
INSERT INTO tb_marker_snp (pk_fk_marker_no, pk_fk_snp_no, reg_dt, updt_dt)
SELECT m.pk_marker_no, s.pk_snp_no, NOW(), NOW() FROM tb_marker m, tb_snp_info s WHERE m.marker_nm = 'PLAG1' AND s.snp_nm = '14:25016263'
UNION ALL SELECT m.pk_marker_no, s.pk_snp_no, NOW(), NOW() FROM tb_marker m, tb_snp_info s WHERE m.marker_nm = 'NCAPG2' AND s.snp_nm = '7:38528304'
UNION ALL SELECT m.pk_marker_no, s.pk_snp_no, NOW(), NOW() FROM tb_marker m, tb_snp_info s WHERE m.marker_nm = 'BTB' AND s.snp_nm = '5:45120340'
UNION ALL SELECT m.pk_marker_no, s.pk_snp_no, NOW(), NOW() FROM tb_marker m, tb_snp_info s WHERE m.marker_nm = 'NT5E' AND s.snp_nm = '6:58230560'
UNION ALL SELECT m.pk_marker_no, s.pk_snp_no, NOW(), NOW() FROM tb_marker m, tb_snp_info s WHERE m.marker_nm = 'SCD' AND s.snp_nm = '26:21194784'
UNION ALL SELECT m.pk_marker_no, s.pk_snp_no, NOW(), NOW() FROM tb_marker m, tb_snp_info s WHERE m.marker_nm = 'FASN' AND s.snp_nm = '19:51230120'
UNION ALL SELECT m.pk_marker_no, s.pk_snp_no, NOW(), NOW() FROM tb_marker m, tb_snp_info s WHERE m.marker_nm = 'CAPN1' AND s.snp_nm = '29:44104889';

-- 5. 형질 정보 (35개 경제형질)
INSERT INTO tb_genome_trait_info (trait_nm, trait_ctgry, trait_desc, use_yn, reg_dt, updt_dt)
VALUES
  -- 생산 형질 (6개)
  ('12개월령체중', '생산', '12개월령 시점의 소 체중 (kg)', 'Y', NOW(), NOW()),
  ('도체중', '생산', '도축 후 내장을 제거한 상태의 체중 (kg)', 'Y', NOW(), NOW()),
  ('등심단면적', '생산', '등심의 단면적 크기 (cm²)', 'Y', NOW(), NOW()),
  ('등지방두께', '생산', '등 부위 지방층의 두께 (mm)', 'Y', NOW(), NOW()),
  ('근내지방도', '생산', '근육 내 지방의 분포 정도 (1-9등급)', 'Y', NOW(), NOW()),

  -- 체형 형질 (10개)
  ('체고', '체형', '땅에서 어깨 최고점까지의 높이 (cm)', 'Y', NOW(), NOW()),
  ('십자', '체형', '엉덩이(십자부) 높이 (cm)', 'Y', NOW(), NOW()),
  ('체장', '체형', '어깨에서 엉덩이까지의 몸 길이 (cm)', 'Y', NOW(), NOW()),
  ('흉심', '체형', '등에서 가슴 바닥까지의 깊이 (cm)', 'Y', NOW(), NOW()),
  ('흉폭', '체형', '가슴의 좌우 폭 (cm)', 'Y', NOW(), NOW()),
  ('고장', '체형', '엉덩이(고부) 길이 (cm)', 'Y', NOW(), NOW()),
  ('요각폭', '체형', '허리 부위 좌우 폭 (cm)', 'Y', NOW(), NOW()),
  ('곤폭', '체형', '엉덩이뼈(관골) 좌우 폭 (cm)', 'Y', NOW(), NOW()),
  ('좌골폭', '체형', '좌골(엉덩이 뒤쪽 뼈) 좌우 폭 (cm)', 'Y', NOW(), NOW()),
  ('흉위', '체형', '가슴 둘레 (cm)', 'Y', NOW(), NOW()),

  -- 부분육 중량 (10개)
  ('안심weight', '부분육중량', '안심 부위의 중량 (kg)', 'Y', NOW(), NOW()),
  ('등심weight', '부분육중량', '등심 부위의 중량 (kg)', 'Y', NOW(), NOW()),
  ('채끝weight', '부분육중량', '채끝(등심 끝부분) 중량 (kg)', 'Y', NOW(), NOW()),
  ('목심weight', '부분육중량', '목심 부위의 중량 (kg)', 'Y', NOW(), NOW()),
  ('앞다리weight', '부분육중량', '앞다리 부위의 중량 (kg)', 'Y', NOW(), NOW()),
  ('우둔weight', '부분육중량', '우둔(뒷다리 위쪽) 부위의 중량 (kg)', 'Y', NOW(), NOW()),
  ('설도weight', '부분육중량', '설도(뒷다리 바깥쪽) 부위의 중량 (kg)', 'Y', NOW(), NOW()),
  ('사태weight', '부분육중량', '사태(정강이) 부위의 중량 (kg)', 'Y', NOW(), NOW()),
  ('양지weight', '부분육중량', '양지(가슴) 부위의 중량 (kg)', 'Y', NOW(), NOW()),
  ('갈비weight', '부분육중량', '갈비 부위의 중량 (kg)', 'Y', NOW(), NOW()),

  -- 부분육 비율 (10개)
  ('안심rate', '부분육비율', '전체 도체중 대비 안심 비율 (%)', 'Y', NOW(), NOW()),
  ('등심rate', '부분육비율', '전체 도체중 대비 등심 비율 (%)', 'Y', NOW(), NOW()),
  ('채끝rate', '부분육비율', '전체 도체중 대비 채끝 비율 (%)', 'Y', NOW(), NOW()),
  ('목심rate', '부분육비율', '전체 도체중 대비 목심 비율 (%)', 'Y', NOW(), NOW()),
  ('앞다리rate', '부분육비율', '전체 도체중 대비 앞다리 비율 (%)', 'Y', NOW(), NOW()),
  ('우둔rate', '부분육비율', '전체 도체중 대비 우둔 비율 (%)', 'Y', NOW(), NOW()),
  ('설도rate', '부분육비율', '전체 도체중 대비 설도 비율 (%)', 'Y', NOW(), NOW()),
  ('사태rate', '부분육비율', '전체 도체중 대비 사태 비율 (%)', 'Y', NOW(), NOW()),
  ('양지rate', '부분육비율', '전체 도체중 대비 양지 비율 (%)', 'Y', NOW(), NOW()),
  ('갈비rate', '부분육비율', '전체 도체중 대비 갈비 비율 (%)', 'Y', NOW(), NOW());

-- 6. MPT 검사 항목 정보 (20개 - PRD 참고)
INSERT INTO tb_repro_mpt_info (excel_field_nm, db_field_nm, category_nm, field_order, use_yn, reg_dt, updt_dt)
VALUES
  -- 기본정보 (4개)
  ('개체번호', 'fkCowNo', '기본정보', 1, 'Y', NOW(), NOW()),
  ('생년월일', 'cowBirthDt', '기본정보', 2, 'Y', NOW(), NOW()),
  ('월령', 'monthAge', '기본정보', 3, 'Y', NOW(), NOW()),
  ('검사일', 'testDt', '기본정보', 4, 'Y', NOW(), NOW()),

  -- 에너지 (3개)
  ('혈당', 'bloodSugar', '에너지', 5, 'Y', NOW(), NOW()),
  ('콜레스테롤', 'cholesterol', '에너지', 6, 'Y', NOW(), NOW()),
  ('NEFA', 'nefa', '에너지', 7, 'Y', NOW(), NOW()),

  -- 단백질 (5개)
  ('총단백질', 'totalProtein', '단백질', 8, 'Y', NOW(), NOW()),
  ('알부민', 'albumin', '단백질', 9, 'Y', NOW(), NOW()),
  ('총글로불린', 'totalGlobulin', '단백질', 10, 'Y', NOW(), NOW()),
  ('A/G비율', 'agRatio', '단백질', 11, 'Y', NOW(), NOW()),
  ('BUN', 'bun', '단백질', 12, 'Y', NOW(), NOW()),

  -- 간기능 (3개)
  ('AST', 'ast', '간기능', 13, 'Y', NOW(), NOW()),
  ('GGT', 'ggt', '간기능', 14, 'Y', NOW(), NOW()),
  ('지방간지수', 'fattyLiverIndex', '간기능', 15, 'Y', NOW(), NOW()),

  -- 미네랄 (4개)
  ('칼슘', 'calcium', '미네랄', 16, 'Y', NOW(), NOW()),
  ('인', 'phosphorus', '미네랄', 17, 'Y', NOW(), NOW()),
  ('Ca/P비율', 'caPRatio', '미네랄', 18, 'Y', NOW(), NOW()),
  ('마그네슘', 'magnesium', '미네랄', 19, 'Y', NOW(), NOW()),

  -- 신기능 (1개)
  ('크레아티닌', 'creatinine', '신기능', 20, 'Y', NOW(), NOW());

-- ============================================
-- PART 2: 사용자 및 농장 데이터
-- ============================================

-- 7. test 유저 (1명) + 관리자 (1명)
INSERT INTO tb_users (user_se, user_inst_nm, farm_owner, user_id, user_password, user_name, user_phone, user_email, user_role, account_status, del_yn, reg_dt, updt_dt, reg_ip, reg_user_id)
VALUES
  ('FARM', '가나안목장', '가나안', 'test', '$2b$12$VEHr.XIAgXoCbku1FFquqeGoPZyWo291pxwEIdbUv96WG5JIJ3lPC', '테스트유저', '010-1234-5678', 'test@test.com', 'USER', 'ACTIVE', 'N', NOW(), NOW(), '127.0.0.1', 'test'),
  ('ORGAN', '한우개량사업소', NULL, 'admin', '$2b$12$UIgDzNxyFWRkeoG.Dw494.lMtI7lXHqUWYykYFtaLdtQ0M7w6FV9S', '관리자', '010-9999-9999', 'admin@admin.com', 'ADMIN', 'ACTIVE', 'N', NOW(), NOW(), '127.0.0.1', 'admin');

-- 8. 테스트농장 (1개)
INSERT INTO tb_farm (fk_user_no, farm_code, farm_nm, farm_address, farm_biz_no, farm_gov_no, del_yn, reg_dt, updt_dt)
SELECT u.pk_user_no, 'F000001', '테스트농장', '충청북도 보은군', '100-00-00000', '1000000000', 'N', NOW(), NOW()
FROM tb_users u WHERE u.user_id = 'test';

-- ============================================
-- PART 3: KPN (종축 수소) 데이터
-- ============================================

-- 9. KPN 정보 (5마리 - 매칭용)
INSERT INTO tb_kpn (pk_kpn_no, kpn_nm, kpn_birth_dt, kpn_breed, kpn_origin, kpn_desc, del_yn, reg_dt, updt_dt)
VALUES
  ('KPN0001', '우량 종축 1호', '2018-01-15', '한우', '충북 보은', '육질 개량 목적의 우수 종축', 'N', NOW(), NOW()),
  ('KPN0002', '우량 종축 2호', '2018-03-20', '한우', '충남 천안', '육량 개량 목적의 우수 종축', 'N', NOW(), NOW()),
  ('KPN0003', '우량 종축 3호', '2018-05-10', '한우', '전북 정읍', '종합 개량 목적의 우수 종축', 'N', NOW(), NOW()),
  ('KPN0004', '우량 종축 4호', '2018-07-25', '한우', '경기 안성', '근내지방도 개량 우수 종축', 'N', NOW(), NOW()),
  ('KPN0005', '우량 종축 5호', '2018-09-30', '한우', '경북 영주', '도체중 개량 우수 종축', 'N', NOW(), NOW()),
  ('KPN0006', '우량 종축 6호', '2019-01-15', '한우', '강원 평창', '종합 개량 목적의 우수 종축', 'N', NOW(), NOW()),
  ('KPN0007', '우량 종축 7호', '2019-03-20', '한우', '경남 거창', '육질 개량 목적의 우수 종축', 'N', NOW(), NOW()),
  ('KPN0008', '우량 종축 8호', '2019-05-10', '한우', '전남 장흥', '육량 개량 목적의 우수 종축', 'N', NOW(), NOW()),
  ('KPN0009', '우량 종축 9호', '2019-07-25', '한우', '제주 제주', '근내지방도 개량 우수 종축', 'N', NOW(), NOW()),
  ('KPN0010', '열성형 테스트 종축', '2019-09-01', '한우', '서울 종로', '열성형 유전자 테스트용 종축', 'N', NOW(), NOW());

-- 10. 농장-KPN 매핑 (10개)
INSERT INTO tb_farm_kpn (fk_farm_no, fk_kpn_no, del_yn, reg_dt, updt_dt)
SELECT f.pk_farm_no, 'KPN0001', 'N', NOW(), NOW() FROM tb_farm f WHERE f.farm_nm = '테스트농장'
UNION ALL SELECT f.pk_farm_no, 'KPN0002', 'N', NOW(), NOW() FROM tb_farm f WHERE f.farm_nm = '테스트농장'
UNION ALL SELECT f.pk_farm_no, 'KPN0003', 'N', NOW(), NOW() FROM tb_farm f WHERE f.farm_nm = '테스트농장'
UNION ALL SELECT f.pk_farm_no, 'KPN0004', 'N', NOW(), NOW() FROM tb_farm f WHERE f.farm_nm = '테스트농장'
UNION ALL SELECT f.pk_farm_no, 'KPN0005', 'N', NOW(), NOW() FROM tb_farm f WHERE f.farm_nm = '테스트농장'
UNION ALL SELECT f.pk_farm_no, 'KPN0006', 'N', NOW(), NOW() FROM tb_farm f WHERE f.farm_nm = '테스트농장'
UNION ALL SELECT f.pk_farm_no, 'KPN0007', 'N', NOW(), NOW() FROM tb_farm f WHERE f.farm_nm = '테스트농장'
UNION ALL SELECT f.pk_farm_no, 'KPN0008', 'N', NOW(), NOW() FROM tb_farm f WHERE f.farm_nm = '테스트농장'
UNION ALL SELECT f.pk_farm_no, 'KPN0009', 'N', NOW(), NOW() FROM tb_farm f WHERE f.farm_nm = '테스트농장'
UNION ALL SELECT f.pk_farm_no, 'KPN0010', 'N', NOW(), NOW() FROM tb_farm f WHERE f.farm_nm = '테스트농장';

-- ============================================
-- PART 4: 업로드 파일 데이터
-- ============================================

-- 11. 업로드 파일 (1개 - 유전체 분석용)
INSERT INTO tb_upload_file (file_type, file_nm, file_path, file_size, proc_stat, proc_cnt, del_yn, reg_dt, updt_dt)
VALUES
  ('유전체', 'test_genome_data.csv', '/uploads/test/genome_001.csv', 204800, '완료', 3, 'N', NOW(), NOW());

-- ============================================
-- PART 5: 암소 데이터 (8마리)
-- ============================================

-- 12. 암소 8마리 (모두 암소)
INSERT INTO tb_cow (pk_cow_idx, fk_farm_no, cow_birth_dt, cow_sex, anlys_stat, del_yn, reg_dt, updt_dt)
SELECT '001122334401', f.pk_farm_no, '2020-01-15'::date, 'F', '친자일치'::tb_cow_anlys_stat_enum, 'N', NOW(), NOW()
FROM tb_farm f WHERE f.farm_nm = '테스트농장'
UNION ALL
SELECT '001122334402', f.pk_farm_no, '2021-03-20'::date, 'F', '친자일치'::tb_cow_anlys_stat_enum, 'N', NOW(), NOW()
FROM tb_farm f WHERE f.farm_nm = '테스트농장'
UNION ALL
SELECT '001122334403', f.pk_farm_no, '2022-05-10'::date, 'F', '친자일치'::tb_cow_anlys_stat_enum, 'N', NOW(), NOW()
FROM tb_farm f WHERE f.farm_nm = '테스트농장'
UNION ALL
SELECT '001122334404', f.pk_farm_no, '2020-08-22'::date, 'F', '친자일치'::tb_cow_anlys_stat_enum, 'N', NOW(), NOW()
FROM tb_farm f WHERE f.farm_nm = '테스트농장'
UNION ALL
SELECT '001122334405', f.pk_farm_no, '2021-11-14'::date, 'F', '친자일치'::tb_cow_anlys_stat_enum, 'N', NOW(), NOW()
FROM tb_farm f WHERE f.farm_nm = '테스트농장'
UNION ALL
SELECT '001122334406', f.pk_farm_no, '2022-02-18'::date, 'F', '친자일치'::tb_cow_anlys_stat_enum, 'N', NOW(), NOW()
FROM tb_farm f WHERE f.farm_nm = '테스트농장'
UNION ALL
SELECT '001122334407', f.pk_farm_no, '2020-12-05'::date, 'F', '친자일치'::tb_cow_anlys_stat_enum, 'N', NOW(), NOW()
FROM tb_farm f WHERE f.farm_nm = '테스트농장'
UNION ALL
SELECT '001122334408', f.pk_farm_no, '2021-06-28'::date, 'F', '친자일치'::tb_cow_anlys_stat_enum, 'N', NOW(), NOW()
FROM tb_farm f WHERE f.farm_nm = '테스트농장';

-- 13. 유전체 형질 분석 기록 (8건) - PRD 실제 데이터
INSERT INTO tb_genome_trait (fk_file_no, fk_cow_no, sire, dam, anlys_dt, reg_dt, updt_dt)
SELECT f.pk_file_no, '001122334401', 'KPN1302', 'KOR002166422860', '2025-01-15'::date, NOW(), NOW()
FROM tb_upload_file f WHERE f.file_nm = 'test_genome_data.csv'
UNION ALL
SELECT f.pk_file_no, '001122334402', 'KPN1404', 'KOR002168990465', '2025-01-16'::date, NOW(), NOW()
FROM tb_upload_file f WHERE f.file_nm = 'test_genome_data.csv'
UNION ALL
SELECT f.pk_file_no, '001122334403', 'KPN1101', 'KOR002139427192', '2025-01-17'::date, NOW(), NOW()
FROM tb_upload_file f WHERE f.file_nm = 'test_genome_data.csv'
UNION ALL
SELECT f.pk_file_no, '001122334404', 'KPN1332', 'KOR002116879613', '2025-01-18'::date, NOW(), NOW()
FROM tb_upload_file f WHERE f.file_nm = 'test_genome_data.csv'
UNION ALL
SELECT f.pk_file_no, '001122334405', 'KPN1302', 'KOR002139445434', '2025-01-19'::date, NOW(), NOW()
FROM tb_upload_file f WHERE f.file_nm = 'test_genome_data.csv'
UNION ALL
SELECT f.pk_file_no, '001122334406', 'KPN1425', 'KOR002142963752', '2025-01-20'::date, NOW(), NOW()
FROM tb_upload_file f WHERE f.file_nm = 'test_genome_data.csv'
UNION ALL
SELECT f.pk_file_no, '001122334407', 'KPN1302', 'KOR002118194975', '2025-01-21'::date, NOW(), NOW()
FROM tb_upload_file f WHERE f.file_nm = 'test_genome_data.csv'
UNION ALL
SELECT f.pk_file_no, '001122334408', 'KPN990', 'KOR000198968205', '2025-01-22'::date, NOW(), NOW()
FROM tb_upload_file f WHERE f.file_nm = 'test_genome_data.csv';

-- 14. 개체별 경제형질 측정값 (3마리 × 35형질 = 105건) - 실제 PRD 데이터 반영
-- 암소1 (001122334401) - PRD 데이터: KOR002191643715 (최우수 개체)
INSERT INTO tb_genome_cow (fk_genome_no, fk_trait_no, trait_val, breed_val, percentile, reg_dt, updt_dt)
-- 생산 형질 (5개)
SELECT g.pk_genome_no, t.pk_trait_no, 73.2, 2.3, 1, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334401' AND t.trait_nm = '12개월령체중' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 76.3, 1.9, 2, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334401' AND t.trait_nm = '도체중' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 14.8, 1.9, 2, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334401' AND t.trait_nm = '등심단면적' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, -2.2, -1.1, 12, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334401' AND t.trait_nm = '등지방두께' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.3, -0.5, 67, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334401' AND t.trait_nm = '근내지방도' UNION ALL
-- 체형 형질 (10개)
SELECT g.pk_genome_no, t.pk_trait_no, 5.6, 2.0, 2, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334401' AND t.trait_nm = '체고' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 6.7, 2.3, 1, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334401' AND t.trait_nm = '십자' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 9.2, 2.4, 0, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334401' AND t.trait_nm = '체장' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.6, 0.3, 39, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334401' AND t.trait_nm = '흉심' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 2.6, 2.1, 1, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334401' AND t.trait_nm = '흉폭' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 2.5, 1.9, 2, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334401' AND t.trait_nm = '고장' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 1.8, 1.4, 8, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334401' AND t.trait_nm = '요각폭' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 3.8, 2.5, 0, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334401' AND t.trait_nm = '곤폭' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 2.0, 2.4, 0, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334401' AND t.trait_nm = '좌골폭' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 4.2, 1.0, 16, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334401' AND t.trait_nm = '흉위' UNION ALL
-- 부분육 중량 (10개)
SELECT g.pk_genome_no, t.pk_trait_no, 1.5, 2.5, 0, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334401' AND t.trait_nm = '안심weight' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 6.7, 1.7, 4, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334401' AND t.trait_nm = '등심weight' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 2.1, 2.4, 0, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334401' AND t.trait_nm = '채끝weight' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 4.7, 2.8, 0, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334401' AND t.trait_nm = '목심weight' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 6.3, 2.1, 1, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334401' AND t.trait_nm = '앞다리weight' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 5.0, 2.1, 1, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334401' AND t.trait_nm = '우둔weight' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 9.6, 2.4, 0, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334401' AND t.trait_nm = '설도weight' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 3.9, 2.1, 2, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334401' AND t.trait_nm = '사태weight' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 6.1, 2.1, 1, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334401' AND t.trait_nm = '양지weight' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 7.2, 1.0, 15, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334401' AND t.trait_nm = '갈비weight' UNION ALL
-- 부분육 비율 (10개)
SELECT g.pk_genome_no, t.pk_trait_no, 0.1, 1.8, 3, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334401' AND t.trait_nm = '안심rate' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.1, -0.1, 54, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334401' AND t.trait_nm = '등심rate' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.2, 1.6, 5, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334401' AND t.trait_nm = '채끝rate' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.5, 2.9, 0, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334401' AND t.trait_nm = '목심rate' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.4, 1.7, 4, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334401' AND t.trait_nm = '앞다리rate' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.3, 1.4, 8, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334401' AND t.trait_nm = '우둔rate' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.9, 2.6, 0, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334401' AND t.trait_nm = '설도rate' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.3, 1.8, 3, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334401' AND t.trait_nm = '사태rate' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.2, 1.2, 10, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334401' AND t.trait_nm = '양지rate' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, -0.9, -2.9, 99, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334401' AND t.trait_nm = '갈비rate' UNION ALL

-- 암소2 (001122334402) - PRD 데이터: KOR002194218364 (평균 개체)
-- 생산 형질 (6개)
SELECT g.pk_genome_no, t.pk_trait_no, 26.7, 0.1, 46, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334402' AND t.trait_nm = '12개월령체중' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 26.0, -0.1, 54, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334402' AND t.trait_nm = '도체중' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 4.6, -0.3, 62, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334402' AND t.trait_nm = '등심단면적' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, -1.5, -0.6, 27, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334402' AND t.trait_nm = '등지방두께' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.5, -0.2, 58, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334402' AND t.trait_nm = '근내지방도' UNION ALL
-- 체형 형질 (10개)
SELECT g.pk_genome_no, t.pk_trait_no, 1.7, 0.3, 38, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334402' AND t.trait_nm = '체고' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 2.0, 0.4, 34, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334402' AND t.trait_nm = '십자' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 4.5, 0.8, 21, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334402' AND t.trait_nm = '체장' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, -0.3, -0.1, 54, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334402' AND t.trait_nm = '흉심' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.5, 0.2, 42, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334402' AND t.trait_nm = '흉폭' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.5, 0.3, 38, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334402' AND t.trait_nm = '고장' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.5, 0.3, 38, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334402' AND t.trait_nm = '요각폭' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 1.1, 0.6, 27, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334402' AND t.trait_nm = '곤폭' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.9, 0.5, 31, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334402' AND t.trait_nm = '좌골폭' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, -0.1, -0.2, 58, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334402' AND t.trait_nm = '흉위' UNION ALL
-- 부분육 중량 (10개)
SELECT g.pk_genome_no, t.pk_trait_no, 2.1, -0.2, 58, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334402' AND t.trait_nm = '안심weight' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.5, -0.1, 54, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334402' AND t.trait_nm = '등심weight' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 1.8, 0.1, 46, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334402' AND t.trait_nm = '채끝weight' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 2.1, 0.1, 46, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334402' AND t.trait_nm = '목심weight' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 1.7, 0.0, 50, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334402' AND t.trait_nm = '앞다리weight' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 2.2, -0.3, 62, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334402' AND t.trait_nm = '우둔weight' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 1.3, 0.1, 46, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334402' AND t.trait_nm = '설도weight' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 2.3, 0.0, 50, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334402' AND t.trait_nm = '사태weight' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 3.2, -0.1, 54, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334402' AND t.trait_nm = '양지weight' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.0, 0.0, 50, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334402' AND t.trait_nm = '갈비weight' UNION ALL
-- 부분육 비율 (10개)
SELECT g.pk_genome_no, t.pk_trait_no, 0.0, -0.2, 58, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334402' AND t.trait_nm = '안심rate' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.0, -0.1, 54, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334402' AND t.trait_nm = '등심rate' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.2, 0.1, 46, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334402' AND t.trait_nm = '채끝rate' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.2, 0.1, 46, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334402' AND t.trait_nm = '목심rate' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.1, 0.0, 50, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334402' AND t.trait_nm = '앞다리rate' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.1, 0.0, 50, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334402' AND t.trait_nm = '우둔rate' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.1, 0.1, 46, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334402' AND t.trait_nm = '설도rate' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.2, 0.2, 42, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334402' AND t.trait_nm = '사태rate' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, -0.1, -0.1, 54, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334402' AND t.trait_nm = '양지rate' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.2, 0.1, 46, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334402' AND t.trait_nm = '갈비rate' UNION ALL

-- 암소3 (001122334403) - PRD 데이터: KOR002169683538 (저조한 개체)
-- 생산 형질 (5개)
SELECT g.pk_genome_no, t.pk_trait_no, -18.0, -2.0, 97, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334403' AND t.trait_nm = '12개월령체중' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, -18.9, -1.9, 97, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334403' AND t.trait_nm = '도체중' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, -7.2, -2.8, 99, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334403' AND t.trait_nm = '등심단면적' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.4, 0.6, 73, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334403' AND t.trait_nm = '등지방두께' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.5, -0.1, 54, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334403' AND t.trait_nm = '근내지방도' UNION ALL
-- 체형 형질 (10개)
SELECT g.pk_genome_no, t.pk_trait_no, -1.6, -1.2, 89, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334403' AND t.trait_nm = '체고' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, -1.6, -1.2, 89, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334403' AND t.trait_nm = '십자' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, -1.9, -1.5, 93, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334403' AND t.trait_nm = '체장' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, -1.4, -1.7, 95, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334403' AND t.trait_nm = '흉심' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, -1.3, -2.1, 98, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334403' AND t.trait_nm = '흉폭' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, -0.8, -1.6, 94, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334403' AND t.trait_nm = '고장' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, -1.1, -2.1, 98, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334403' AND t.trait_nm = '요각폭' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, -0.7, -1.4, 92, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334403' AND t.trait_nm = '곤폭' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, -0.1, -1.0, 83, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334403' AND t.trait_nm = '좌골폭' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, -4.7, -2.4, 99, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334403' AND t.trait_nm = '흉위' UNION ALL
-- 부분육 중량 (10개)
SELECT g.pk_genome_no, t.pk_trait_no, -0.3, -2.0, 97, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334403' AND t.trait_nm = '안심weight' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, -1.5, -2.0, 97, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334403' AND t.trait_nm = '등심weight' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, -0.6, -2.2, 98, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334403' AND t.trait_nm = '채끝weight' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, -0.8, -1.7, 95, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334403' AND t.trait_nm = '목심weight' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, -0.8, -1.5, 93, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334403' AND t.trait_nm = '앞다리weight' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, -1.5, -1.9, 97, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334403' AND t.trait_nm = '우둔weight' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, -2.3, -1.9, 97, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334403' AND t.trait_nm = '설도weight' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, -0.9, -1.8, 96, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334403' AND t.trait_nm = '사태weight' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, -2.5, -2.4, 99, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334403' AND t.trait_nm = '양지weight' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, -1.7, -1.7, 95, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334403' AND t.trait_nm = '갈비weight' UNION ALL
-- 부분육 비율 (10개)
SELECT g.pk_genome_no, t.pk_trait_no, 0.0, -0.8, 78, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334403' AND t.trait_nm = '안심rate' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, -0.1, -0.7, 75, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334403' AND t.trait_nm = '등심rate' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, -0.1, -1.1, 87, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334403' AND t.trait_nm = '채끝rate' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.0, -0.5, 70, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334403' AND t.trait_nm = '목심rate' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.1, -0.2, 56, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334403' AND t.trait_nm = '앞다리rate' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, -0.2, -0.9, 82, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334403' AND t.trait_nm = '우둔rate' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, -0.2, -1.3, 89, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334403' AND t.trait_nm = '설도rate' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, -0.1, -1.2, 87, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334403' AND t.trait_nm = '사태rate' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, -0.4, -2.1, 98, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334403' AND t.trait_nm = '양지rate' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.2, 0.9, 19, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334403' AND t.trait_nm = '갈비rate' UNION ALL

-- 암소4 (001122334404) - PRD 데이터: KOR002164611634 (최우수 개체 2등급)
-- 생산 형질 (5개)
SELECT g.pk_genome_no, t.pk_trait_no, 59.7, 1.8, 8, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334404' AND t.trait_nm = '12개월령체중' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 65.1, 2.4, 10, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334404' AND t.trait_nm = '18개월령체중' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 16.5, 0.9, 22, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334404' AND t.trait_nm = '도체중' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, -0.1, -0.3, 64, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334404' AND t.trait_nm = '등지방두께' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.4, 0.6, 32, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334404' AND t.trait_nm = '근내지방도' UNION ALL
-- 체형 형질 (10개)
SELECT g.pk_genome_no, t.pk_trait_no, 0.4, 1.2, 17, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334404' AND t.trait_nm = '체고' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.6, 1.8, 13, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334404' AND t.trait_nm = '십자부고' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.5, 1.5, 15, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334404' AND t.trait_nm = '체장' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.3, 0.9, 23, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334404' AND t.trait_nm = '흉위' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.2, 0.6, 32, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334404' AND t.trait_nm = '흉심' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.3, 0.8, 26, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334404' AND t.trait_nm = '후폭' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.2, 0.5, 35, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334404' AND t.trait_nm = '곤폭' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.4, 1.1, 19, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334404' AND t.trait_nm = '좌골폭' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.3, 0.7, 28, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334404' AND t.trait_nm = '관부둘레' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.5, 1.4, 16, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334404' AND t.trait_nm = '유방형태' UNION ALL
-- 부분육 중량 (10개)
SELECT g.pk_genome_no, t.pk_trait_no, 0.7, 1.9, 12, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334404' AND t.trait_nm = '안심' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.8, 2.1, 10, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334404' AND t.trait_nm = '등심' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.6, 1.6, 15, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334404' AND t.trait_nm = '채끝' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.5, 1.3, 18, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334404' AND t.trait_nm = '목심' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.4, 1.0, 21, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334404' AND t.trait_nm = '앞다리' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.9, 2.3, 9, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334404' AND t.trait_nm = '우둔' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 1.0, 2.5, 7, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334404' AND t.trait_nm = '설도' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.7, 1.8, 13, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334404' AND t.trait_nm = '사태' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.5, 1.2, 19, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334404' AND t.trait_nm = '양지' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.6, 1.5, 16, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334404' AND t.trait_nm = '갈비' UNION ALL
-- 부분육 비율 (10개)
SELECT g.pk_genome_no, t.pk_trait_no, 0.1, 0.4, 44, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334404' AND t.trait_nm = '안심rate' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.2, 0.6, 33, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334404' AND t.trait_nm = '등심rate' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.1, 0.3, 47, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334404' AND t.trait_nm = '채끝rate' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.1, 0.2, 52, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334404' AND t.trait_nm = '목심rate' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.0, -0.1, 59, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334404' AND t.trait_nm = '앞다리rate' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.2, 0.7, 29, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334404' AND t.trait_nm = '우둔rate' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.3, 0.8, 25, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334404' AND t.trait_nm = '설도rate' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.1, 0.4, 43, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334404' AND t.trait_nm = '사태rate' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.0, -0.2, 62, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334404' AND t.trait_nm = '양지rate' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.1, 0.3, 48, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334404' AND t.trait_nm = '갈비rate' UNION ALL

-- 암소5 (001122334405) - PRD 데이터: KOR002174834468 (우수 개체)
-- 생산 형질 (5개)
SELECT g.pk_genome_no, t.pk_trait_no, 49.2, 1.4, 14, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334405' AND t.trait_nm = '12개월령체중' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 52.9, 1.9, 15, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334405' AND t.trait_nm = '18개월령체중' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 9.9, 0.6, 30, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334405' AND t.trait_nm = '도체중' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.0, -0.1, 55, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334405' AND t.trait_nm = '등지방두께' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.2, 0.3, 42, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334405' AND t.trait_nm = '근내지방도' UNION ALL
-- 체형 형질 (10개)
SELECT g.pk_genome_no, t.pk_trait_no, 0.2, 0.7, 28, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334405' AND t.trait_nm = '체고' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.3, 0.9, 23, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334405' AND t.trait_nm = '십자부고' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.3, 0.8, 25, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334405' AND t.trait_nm = '체장' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.2, 0.5, 35, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334405' AND t.trait_nm = '흉위' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.1, 0.3, 45, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334405' AND t.trait_nm = '흉심' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.2, 0.4, 39, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334405' AND t.trait_nm = '후폭' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.1, 0.2, 48, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334405' AND t.trait_nm = '곤폭' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.2, 0.6, 32, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334405' AND t.trait_nm = '좌골폭' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.2, 0.4, 40, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334405' AND t.trait_nm = '관부둘레' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.3, 0.7, 29, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334405' AND t.trait_nm = '유방형태' UNION ALL
-- 부분육 중량 (10개)
SELECT g.pk_genome_no, t.pk_trait_no, 0.4, 1.1, 20, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334405' AND t.trait_nm = '안심' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.5, 1.3, 18, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334405' AND t.trait_nm = '등심' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.3, 0.9, 24, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334405' AND t.trait_nm = '채끝' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.3, 0.7, 28, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334405' AND t.trait_nm = '목심' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.2, 0.5, 35, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334405' AND t.trait_nm = '앞다리' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.5, 1.4, 17, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334405' AND t.trait_nm = '우둔' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.6, 1.6, 15, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334405' AND t.trait_nm = '설도' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.4, 1.0, 21, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334405' AND t.trait_nm = '사태' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.3, 0.7, 29, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334405' AND t.trait_nm = '양지' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.3, 0.8, 26, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334405' AND t.trait_nm = '갈비' UNION ALL
-- 부분육 비율 (10개)
SELECT g.pk_genome_no, t.pk_trait_no, 0.0, 0.1, 55, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334405' AND t.trait_nm = '안심rate' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.1, 0.3, 47, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334405' AND t.trait_nm = '등심rate' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.0, 0.1, 56, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334405' AND t.trait_nm = '채끝rate' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.0, 0.0, 58, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334405' AND t.trait_nm = '목심rate' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, -0.1, -0.2, 64, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334405' AND t.trait_nm = '앞다리rate' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.1, 0.3, 48, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334405' AND t.trait_nm = '우둔rate' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.1, 0.4, 43, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334405' AND t.trait_nm = '설도rate' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.0, 0.1, 54, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334405' AND t.trait_nm = '사태rate' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, -0.1, -0.3, 68, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334405' AND t.trait_nm = '양지rate' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.0, 0.2, 51, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334405' AND t.trait_nm = '갈비rate' UNION ALL

-- 암소6 (001122334406) - PRD 데이터: KOR002180266073 (평균 상위 개체)
-- 생산 형질 (5개)
SELECT g.pk_genome_no, t.pk_trait_no, 31.4, 0.9, 32, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334406' AND t.trait_nm = '12개월령체중' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 33.4, 1.2, 31, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334406' AND t.trait_nm = '18개월령체중' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 5.7, 0.4, 42, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334406' AND t.trait_nm = '도체중' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.1, 0.1, 48, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334406' AND t.trait_nm = '등지방두께' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.1, 0.1, 52, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334406' AND t.trait_nm = '근내지방도' UNION ALL
-- 체형 형질 (10개)
SELECT g.pk_genome_no, t.pk_trait_no, 0.1, 0.3, 45, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334406' AND t.trait_nm = '체고' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.1, 0.4, 41, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334406' AND t.trait_nm = '십자부고' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.1, 0.3, 46, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334406' AND t.trait_nm = '체장' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.0, 0.1, 54, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334406' AND t.trait_nm = '흉위' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.0, 0.0, 58, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334406' AND t.trait_nm = '흉심' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.0, 0.1, 55, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334406' AND t.trait_nm = '후폭' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.0, 0.0, 59, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334406' AND t.trait_nm = '곤폭' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.1, 0.2, 49, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334406' AND t.trait_nm = '좌골폭' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.0, 0.1, 56, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334406' AND t.trait_nm = '관부둘레' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.1, 0.3, 44, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334406' AND t.trait_nm = '유방형태' UNION ALL
-- 부분육 중량 (10개)
SELECT g.pk_genome_no, t.pk_trait_no, 0.2, 0.5, 36, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334406' AND t.trait_nm = '안심' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.2, 0.6, 33, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334406' AND t.trait_nm = '등심' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.1, 0.4, 41, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334406' AND t.trait_nm = '채끝' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.1, 0.3, 45, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334406' AND t.trait_nm = '목심' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.1, 0.2, 50, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334406' AND t.trait_nm = '앞다리' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.2, 0.7, 30, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334406' AND t.trait_nm = '우둔' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.3, 0.8, 27, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334406' AND t.trait_nm = '설도' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.2, 0.5, 37, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334406' AND t.trait_nm = '사태' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.1, 0.3, 46, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334406' AND t.trait_nm = '양지' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.1, 0.4, 42, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334406' AND t.trait_nm = '갈비' UNION ALL
-- 부분육 비율 (10개)
SELECT g.pk_genome_no, t.pk_trait_no, 0.0, -0.1, 61, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334406' AND t.trait_nm = '안심rate' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.0, 0.0, 58, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334406' AND t.trait_nm = '등심rate' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.0, -0.1, 62, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334406' AND t.trait_nm = '채끝rate' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.0, -0.1, 63, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334406' AND t.trait_nm = '목심rate' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, -0.1, -0.3, 69, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334406' AND t.trait_nm = '앞다리rate' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.0, 0.1, 57, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334406' AND t.trait_nm = '우둔rate' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.0, 0.2, 53, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334406' AND t.trait_nm = '설도rate' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.0, 0.0, 60, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334406' AND t.trait_nm = '사태rate' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, -0.2, -0.5, 74, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334406' AND t.trait_nm = '양지rate' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.0, 0.1, 55, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334406' AND t.trait_nm = '갈비rate' UNION ALL

-- 암소7 (001122334407) - PRD 데이터: KOR002168919651 (평균 개체)
-- 생산 형질 (5개)
SELECT g.pk_genome_no, t.pk_trait_no, 29.1, 0.8, 36, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334407' AND t.trait_nm = '12개월령체중' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 26.3, 0.9, 39, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334407' AND t.trait_nm = '18개월령체중' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 9.4, 0.5, 32, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334407' AND t.trait_nm = '도체중' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.0, 0.0, 57, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334407' AND t.trait_nm = '등지방두께' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.1, 0.0, 54, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334407' AND t.trait_nm = '근내지방도' UNION ALL
-- 체형 형질 (10개)
SELECT g.pk_genome_no, t.pk_trait_no, 0.0, 0.1, 52, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334407' AND t.trait_nm = '체고' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.0, 0.2, 50, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334407' AND t.trait_nm = '십자부고' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.0, 0.1, 53, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334407' AND t.trait_nm = '체장' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.0, 0.0, 58, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334407' AND t.trait_nm = '흉위' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.0, -0.1, 62, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334407' AND t.trait_nm = '흉심' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.0, 0.0, 59, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334407' AND t.trait_nm = '후폭' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.0, -0.1, 63, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334407' AND t.trait_nm = '곤폭' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.0, 0.1, 55, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334407' AND t.trait_nm = '좌골폭' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.0, 0.0, 60, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334407' AND t.trait_nm = '관부둘레' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.0, 0.2, 49, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334407' AND t.trait_nm = '유방형태' UNION ALL
-- 부분육 중량 (10개)
SELECT g.pk_genome_no, t.pk_trait_no, 0.1, 0.3, 46, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334407' AND t.trait_nm = '안심' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.1, 0.4, 42, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334407' AND t.trait_nm = '등심' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.1, 0.2, 51, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334407' AND t.trait_nm = '채끝' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.0, 0.1, 56, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334407' AND t.trait_nm = '목심' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.0, 0.0, 59, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334407' AND t.trait_nm = '앞다리' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.1, 0.4, 43, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334407' AND t.trait_nm = '우둔' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.2, 0.5, 38, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334407' AND t.trait_nm = '설도' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.1, 0.3, 47, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334407' AND t.trait_nm = '사태' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.0, 0.1, 54, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334407' AND t.trait_nm = '양지' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.1, 0.2, 50, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334407' AND t.trait_nm = '갈비' UNION ALL
-- 부분육 비율 (10개)
SELECT g.pk_genome_no, t.pk_trait_no, 0.0, -0.2, 65, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334407' AND t.trait_nm = '안심rate' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.0, -0.1, 61, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334407' AND t.trait_nm = '등심rate' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.0, -0.2, 66, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334407' AND t.trait_nm = '채끝rate' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.0, -0.2, 67, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334407' AND t.trait_nm = '목심rate' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, -0.1, -0.4, 72, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334407' AND t.trait_nm = '앞다리rate' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.0, 0.0, 58, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334407' AND t.trait_nm = '우둔rate' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.0, 0.1, 56, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334407' AND t.trait_nm = '설도rate' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.0, -0.1, 64, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334407' AND t.trait_nm = '사태rate' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, -0.2, -0.7, 78, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334407' AND t.trait_nm = '양지rate' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.0, 0.0, 59, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334407' AND t.trait_nm = '갈비rate' UNION ALL

-- 암소8 (001122334408) - PRD 데이터: KOR002115897818 (낮은 개체 2등급)
-- 생산 형질 (5개)
SELECT g.pk_genome_no, t.pk_trait_no, 1.1, 0.1, 53, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334408' AND t.trait_nm = '12개월령체중' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, -9.6, -0.3, 68, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334408' AND t.trait_nm = '18개월령체중' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, -2.6, -0.2, 62, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334408' AND t.trait_nm = '도체중' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.1, 0.2, 45, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334408' AND t.trait_nm = '등지방두께' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.0, -0.1, 61, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334408' AND t.trait_nm = '근내지방도' UNION ALL
-- 체형 형질 (10개)
SELECT g.pk_genome_no, t.pk_trait_no, -0.1, -0.3, 68, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334408' AND t.trait_nm = '체고' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, -0.1, -0.4, 72, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334408' AND t.trait_nm = '십자부고' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, -0.1, -0.3, 69, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334408' AND t.trait_nm = '체장' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, -0.1, -0.2, 65, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334408' AND t.trait_nm = '흉위' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.0, -0.2, 66, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334408' AND t.trait_nm = '흉심' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, -0.1, -0.2, 67, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334408' AND t.trait_nm = '후폭' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.0, -0.2, 68, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334408' AND t.trait_nm = '곤폭' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, -0.1, -0.3, 70, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334408' AND t.trait_nm = '좌골폭' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, -0.1, -0.3, 71, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334408' AND t.trait_nm = '관부둘레' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, -0.1, -0.4, 73, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334408' AND t.trait_nm = '유방형태' UNION ALL
-- 부분육 중량 (10개)
SELECT g.pk_genome_no, t.pk_trait_no, -0.1, -0.3, 68, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334408' AND t.trait_nm = '안심' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, -0.1, -0.4, 72, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334408' AND t.trait_nm = '등심' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, -0.1, -0.3, 69, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334408' AND t.trait_nm = '채끝' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, -0.1, -0.2, 66, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334408' AND t.trait_nm = '목심' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.0, -0.1, 63, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334408' AND t.trait_nm = '앞다리' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, -0.2, -0.5, 75, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334408' AND t.trait_nm = '우둔' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, -0.2, -0.6, 78, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334408' AND t.trait_nm = '설도' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, -0.1, -0.4, 73, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334408' AND t.trait_nm = '사태' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, -0.1, -0.3, 70, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334408' AND t.trait_nm = '양지' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, -0.1, -0.3, 71, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334408' AND t.trait_nm = '갈비' UNION ALL
-- 부분육 비율 (10개)
SELECT g.pk_genome_no, t.pk_trait_no, -0.1, -0.4, 73, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334408' AND t.trait_nm = '안심rate' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, -0.1, -0.5, 76, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334408' AND t.trait_nm = '등심rate' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, -0.1, -0.6, 79, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334408' AND t.trait_nm = '채끝rate' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.0, -0.3, 70, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334408' AND t.trait_nm = '목심rate' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, -0.1, -0.5, 77, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334408' AND t.trait_nm = '앞다리rate' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, -0.1, -0.6, 80, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334408' AND t.trait_nm = '우둔rate' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, -0.2, -0.7, 82, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334408' AND t.trait_nm = '설도rate' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, -0.1, -0.6, 81, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334408' AND t.trait_nm = '사태rate' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, -0.3, -1.0, 86, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334408' AND t.trait_nm = '양지rate' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.0, -0.2, 65, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334408' AND t.trait_nm = '갈비rate';

-- 15. 개체별 SNP genotype (3마리 × 7 SNP = 21건) - 대표 SNP만 사용
-- 암소1 (001122334401) - 우수 유전자형 (모두 favorable homozygous)
INSERT INTO tb_snp_cow (fk_file_no, fk_cow_no, fk_snp_no, allele1_top, allele2_top, reg_dt, updt_dt)
SELECT f.pk_file_no, '001122334401', s.pk_snp_no, 'G', 'G', NOW(), NOW() FROM tb_upload_file f, tb_snp_info s WHERE f.file_nm = 'test_genome_data.csv' AND s.snp_nm = '14:25016263' -- PLAG1 GG (favorable)
UNION ALL SELECT f.pk_file_no, '001122334401', s.pk_snp_no, 'T', 'T', NOW(), NOW() FROM tb_upload_file f, tb_snp_info s WHERE f.file_nm = 'test_genome_data.csv' AND s.snp_nm = '7:38528304' -- NCAPG2 TT (favorable)
UNION ALL SELECT f.pk_file_no, '001122334401', s.pk_snp_no, 'T', 'T', NOW(), NOW() FROM tb_upload_file f, tb_snp_info s WHERE f.file_nm = 'test_genome_data.csv' AND s.snp_nm = '5:45120340' -- BTB TT (favorable)
UNION ALL SELECT f.pk_file_no, '001122334401', s.pk_snp_no, 'C', 'C', NOW(), NOW() FROM tb_upload_file f, tb_snp_info s WHERE f.file_nm = 'test_genome_data.csv' AND s.snp_nm = '6:58230560' -- NT5E CC (favorable)
UNION ALL SELECT f.pk_file_no, '001122334401', s.pk_snp_no, 'G', 'G', NOW(), NOW() FROM tb_upload_file f, tb_snp_info s WHERE f.file_nm = 'test_genome_data.csv' AND s.snp_nm = '26:21194784' -- SCD GG (favorable)
UNION ALL SELECT f.pk_file_no, '001122334401', s.pk_snp_no, 'G', 'G', NOW(), NOW() FROM tb_upload_file f, tb_snp_info s WHERE f.file_nm = 'test_genome_data.csv' AND s.snp_nm = '19:51230120' -- FASN GG (favorable)
UNION ALL SELECT f.pk_file_no, '001122334401', s.pk_snp_no, 'G', 'G', NOW(), NOW() FROM tb_upload_file f, tb_snp_info s WHERE f.file_nm = 'test_genome_data.csv' AND s.snp_nm = '29:44104889' -- CAPN1 GG (favorable)
UNION ALL

-- 암소2 (001122334402) - 평균 유전자형 (모두 heterozygous)
SELECT f.pk_file_no, '001122334402', s.pk_snp_no, 'G', 'C', NOW(), NOW() FROM tb_upload_file f, tb_snp_info s WHERE f.file_nm = 'test_genome_data.csv' AND s.snp_nm = '14:25016263' -- PLAG1 GC
UNION ALL SELECT f.pk_file_no, '001122334402', s.pk_snp_no, 'T', 'G', NOW(), NOW() FROM tb_upload_file f, tb_snp_info s WHERE f.file_nm = 'test_genome_data.csv' AND s.snp_nm = '7:38528304' -- NCAPG2 TG
UNION ALL SELECT f.pk_file_no, '001122334402', s.pk_snp_no, 'T', 'C', NOW(), NOW() FROM tb_upload_file f, tb_snp_info s WHERE f.file_nm = 'test_genome_data.csv' AND s.snp_nm = '5:45120340' -- BTB TC
UNION ALL SELECT f.pk_file_no, '001122334402', s.pk_snp_no, 'C', 'T', NOW(), NOW() FROM tb_upload_file f, tb_snp_info s WHERE f.file_nm = 'test_genome_data.csv' AND s.snp_nm = '6:58230560' -- NT5E CT
UNION ALL SELECT f.pk_file_no, '001122334402', s.pk_snp_no, 'G', 'A', NOW(), NOW() FROM tb_upload_file f, tb_snp_info s WHERE f.file_nm = 'test_genome_data.csv' AND s.snp_nm = '26:21194784' -- SCD GA
UNION ALL SELECT f.pk_file_no, '001122334402', s.pk_snp_no, 'G', 'A', NOW(), NOW() FROM tb_upload_file f, tb_snp_info s WHERE f.file_nm = 'test_genome_data.csv' AND s.snp_nm = '19:51230120' -- FASN GA
UNION ALL SELECT f.pk_file_no, '001122334402', s.pk_snp_no, 'G', 'A', NOW(), NOW() FROM tb_upload_file f, tb_snp_info s WHERE f.file_nm = 'test_genome_data.csv' AND s.snp_nm = '29:44104889' -- CAPN1 GA
UNION ALL

-- 암소3 (001122334403) - 낮은 유전자형 (모두 unfavorable homozygous)
SELECT f.pk_file_no, '001122334403', s.pk_snp_no, 'C', 'C', NOW(), NOW() FROM tb_upload_file f, tb_snp_info s WHERE f.file_nm = 'test_genome_data.csv' AND s.snp_nm = '14:25016263' -- PLAG1 CC
UNION ALL SELECT f.pk_file_no, '001122334403', s.pk_snp_no, 'G', 'G', NOW(), NOW() FROM tb_upload_file f, tb_snp_info s WHERE f.file_nm = 'test_genome_data.csv' AND s.snp_nm = '7:38528304' -- NCAPG2 GG
UNION ALL SELECT f.pk_file_no, '001122334403', s.pk_snp_no, 'C', 'C', NOW(), NOW() FROM tb_upload_file f, tb_snp_info s WHERE f.file_nm = 'test_genome_data.csv' AND s.snp_nm = '5:45120340' -- BTB CC
UNION ALL SELECT f.pk_file_no, '001122334403', s.pk_snp_no, 'T', 'T', NOW(), NOW() FROM tb_upload_file f, tb_snp_info s WHERE f.file_nm = 'test_genome_data.csv' AND s.snp_nm = '6:58230560' -- NT5E TT
UNION ALL SELECT f.pk_file_no, '001122334403', s.pk_snp_no, 'A', 'A', NOW(), NOW() FROM tb_upload_file f, tb_snp_info s WHERE f.file_nm = 'test_genome_data.csv' AND s.snp_nm = '26:21194784' -- SCD AA
UNION ALL SELECT f.pk_file_no, '001122334403', s.pk_snp_no, 'A', 'A', NOW(), NOW() FROM tb_upload_file f, tb_snp_info s WHERE f.file_nm = 'test_genome_data.csv' AND s.snp_nm = '19:51230120' -- FASN AA
UNION ALL SELECT f.pk_file_no, '001122334403', s.pk_snp_no, 'A', 'A', NOW(), NOW() FROM tb_upload_file f, tb_snp_info s WHERE f.file_nm = 'test_genome_data.csv' AND s.snp_nm = '29:44104889'; -- CAPN1 AA

-- 16. 개체별 MPT 데이터 (3마리 - PRD 참고)
INSERT INTO tb_repro_mpt (fk_cow_no, month_age, test_dt, blood_sugar, cholesterol, nefa, total_protein, albumin, total_globulin, ag_ratio, bun, ast, ggt, fatty_liver_index, calcium, phosphorus, ca_p_ratio, magnesium, creatinine, reg_dt, updt_dt)
VALUES
  -- 암소1 (우수) - 27개월령 PRD 데이터 기준
  ('001122334401', 27, '2025-03-01'::date, 93, 222, 649, 7.2, 3.6, 3.6, 1.00, 8.2, 80, 12, 8.0, 8.7, 7.7, 1.1, 2.7, 1.4, NOW(), NOW()),

  -- 암소2 (평균) - 49개월령 PRD 데이터 기준
  ('001122334402', 49, '2025-03-02'::date, 76, 182, 222, 7.5, 4.0, 3.5, 1.14, 6.0, 57, 16, 7.7, 9.1, 6.0, 1.5, 3.1, 1.4, NOW(), NOW()),

  -- 암소3 (신규) - 26개월령 PRD 데이터 기준
  ('001122334403', 26, '2025-03-03'::date, 80, 153, 518, 7.0, 3.6, 3.4, 1.06, 6.2, 93, 2, 5.5, 8.7, 6.3, 1.4, 2.4, 1.6, NOW(), NOW());

-- ============================================
-- PART 6: KPN SNP/유전체/MPT 데이터
-- ============================================

-- 17. KPN SNP 데이터 (5마리 × 7 SNP = 35건) - 대표 SNP만 사용
-- KPN0001 (육질 특화 - NT5E, SCD, FASN, CAPN1 우수)
INSERT INTO tb_kpn_snp (fk_kpn_no, fk_snp_no, allele1_top, allele2_top, reg_dt, updt_dt)
SELECT 'KPN0001', s.pk_snp_no, 'G', 'C', NOW(), NOW() FROM tb_snp_info s WHERE s.snp_nm = '14:25016263' UNION ALL  -- PLAG1 GC
SELECT 'KPN0001', s.pk_snp_no, 'T', 'G', NOW(), NOW() FROM tb_snp_info s WHERE s.snp_nm = '7:38528304' UNION ALL   -- NCAPG2 TG
SELECT 'KPN0001', s.pk_snp_no, 'T', 'C', NOW(), NOW() FROM tb_snp_info s WHERE s.snp_nm = '5:45120340' UNION ALL   -- BTB TC
SELECT 'KPN0001', s.pk_snp_no, 'C', 'C', NOW(), NOW() FROM tb_snp_info s WHERE s.snp_nm = '6:58230560' UNION ALL   -- NT5E CC (favorable)
SELECT 'KPN0001', s.pk_snp_no, 'G', 'G', NOW(), NOW() FROM tb_snp_info s WHERE s.snp_nm = '26:21194784' UNION ALL  -- SCD GG (favorable)
SELECT 'KPN0001', s.pk_snp_no, 'G', 'G', NOW(), NOW() FROM tb_snp_info s WHERE s.snp_nm = '19:51230120' UNION ALL  -- FASN GG (favorable)
SELECT 'KPN0001', s.pk_snp_no, 'G', 'G', NOW(), NOW() FROM tb_snp_info s WHERE s.snp_nm = '29:44104889' UNION ALL  -- CAPN1 GG (favorable)

-- KPN0002 (육량 특화 - PLAG1, NCAPG2, BTB 우수)
SELECT 'KPN0002', s.pk_snp_no, 'G', 'G', NOW(), NOW() FROM tb_snp_info s WHERE s.snp_nm = '14:25016263' UNION ALL  -- PLAG1 GG (favorable)
SELECT 'KPN0002', s.pk_snp_no, 'T', 'T', NOW(), NOW() FROM tb_snp_info s WHERE s.snp_nm = '7:38528304' UNION ALL   -- NCAPG2 TT (favorable)
SELECT 'KPN0002', s.pk_snp_no, 'T', 'T', NOW(), NOW() FROM tb_snp_info s WHERE s.snp_nm = '5:45120340' UNION ALL   -- BTB TT (favorable)
SELECT 'KPN0002', s.pk_snp_no, 'C', 'T', NOW(), NOW() FROM tb_snp_info s WHERE s.snp_nm = '6:58230560' UNION ALL   -- NT5E CT
SELECT 'KPN0002', s.pk_snp_no, 'G', 'A', NOW(), NOW() FROM tb_snp_info s WHERE s.snp_nm = '26:21194784' UNION ALL  -- SCD GA
SELECT 'KPN0002', s.pk_snp_no, 'G', 'A', NOW(), NOW() FROM tb_snp_info s WHERE s.snp_nm = '19:51230120' UNION ALL  -- FASN GA
SELECT 'KPN0002', s.pk_snp_no, 'G', 'A', NOW(), NOW() FROM tb_snp_info s WHERE s.snp_nm = '29:44104889' UNION ALL  -- CAPN1 GA

-- KPN0003 (종합 균형형 - 모두 heterozygous)
SELECT 'KPN0003', s.pk_snp_no, 'G', 'C', NOW(), NOW() FROM tb_snp_info s WHERE s.snp_nm = '14:25016263' UNION ALL  -- PLAG1 GC
SELECT 'KPN0003', s.pk_snp_no, 'T', 'G', NOW(), NOW() FROM tb_snp_info s WHERE s.snp_nm = '7:38528304' UNION ALL   -- NCAPG2 TG
SELECT 'KPN0003', s.pk_snp_no, 'T', 'C', NOW(), NOW() FROM tb_snp_info s WHERE s.snp_nm = '5:45120340' UNION ALL   -- BTB TC
SELECT 'KPN0003', s.pk_snp_no, 'C', 'T', NOW(), NOW() FROM tb_snp_info s WHERE s.snp_nm = '6:58230560' UNION ALL   -- NT5E CT
SELECT 'KPN0003', s.pk_snp_no, 'G', 'A', NOW(), NOW() FROM tb_snp_info s WHERE s.snp_nm = '26:21194784' UNION ALL  -- SCD GA
SELECT 'KPN0003', s.pk_snp_no, 'G', 'A', NOW(), NOW() FROM tb_snp_info s WHERE s.snp_nm = '19:51230120' UNION ALL  -- FASN GA
SELECT 'KPN0003', s.pk_snp_no, 'G', 'A', NOW(), NOW() FROM tb_snp_info s WHERE s.snp_nm = '29:44104889' UNION ALL  -- CAPN1 GA

-- KPN0004 (근내지방도 특화 - NT5E, SCD, FASN, CAPN1 우수)
SELECT 'KPN0004', s.pk_snp_no, 'G', 'C', NOW(), NOW() FROM tb_snp_info s WHERE s.snp_nm = '14:25016263' UNION ALL  -- PLAG1 GC
SELECT 'KPN0004', s.pk_snp_no, 'T', 'G', NOW(), NOW() FROM tb_snp_info s WHERE s.snp_nm = '7:38528304' UNION ALL   -- NCAPG2 TG
SELECT 'KPN0004', s.pk_snp_no, 'T', 'C', NOW(), NOW() FROM tb_snp_info s WHERE s.snp_nm = '5:45120340' UNION ALL   -- BTB TC
SELECT 'KPN0004', s.pk_snp_no, 'C', 'C', NOW(), NOW() FROM tb_snp_info s WHERE s.snp_nm = '6:58230560' UNION ALL   -- NT5E CC (favorable)
SELECT 'KPN0004', s.pk_snp_no, 'G', 'G', NOW(), NOW() FROM tb_snp_info s WHERE s.snp_nm = '26:21194784' UNION ALL  -- SCD GG (favorable)
SELECT 'KPN0004', s.pk_snp_no, 'G', 'G', NOW(), NOW() FROM tb_snp_info s WHERE s.snp_nm = '19:51230120' UNION ALL  -- FASN GG (favorable)
SELECT 'KPN0004', s.pk_snp_no, 'G', 'G', NOW(), NOW() FROM tb_snp_info s WHERE s.snp_nm = '29:44104889' UNION ALL  -- CAPN1 GG (favorable)

-- KPN0005 (도체중 특화 - PLAG1, NCAPG2, BTB 우수)
SELECT 'KPN0005', s.pk_snp_no, 'G', 'G', NOW(), NOW() FROM tb_snp_info s WHERE s.snp_nm = '14:25016263' UNION ALL  -- PLAG1 GG (favorable)
SELECT 'KPN0005', s.pk_snp_no, 'T', 'T', NOW(), NOW() FROM tb_snp_info s WHERE s.snp_nm = '7:38528304' UNION ALL   -- NCAPG2 TT (favorable)
SELECT 'KPN0005', s.pk_snp_no, 'T', 'T', NOW(), NOW() FROM tb_snp_info s WHERE s.snp_nm = '5:45120340' UNION ALL   -- BTB TT (favorable)
SELECT 'KPN0005', s.pk_snp_no, 'C', 'T', NOW(), NOW() FROM tb_snp_info s WHERE s.snp_nm = '6:58230560' UNION ALL   -- NT5E CT
SELECT 'KPN0005', s.pk_snp_no, 'G', 'A', NOW(), NOW() FROM tb_snp_info s WHERE s.snp_nm = '26:21194784' UNION ALL  -- SCD GA
SELECT 'KPN0005', s.pk_snp_no, 'G', 'A', NOW(), NOW() FROM tb_snp_info s WHERE s.snp_nm = '19:51230120' UNION ALL  -- FASN GA
SELECT 'KPN0005', s.pk_snp_no, 'G', 'A', NOW(), NOW() FROM tb_snp_info s WHERE s.snp_nm = '29:44104889' UNION ALL

-- KPN0006 (종합 개량 - 균형잡힌 유전자형)
SELECT 'KPN0006', s.pk_snp_no, 'G', 'C', NOW(), NOW() FROM tb_snp_info s WHERE s.snp_nm = '14:25016263' UNION ALL  -- PLAG1 GC
SELECT 'KPN0006', s.pk_snp_no, 'T', 'G', NOW(), NOW() FROM tb_snp_info s WHERE s.snp_nm = '7:38528304' UNION ALL   -- NCAPG2 TG
SELECT 'KPN0006', s.pk_snp_no, 'T', 'C', NOW(), NOW() FROM tb_snp_info s WHERE s.snp_nm = '5:45120340' UNION ALL   -- BTB TC
SELECT 'KPN0006', s.pk_snp_no, 'C', 'T', NOW(), NOW() FROM tb_snp_info s WHERE s.snp_nm = '6:58230560' UNION ALL   -- NT5E CT
SELECT 'KPN0006', s.pk_snp_no, 'G', 'A', NOW(), NOW() FROM tb_snp_info s WHERE s.snp_nm = '26:21194784' UNION ALL  -- SCD GA
SELECT 'KPN0006', s.pk_snp_no, 'G', 'A', NOW(), NOW() FROM tb_snp_info s WHERE s.snp_nm = '19:51230120' UNION ALL  -- FASN GA
SELECT 'KPN0006', s.pk_snp_no, 'G', 'A', NOW(), NOW() FROM tb_snp_info s WHERE s.snp_nm = '29:44104889' UNION ALL

-- KPN0007 (육질 특화 - NT5E, SCD, FASN, CAPN1 우수)
SELECT 'KPN0007', s.pk_snp_no, 'G', 'C', NOW(), NOW() FROM tb_snp_info s WHERE s.snp_nm = '14:25016263' UNION ALL  -- PLAG1 GC
SELECT 'KPN0007', s.pk_snp_no, 'T', 'G', NOW(), NOW() FROM tb_snp_info s WHERE s.snp_nm = '7:38528304' UNION ALL   -- NCAPG2 TG
SELECT 'KPN0007', s.pk_snp_no, 'T', 'C', NOW(), NOW() FROM tb_snp_info s WHERE s.snp_nm = '5:45120340' UNION ALL   -- BTB TC
SELECT 'KPN0007', s.pk_snp_no, 'C', 'C', NOW(), NOW() FROM tb_snp_info s WHERE s.snp_nm = '6:58230560' UNION ALL   -- NT5E CC (favorable)
SELECT 'KPN0007', s.pk_snp_no, 'G', 'G', NOW(), NOW() FROM tb_snp_info s WHERE s.snp_nm = '26:21194784' UNION ALL  -- SCD GG (favorable)
SELECT 'KPN0007', s.pk_snp_no, 'G', 'G', NOW(), NOW() FROM tb_snp_info s WHERE s.snp_nm = '19:51230120' UNION ALL  -- FASN GG (favorable)
SELECT 'KPN0007', s.pk_snp_no, 'G', 'G', NOW(), NOW() FROM tb_snp_info s WHERE s.snp_nm = '29:44104889' UNION ALL  -- CAPN1 GG (favorable)

-- KPN0008 (육량 개량 - NCAPG2, BTB 우수)
SELECT 'KPN0008', s.pk_snp_no, 'G', 'C', NOW(), NOW() FROM tb_snp_info s WHERE s.snp_nm = '14:25016263' UNION ALL  -- PLAG1 GC
SELECT 'KPN0008', s.pk_snp_no, 'T', 'T', NOW(), NOW() FROM tb_snp_info s WHERE s.snp_nm = '7:38528304' UNION ALL   -- NCAPG2 TT (favorable)
SELECT 'KPN0008', s.pk_snp_no, 'T', 'T', NOW(), NOW() FROM tb_snp_info s WHERE s.snp_nm = '5:45120340' UNION ALL   -- BTB TT (favorable)
SELECT 'KPN0008', s.pk_snp_no, 'C', 'T', NOW(), NOW() FROM tb_snp_info s WHERE s.snp_nm = '6:58230560' UNION ALL   -- NT5E CT
SELECT 'KPN0008', s.pk_snp_no, 'G', 'A', NOW(), NOW() FROM tb_snp_info s WHERE s.snp_nm = '26:21194784' UNION ALL  -- SCD GA
SELECT 'KPN0008', s.pk_snp_no, 'G', 'A', NOW(), NOW() FROM tb_snp_info s WHERE s.snp_nm = '19:51230120' UNION ALL  -- FASN GA
SELECT 'KPN0008', s.pk_snp_no, 'G', 'A', NOW(), NOW() FROM tb_snp_info s WHERE s.snp_nm = '29:44104889' UNION ALL  -- CAPN1 GA

-- KPN0009 (근내지방도 개량 - SCD, FASN 우수)
SELECT 'KPN0009', s.pk_snp_no, 'G', 'C', NOW(), NOW() FROM tb_snp_info s WHERE s.snp_nm = '14:25016263' UNION ALL  -- PLAG1 GC
SELECT 'KPN0009', s.pk_snp_no, 'T', 'G', NOW(), NOW() FROM tb_snp_info s WHERE s.snp_nm = '7:38528304' UNION ALL   -- NCAPG2 TG
SELECT 'KPN0009', s.pk_snp_no, 'T', 'C', NOW(), NOW() FROM tb_snp_info s WHERE s.snp_nm = '5:45120340' UNION ALL   -- BTB TC
SELECT 'KPN0009', s.pk_snp_no, 'C', 'T', NOW(), NOW() FROM tb_snp_info s WHERE s.snp_nm = '6:58230560' UNION ALL   -- NT5E CT
SELECT 'KPN0009', s.pk_snp_no, 'G', 'G', NOW(), NOW() FROM tb_snp_info s WHERE s.snp_nm = '26:21194784' UNION ALL  -- SCD GG (favorable)
SELECT 'KPN0009', s.pk_snp_no, 'G', 'G', NOW(), NOW() FROM tb_snp_info s WHERE s.snp_nm = '19:51230120' UNION ALL  -- FASN GG (favorable)
SELECT 'KPN0009', s.pk_snp_no, 'G', 'A', NOW(), NOW() FROM tb_snp_info s WHERE s.snp_nm = '29:44104889' UNION ALL

-- KPN0010 (열성형 테스트 - 모든 유전자 열성형)
SELECT 'KPN0010', s.pk_snp_no, 'C', 'C', NOW(), NOW() FROM tb_snp_info s WHERE s.snp_nm = '14:25016263' UNION ALL  -- PLAG1 CC (unfavorable)
SELECT 'KPN0010', s.pk_snp_no, 'G', 'G', NOW(), NOW() FROM tb_snp_info s WHERE s.snp_nm = '7:38528304' UNION ALL   -- NCAPG2 GG (unfavorable)
SELECT 'KPN0010', s.pk_snp_no, 'C', 'C', NOW(), NOW() FROM tb_snp_info s WHERE s.snp_nm = '5:45120340' UNION ALL   -- BTB CC (unfavorable)
SELECT 'KPN0010', s.pk_snp_no, 'T', 'T', NOW(), NOW() FROM tb_snp_info s WHERE s.snp_nm = '6:58230560' UNION ALL   -- NT5E TT (unfavorable)
SELECT 'KPN0010', s.pk_snp_no, 'A', 'A', NOW(), NOW() FROM tb_snp_info s WHERE s.snp_nm = '26:21194784' UNION ALL  -- SCD AA (unfavorable)
SELECT 'KPN0010', s.pk_snp_no, 'A', 'A', NOW(), NOW() FROM tb_snp_info s WHERE s.snp_nm = '19:51230120' UNION ALL  -- FASN AA (unfavorable)
SELECT 'KPN0010', s.pk_snp_no, 'A', 'A', NOW(), NOW() FROM tb_snp_info s WHERE s.snp_nm = '29:44104889';

-- 18. KPN 유전체 데이터 (10마리)
INSERT INTO tb_kpn_genome (fk_kpn_no, sire, dam, anlys_dt, reg_dt, updt_dt)
VALUES
  ('KPN0001', NULL, NULL, '2024-01-15'::date, NOW(), NOW()),
  ('KPN0002', NULL, NULL, '2024-01-16'::date, NOW(), NOW()),
  ('KPN0003', NULL, NULL, '2024-01-17'::date, NOW(), NOW()),
  ('KPN0004', NULL, NULL, '2024-01-18'::date, NOW(), NOW()),
  ('KPN0005', NULL, NULL, '2024-01-19'::date, NOW(), NOW()),
  ('KPN0006', NULL, NULL, '2024-01-20'::date, NOW(), NOW()),
  ('KPN0007', NULL, NULL, '2024-01-21'::date, NOW(), NOW()),
  ('KPN0008', NULL, NULL, '2024-01-22'::date, NOW(), NOW()),
  ('KPN0009', NULL, NULL, '2024-01-23'::date, NOW(), NOW()),
  ('KPN0010', NULL, NULL, '2024-01-24'::date, NOW(), NOW());

-- 19. KPN 유전체 형질 데이터 (5마리 × 4형질 = 20건)
INSERT INTO tb_kpn_genome_cow (fk_kpn_genome_no, fk_trait_no, trait_val, breed_val, percentile, reg_dt, updt_dt)
-- KPN0001 (육질 특화)
SELECT kg.pk_kpn_genome_no, t.pk_trait_no, 420.0::decimal, 0.3::decimal, 38, NOW(), NOW() FROM tb_kpn_genome kg, tb_genome_trait_info t WHERE kg.fk_kpn_no = 'KPN0001' AND t.trait_nm = '도체중' UNION ALL
SELECT kg.pk_kpn_genome_no, t.pk_trait_no, 90.0::decimal, 0.2::decimal, 41, NOW(), NOW() FROM tb_kpn_genome kg, tb_genome_trait_info t WHERE kg.fk_kpn_no = 'KPN0001' AND t.trait_nm = '등심단면적' UNION ALL
SELECT kg.pk_kpn_genome_no, t.pk_trait_no, 7.8::decimal, -0.2::decimal, 42, NOW(), NOW() FROM tb_kpn_genome kg, tb_genome_trait_info t WHERE kg.fk_kpn_no = 'KPN0001' AND t.trait_nm = '등지방두께' UNION ALL
SELECT kg.pk_kpn_genome_no, t.pk_trait_no, 7.5::decimal, 1.2::decimal, 12, NOW(), NOW() FROM tb_kpn_genome kg, tb_genome_trait_info t WHERE kg.fk_kpn_no = 'KPN0001' AND t.trait_nm = '근내지방도' UNION ALL

-- KPN0002 (육량 특화)
SELECT kg.pk_kpn_genome_no, t.pk_trait_no, 450.0::decimal, 0.8::decimal, 21, NOW(), NOW() FROM tb_kpn_genome kg, tb_genome_trait_info t WHERE kg.fk_kpn_no = 'KPN0002' AND t.trait_nm = '도체중' UNION ALL
SELECT kg.pk_kpn_genome_no, t.pk_trait_no, 98.0::decimal, 0.7::decimal, 24, NOW(), NOW() FROM tb_kpn_genome kg, tb_genome_trait_info t WHERE kg.fk_kpn_no = 'KPN0002' AND t.trait_nm = '등심단면적' UNION ALL
SELECT kg.pk_kpn_genome_no, t.pk_trait_no, 7.2::decimal, -0.4::decimal, 65, NOW(), NOW() FROM tb_kpn_genome kg, tb_genome_trait_info t WHERE kg.fk_kpn_no = 'KPN0002' AND t.trait_nm = '등지방두께' UNION ALL
SELECT kg.pk_kpn_genome_no, t.pk_trait_no, 5.5::decimal, 0.3::decimal, 38, NOW(), NOW() FROM tb_kpn_genome kg, tb_genome_trait_info t WHERE kg.fk_kpn_no = 'KPN0002' AND t.trait_nm = '근내지방도' UNION ALL

-- KPN0003 (종합 균형)
SELECT kg.pk_kpn_genome_no, t.pk_trait_no, 435.0::decimal, 0.4::decimal, 34, NOW(), NOW() FROM tb_kpn_genome kg, tb_genome_trait_info t WHERE kg.fk_kpn_no = 'KPN0003' AND t.trait_nm = '도체중' UNION ALL
SELECT kg.pk_kpn_genome_no, t.pk_trait_no, 94.0::decimal, 0.3::decimal, 38, NOW(), NOW() FROM tb_kpn_genome kg, tb_genome_trait_info t WHERE kg.fk_kpn_no = 'KPN0003' AND t.trait_nm = '등심단면적' UNION ALL
SELECT kg.pk_kpn_genome_no, t.pk_trait_no, 7.5::decimal, -0.3::decimal, 36, NOW(), NOW() FROM tb_kpn_genome kg, tb_genome_trait_info t WHERE kg.fk_kpn_no = 'KPN0003' AND t.trait_nm = '등지방두께' UNION ALL
SELECT kg.pk_kpn_genome_no, t.pk_trait_no, 6.2::decimal, 0.6::decimal, 27, NOW(), NOW() FROM tb_kpn_genome kg, tb_genome_trait_info t WHERE kg.fk_kpn_no = 'KPN0003' AND t.trait_nm = '근내지방도' UNION ALL

-- KPN0004 (근내지방도 특화)
SELECT kg.pk_kpn_genome_no, t.pk_trait_no, 425.0::decimal, 0.2::decimal, 41, NOW(), NOW() FROM tb_kpn_genome kg, tb_genome_trait_info t WHERE kg.fk_kpn_no = 'KPN0004' AND t.trait_nm = '도체중' UNION ALL
SELECT kg.pk_kpn_genome_no, t.pk_trait_no, 91.0::decimal, 0.1::decimal, 46, NOW(), NOW() FROM tb_kpn_genome kg, tb_genome_trait_info t WHERE kg.fk_kpn_no = 'KPN0004' AND t.trait_nm = '등심단면적' UNION ALL
SELECT kg.pk_kpn_genome_no, t.pk_trait_no, 8.0::decimal, -0.1::decimal, 46, NOW(), NOW() FROM tb_kpn_genome kg, tb_genome_trait_info t WHERE kg.fk_kpn_no = 'KPN0004' AND t.trait_nm = '등지방두께' UNION ALL
SELECT kg.pk_kpn_genome_no, t.pk_trait_no, 7.8::decimal, 1.3::decimal, 10, NOW(), NOW() FROM tb_kpn_genome kg, tb_genome_trait_info t WHERE kg.fk_kpn_no = 'KPN0004' AND t.trait_nm = '근내지방도' UNION ALL

-- KPN0005 (도체중 특화)
SELECT kg.pk_kpn_genome_no, t.pk_trait_no, 455.0::decimal, 0.9::decimal, 18, NOW(), NOW() FROM tb_kpn_genome kg, tb_genome_trait_info t WHERE kg.fk_kpn_no = 'KPN0005' AND t.trait_nm = '도체중' UNION ALL
SELECT kg.pk_kpn_genome_no, t.pk_trait_no, 100.0::decimal, 0.8::decimal, 21, NOW(), NOW() FROM tb_kpn_genome kg, tb_genome_trait_info t WHERE kg.fk_kpn_no = 'KPN0005' AND t.trait_nm = '등심단면적' UNION ALL
SELECT kg.pk_kpn_genome_no, t.pk_trait_no, 6.8::decimal, -0.5::decimal, 69, NOW(), NOW() FROM tb_kpn_genome kg, tb_genome_trait_info t WHERE kg.fk_kpn_no = 'KPN0005' AND t.trait_nm = '등지방두께' UNION ALL
SELECT kg.pk_kpn_genome_no, t.pk_trait_no, 5.8::decimal, 0.5::decimal, 31, NOW(), NOW() FROM tb_kpn_genome kg, tb_genome_trait_info t WHERE kg.fk_kpn_no = 'KPN0005' AND t.trait_nm = '근내지방도' UNION ALL

-- KPN0006 (종합 개량)
SELECT kg.pk_kpn_genome_no, t.pk_trait_no, 435.0::decimal, 0.5::decimal, 32, NOW(), NOW() FROM tb_kpn_genome kg, tb_genome_trait_info t WHERE kg.fk_kpn_no = 'KPN0006' AND t.trait_nm = '도체중' UNION ALL
SELECT kg.pk_kpn_genome_no, t.pk_trait_no, 95.0::decimal, 0.4::decimal, 35, NOW(), NOW() FROM tb_kpn_genome kg, tb_genome_trait_info t WHERE kg.fk_kpn_no = 'KPN0006' AND t.trait_nm = '등심단면적' UNION ALL
SELECT kg.pk_kpn_genome_no, t.pk_trait_no, 7.2::decimal, -0.3::decimal, 43, NOW(), NOW() FROM tb_kpn_genome kg, tb_genome_trait_info t WHERE kg.fk_kpn_no = 'KPN0006' AND t.trait_nm = '등지방두께' UNION ALL
SELECT kg.pk_kpn_genome_no, t.pk_trait_no, 6.5::decimal, 0.7::decimal, 24, NOW(), NOW() FROM tb_kpn_genome kg, tb_genome_trait_info t WHERE kg.fk_kpn_no = 'KPN0006' AND t.trait_nm = '근내지방도' UNION ALL

-- KPN0007 (육질 특화)
SELECT kg.pk_kpn_genome_no, t.pk_trait_no, 415.0::decimal, 0.2::decimal, 42, NOW(), NOW() FROM tb_kpn_genome kg, tb_genome_trait_info t WHERE kg.fk_kpn_no = 'KPN0007' AND t.trait_nm = '도체중' UNION ALL
SELECT kg.pk_kpn_genome_no, t.pk_trait_no, 88.0::decimal, 0.1::decimal, 44, NOW(), NOW() FROM tb_kpn_genome kg, tb_genome_trait_info t WHERE kg.fk_kpn_no = 'KPN0007' AND t.trait_nm = '등심단면적' UNION ALL
SELECT kg.pk_kpn_genome_no, t.pk_trait_no, 7.9::decimal, -0.1::decimal, 44, NOW(), NOW() FROM tb_kpn_genome kg, tb_genome_trait_info t WHERE kg.fk_kpn_no = 'KPN0007' AND t.trait_nm = '등지방두께' UNION ALL
SELECT kg.pk_kpn_genome_no, t.pk_trait_no, 7.6::decimal, 1.2::decimal, 11, NOW(), NOW() FROM tb_kpn_genome kg, tb_genome_trait_info t WHERE kg.fk_kpn_no = 'KPN0007' AND t.trait_nm = '근내지방도' UNION ALL

-- KPN0008 (육량 개량)
SELECT kg.pk_kpn_genome_no, t.pk_trait_no, 450.0::decimal, 0.8::decimal, 19, NOW(), NOW() FROM tb_kpn_genome kg, tb_genome_trait_info t WHERE kg.fk_kpn_no = 'KPN0008' AND t.trait_nm = '도체중' UNION ALL
SELECT kg.pk_kpn_genome_no, t.pk_trait_no, 98.0::decimal, 0.7::decimal, 23, NOW(), NOW() FROM tb_kpn_genome kg, tb_genome_trait_info t WHERE kg.fk_kpn_no = 'KPN0008' AND t.trait_nm = '등심단면적' UNION ALL
SELECT kg.pk_kpn_genome_no, t.pk_trait_no, 6.9::decimal, -0.4::decimal, 65, NOW(), NOW() FROM tb_kpn_genome kg, tb_genome_trait_info t WHERE kg.fk_kpn_no = 'KPN0008' AND t.trait_nm = '등지방두께' UNION ALL
SELECT kg.pk_kpn_genome_no, t.pk_trait_no, 5.9::decimal, 0.5::decimal, 30, NOW(), NOW() FROM tb_kpn_genome kg, tb_genome_trait_info t WHERE kg.fk_kpn_no = 'KPN0008' AND t.trait_nm = '근내지방도' UNION ALL

-- KPN0009 (근내지방도 개량)
SELECT kg.pk_kpn_genome_no, t.pk_trait_no, 428.0::decimal, 0.3::decimal, 39, NOW(), NOW() FROM tb_kpn_genome kg, tb_genome_trait_info t WHERE kg.fk_kpn_no = 'KPN0009' AND t.trait_nm = '도체중' UNION ALL
SELECT kg.pk_kpn_genome_no, t.pk_trait_no, 92.0::decimal, 0.2::decimal, 40, NOW(), NOW() FROM tb_kpn_genome kg, tb_genome_trait_info t WHERE kg.fk_kpn_no = 'KPN0009' AND t.trait_nm = '등심단면적' UNION ALL
SELECT kg.pk_kpn_genome_no, t.pk_trait_no, 7.7::decimal, -0.2::decimal, 40, NOW(), NOW() FROM tb_kpn_genome kg, tb_genome_trait_info t WHERE kg.fk_kpn_no = 'KPN0009' AND t.trait_nm = '등지방두께' UNION ALL
SELECT kg.pk_kpn_genome_no, t.pk_trait_no, 7.3::decimal, 1.1::decimal, 13, NOW(), NOW() FROM tb_kpn_genome kg, tb_genome_trait_info t WHERE kg.fk_kpn_no = 'KPN0009' AND t.trait_nm = '근내지방도' UNION ALL

-- KPN0010 (열성형 테스트 - 낮은 형질 값)
SELECT kg.pk_kpn_genome_no, t.pk_trait_no, 380.0::decimal, -0.8::decimal, 75, NOW(), NOW() FROM tb_kpn_genome kg, tb_genome_trait_info t WHERE kg.fk_kpn_no = 'KPN0010' AND t.trait_nm = '도체중' UNION ALL
SELECT kg.pk_kpn_genome_no, t.pk_trait_no, 75.0::decimal, -0.7::decimal, 78, NOW(), NOW() FROM tb_kpn_genome kg, tb_genome_trait_info t WHERE kg.fk_kpn_no = 'KPN0010' AND t.trait_nm = '등심단면적' UNION ALL
SELECT kg.pk_kpn_genome_no, t.pk_trait_no, 9.5::decimal, 0.6::decimal, 15, NOW(), NOW() FROM tb_kpn_genome kg, tb_genome_trait_info t WHERE kg.fk_kpn_no = 'KPN0010' AND t.trait_nm = '등지방두께' UNION ALL
SELECT kg.pk_kpn_genome_no, t.pk_trait_no, 3.2::decimal, -1.5::decimal, 85, NOW(), NOW() FROM tb_kpn_genome kg, tb_genome_trait_info t WHERE kg.fk_kpn_no = 'KPN0010' AND t.trait_nm = '근내지방도';

-- 20. KPN MPT 데이터 (10마리)
INSERT INTO tb_kpn_mpt (fk_kpn_no, month_age, test_dt, blood_sugar, cholesterol, nefa, total_protein, albumin, total_globulin, ag_ratio, bun, ast, ggt, fatty_liver_index, calcium, phosphorus, ca_p_ratio, magnesium, creatinine, reg_dt, updt_dt)
VALUES
  ('KPN0001', 72, '2025-01-15'::date, 95, 142, 589, 7.6, 3.5, 4.1, 0.85, 7.4, 91, 22, 7.8, 9.1, 6.6, 1.4, 2.2, 1.4, NOW(), NOW()),
  ('KPN0002', 72, '2025-01-16'::date, 90, 138, 697, 7.7, 3.6, 4.1, 0.88, 4.7, 62, 16, 8.8, 9.5, 5.9, 1.6, 2.5, 1.6, NOW(), NOW()),
  ('KPN0003', 72, '2025-01-17'::date, 82, 195, 666, 7.5, 3.7, 3.8, 0.97, 5.4, 68, 7, 6.7, 9.2, 6.6, 1.4, 2.5, 1.6, NOW(), NOW()),
  ('KPN0004', 72, '2025-01-18'::date, 88, 214, 654, 8.3, 3.7, 4.6, 0.80, 9.0, 89, 20, 6.6, 9.2, 6.1, 1.5, 2.7, 1.7, NOW(), NOW()),
  ('KPN0005', 72, '2025-01-19'::date, 94, 138, 697, 7.7, 3.6, 4.1, 0.88, 4.7, 62, 16, 8.8, 9.5, 5.9, 1.6, 2.5, 1.6, NOW(), NOW()),
  ('KPN0006', 72, '2025-01-20'::date, 86, 167, 670, 7.6, 3.6, 4.0, 0.90, 6.5, 78, 12, 7.2, 9.3, 6.3, 1.5, 2.4, 1.5, NOW(), NOW()),
  ('KPN0007', 72, '2025-01-21'::date, 92, 150, 610, 7.8, 3.7, 4.1, 0.90, 7.0, 85, 18, 7.5, 9.2, 6.5, 1.4, 2.3, 1.4, NOW(), NOW()),
  ('KPN0008', 72, '2025-01-22'::date, 89, 145, 680, 7.7, 3.6, 4.1, 0.88, 5.2, 68, 14, 8.2, 9.4, 6.0, 1.6, 2.6, 1.6, NOW(), NOW()),
  ('KPN0009', 72, '2025-01-23'::date, 91, 160, 645, 7.9, 3.7, 4.2, 0.88, 6.8, 82, 16, 7.0, 9.3, 6.4, 1.5, 2.5, 1.5, NOW(), NOW()),
  ('KPN0010', 72, '2025-01-24'::date, 110, 190, 850, 6.9, 3.2, 3.7, 0.86, 12.0, 125, 35, 12.5, 8.5, 5.2, 1.6, 2.0, 1.8, NOW(), NOW());

-- ============================================
-- PART 7: 지역 데이터 (선택)
-- ============================================

-- 21. 지역 정보 (1개)
INSERT INTO tb_region (region_nm, year, del_yn, reg_dt, updt_dt)
VALUES
  ('충청북도 보은군', 2025, 'N', NOW(), NOW());

-- 22. 지역-개체 매핑 (3마리)
INSERT INTO tb_region_cow (pk_cow_idx, fk_region_no, del_yn, reg_dt, updt_dt)
SELECT '001122334401', r.pk_region_no, 'N', NOW(), NOW() FROM tb_region r WHERE r.region_nm = '충청북도 보은군' AND r.year = 2025
UNION ALL
SELECT '001122334402', r.pk_region_no, 'N', NOW(), NOW() FROM tb_region r WHERE r.region_nm = '충청북도 보은군' AND r.year = 2025
UNION ALL
SELECT '001122334403', r.pk_region_no, 'N', NOW(), NOW() FROM tb_region r WHERE r.region_nm = '충청북도 보은군' AND r.year = 2025;

-- 23. 지역 SNP 데이터 (3마리 × 7 SNP = 21건)
INSERT INTO tb_region_snp (fk_cow_no, fk_snp_no, allele1_top, allele2_top, reg_dt, updt_dt)
-- 001122334401 (우수 개체 - 모두 favorable)
SELECT '001122334401', s.pk_snp_no, 'G', 'G', NOW(), NOW() FROM tb_snp_info s WHERE s.snp_nm = '14:25016263' UNION ALL  -- PLAG1 GG
SELECT '001122334401', s.pk_snp_no, 'T', 'T', NOW(), NOW() FROM tb_snp_info s WHERE s.snp_nm = '7:38528304' UNION ALL   -- NCAPG2 TT
SELECT '001122334401', s.pk_snp_no, 'T', 'T', NOW(), NOW() FROM tb_snp_info s WHERE s.snp_nm = '5:45120340' UNION ALL   -- BTB TT
SELECT '001122334401', s.pk_snp_no, 'C', 'C', NOW(), NOW() FROM tb_snp_info s WHERE s.snp_nm = '6:58230560' UNION ALL   -- NT5E CC
SELECT '001122334401', s.pk_snp_no, 'G', 'G', NOW(), NOW() FROM tb_snp_info s WHERE s.snp_nm = '26:21194784' UNION ALL  -- SCD GG
SELECT '001122334401', s.pk_snp_no, 'G', 'G', NOW(), NOW() FROM tb_snp_info s WHERE s.snp_nm = '19:51230120' UNION ALL  -- FASN GG
SELECT '001122334401', s.pk_snp_no, 'G', 'G', NOW(), NOW() FROM tb_snp_info s WHERE s.snp_nm = '29:44104889' UNION ALL  -- CAPN1 GG
-- 001122334402 (평균 개체 - 모두 heterozygous)
SELECT '001122334402', s.pk_snp_no, 'G', 'C', NOW(), NOW() FROM tb_snp_info s WHERE s.snp_nm = '14:25016263' UNION ALL  -- PLAG1 GC
SELECT '001122334402', s.pk_snp_no, 'T', 'G', NOW(), NOW() FROM tb_snp_info s WHERE s.snp_nm = '7:38528304' UNION ALL   -- NCAPG2 TG
SELECT '001122334402', s.pk_snp_no, 'T', 'C', NOW(), NOW() FROM tb_snp_info s WHERE s.snp_nm = '5:45120340' UNION ALL   -- BTB TC
SELECT '001122334402', s.pk_snp_no, 'C', 'T', NOW(), NOW() FROM tb_snp_info s WHERE s.snp_nm = '6:58230560' UNION ALL   -- NT5E CT
SELECT '001122334402', s.pk_snp_no, 'G', 'A', NOW(), NOW() FROM tb_snp_info s WHERE s.snp_nm = '26:21194784' UNION ALL  -- SCD GA
SELECT '001122334402', s.pk_snp_no, 'G', 'A', NOW(), NOW() FROM tb_snp_info s WHERE s.snp_nm = '19:51230120' UNION ALL  -- FASN GA
SELECT '001122334402', s.pk_snp_no, 'G', 'A', NOW(), NOW() FROM tb_snp_info s WHERE s.snp_nm = '29:44104889' UNION ALL  -- CAPN1 GA
-- 001122334403 (불량 개체 - 모두 unfavorable)
SELECT '001122334403', s.pk_snp_no, 'C', 'C', NOW(), NOW() FROM tb_snp_info s WHERE s.snp_nm = '14:25016263' UNION ALL  -- PLAG1 CC
SELECT '001122334403', s.pk_snp_no, 'G', 'G', NOW(), NOW() FROM tb_snp_info s WHERE s.snp_nm = '7:38528304' UNION ALL   -- NCAPG2 GG
SELECT '001122334403', s.pk_snp_no, 'C', 'C', NOW(), NOW() FROM tb_snp_info s WHERE s.snp_nm = '5:45120340' UNION ALL   -- BTB CC
SELECT '001122334403', s.pk_snp_no, 'T', 'T', NOW(), NOW() FROM tb_snp_info s WHERE s.snp_nm = '6:58230560' UNION ALL   -- NT5E TT
SELECT '001122334403', s.pk_snp_no, 'A', 'A', NOW(), NOW() FROM tb_snp_info s WHERE s.snp_nm = '26:21194784' UNION ALL  -- SCD AA
SELECT '001122334403', s.pk_snp_no, 'A', 'A', NOW(), NOW() FROM tb_snp_info s WHERE s.snp_nm = '19:51230120' UNION ALL  -- FASN AA
SELECT '001122334403', s.pk_snp_no, 'A', 'A', NOW(), NOW() FROM tb_snp_info s WHERE s.snp_nm = '29:44104889';           -- CAPN1 AA

-- 24. 지역 유전체 데이터 (3건)
INSERT INTO tb_region_genome (fk_cow_no, reg_dt, updt_dt)
VALUES
  ('001122334401', NOW(), NOW()),
  ('001122334402', NOW(), NOW()),
  ('001122334403', NOW(), NOW());

-- 25. 지역 유전체 형질 데이터 (3건 × 35형질 = 105건)
INSERT INTO tb_region_genome_cow (fk_region_genome_no, fk_trait_no, trait_val, breed_val, percentile, reg_dt, updt_dt)
-- 001122334401 (지역 평균 수준)
-- 생산 형질 (6개)
SELECT rg.pk_region_genome_no, t.pk_trait_no, 25.0, 0.0, 50, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334401' AND t.trait_nm = '12개월령체중' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 412.0, 0.0, 50, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334401' AND t.trait_nm = '도체중' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 89.5, 0.0, 50, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334401' AND t.trait_nm = '등심단면적' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 8.1, 0.0, 50, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334401' AND t.trait_nm = '등지방두께' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 5.2, 0.0, 50, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334401' AND t.trait_nm = '근내지방도' UNION ALL
-- 체형 형질 (10개)
SELECT rg.pk_region_genome_no, t.pk_trait_no, 0.0, 0.0, 50, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334401' AND t.trait_nm = '체고' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 0.0, 0.0, 50, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334401' AND t.trait_nm = '십자' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 0.0, 0.0, 50, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334401' AND t.trait_nm = '체장' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 0.0, 0.0, 50, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334401' AND t.trait_nm = '흉심' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 0.0, 0.0, 50, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334401' AND t.trait_nm = '흉폭' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 0.0, 0.0, 50, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334401' AND t.trait_nm = '고장' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 0.0, 0.0, 50, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334401' AND t.trait_nm = '요각폭' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 0.0, 0.0, 50, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334401' AND t.trait_nm = '곤폭' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 0.0, 0.0, 50, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334401' AND t.trait_nm = '좌골폭' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 0.0, 0.0, 50, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334401' AND t.trait_nm = '흉위' UNION ALL
-- 부분육 중량 (10개)
SELECT rg.pk_region_genome_no, t.pk_trait_no, 3.0, 0.0, 50, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334401' AND t.trait_nm = '안심weight' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 0.8, 0.0, 50, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334401' AND t.trait_nm = '등심weight' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 1.5, 0.0, 50, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334401' AND t.trait_nm = '채끝weight' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 2.0, 0.0, 50, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334401' AND t.trait_nm = '목심weight' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 1.5, 0.0, 50, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334401' AND t.trait_nm = '앞다리weight' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 2.8, 0.0, 50, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334401' AND t.trait_nm = '우둔weight' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 1.0, 0.0, 50, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334401' AND t.trait_nm = '설도weight' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 2.5, 0.0, 50, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334401' AND t.trait_nm = '사태weight' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 3.5, 0.0, 50, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334401' AND t.trait_nm = '양지weight' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 0.0, 0.0, 50, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334401' AND t.trait_nm = '갈비weight' UNION ALL
-- 부분육 비율 (10개)
SELECT rg.pk_region_genome_no, t.pk_trait_no, 0.0, 0.0, 50, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334401' AND t.trait_nm = '안심rate' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 0.0, 0.0, 50, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334401' AND t.trait_nm = '등심rate' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 0.0, 0.0, 50, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334401' AND t.trait_nm = '채끝rate' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 0.0, 0.0, 50, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334401' AND t.trait_nm = '목심rate' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 0.0, 0.0, 50, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334401' AND t.trait_nm = '앞다리rate' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 0.0, 0.0, 50, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334401' AND t.trait_nm = '우둔rate' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 0.0, 0.0, 50, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334401' AND t.trait_nm = '설도rate' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 0.0, 0.0, 50, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334401' AND t.trait_nm = '사태rate' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 0.0, 0.0, 50, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334401' AND t.trait_nm = '양지rate' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 0.0, 0.0, 50, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334401' AND t.trait_nm = '갈비rate' UNION ALL

-- 001122334402 (지역 평균 수준)
-- 생산 형질 (6개)
SELECT rg.pk_region_genome_no, t.pk_trait_no, 24.0, -0.1, 52, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334402' AND t.trait_nm = '12개월령체중' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 410.0, -0.1, 52, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334402' AND t.trait_nm = '도체중' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 88.0, -0.1, 52, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334402' AND t.trait_nm = '등심단면적' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 8.2, 0.1, 48, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334402' AND t.trait_nm = '등지방두께' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 5.0, -0.1, 52, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334402' AND t.trait_nm = '근내지방도' UNION ALL
-- 체형 형질 (10개)
SELECT rg.pk_region_genome_no, t.pk_trait_no, 0.1, 0.0, 50, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334402' AND t.trait_nm = '체고' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 0.1, 0.0, 50, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334402' AND t.trait_nm = '십자' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 0.2, 0.0, 50, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334402' AND t.trait_nm = '체장' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 0.0, 0.0, 50, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334402' AND t.trait_nm = '흉심' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 0.1, 0.0, 50, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334402' AND t.trait_nm = '흉폭' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 0.0, 0.0, 50, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334402' AND t.trait_nm = '고장' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 0.0, 0.0, 50, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334402' AND t.trait_nm = '요각폭' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 0.1, 0.0, 50, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334402' AND t.trait_nm = '곤폭' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 0.1, 0.0, 50, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334402' AND t.trait_nm = '좌골폭' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 0.0, 0.0, 50, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334402' AND t.trait_nm = '흉위' UNION ALL
-- 부분육 중량 (10개)
SELECT rg.pk_region_genome_no, t.pk_trait_no, 2.8, -0.1, 52, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334402' AND t.trait_nm = '안심weight' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 0.7, 0.0, 50, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334402' AND t.trait_nm = '등심weight' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 1.4, 0.0, 50, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334402' AND t.trait_nm = '채끝weight' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 1.9, 0.0, 50, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334402' AND t.trait_nm = '목심weight' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 1.4, 0.0, 50, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334402' AND t.trait_nm = '앞다리weight' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 2.6, -0.1, 52, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334402' AND t.trait_nm = '우둔weight' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 0.9, 0.0, 50, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334402' AND t.trait_nm = '설도weight' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 2.4, 0.0, 50, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334402' AND t.trait_nm = '사태weight' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 3.3, -0.1, 52, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334402' AND t.trait_nm = '양지weight' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 0.0, 0.0, 50, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334402' AND t.trait_nm = '갈비weight' UNION ALL
-- 부분육 비율 (10개)
SELECT rg.pk_region_genome_no, t.pk_trait_no, 0.0, 0.0, 50, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334402' AND t.trait_nm = '안심rate' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 0.0, 0.0, 50, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334402' AND t.trait_nm = '등심rate' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 0.0, 0.0, 50, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334402' AND t.trait_nm = '채끝rate' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 0.0, 0.0, 50, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334402' AND t.trait_nm = '목심rate' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 0.0, 0.0, 50, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334402' AND t.trait_nm = '앞다리rate' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 0.0, 0.0, 50, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334402' AND t.trait_nm = '우둔rate' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 0.0, 0.0, 50, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334402' AND t.trait_nm = '설도rate' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 0.0, 0.0, 50, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334402' AND t.trait_nm = '사태rate' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 0.0, 0.0, 50, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334402' AND t.trait_nm = '양지rate' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 0.0, 0.0, 50, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334402' AND t.trait_nm = '갈비rate' UNION ALL

-- 001122334403 (지역 평균 수준)
-- 생산 형질 (6개)
SELECT rg.pk_region_genome_no, t.pk_trait_no, 26.0, 0.1, 48, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334403' AND t.trait_nm = '12개월령체중' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 415.0, 0.1, 48, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334403' AND t.trait_nm = '도체중' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 90.0, 0.1, 48, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334403' AND t.trait_nm = '등심단면적' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 8.0, 0.0, 50, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334403' AND t.trait_nm = '등지방두께' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 5.3, 0.0, 50, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334403' AND t.trait_nm = '근내지방도' UNION ALL
-- 체형 형질 (10개)
SELECT rg.pk_region_genome_no, t.pk_trait_no, -0.1, 0.0, 50, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334403' AND t.trait_nm = '체고' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 0.0, 0.0, 50, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334403' AND t.trait_nm = '십자' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 0.3, 0.1, 48, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334403' AND t.trait_nm = '체장' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 0.0, 0.0, 50, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334403' AND t.trait_nm = '흉심' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 0.2, 0.1, 48, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334403' AND t.trait_nm = '흉폭' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 0.0, 0.0, 50, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334403' AND t.trait_nm = '고장' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 0.1, 0.0, 50, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334403' AND t.trait_nm = '요각폭' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 0.2, 0.1, 48, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334403' AND t.trait_nm = '곤폭' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 0.1, 0.0, 50, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334403' AND t.trait_nm = '좌골폭' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 0.1, 0.0, 50, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334403' AND t.trait_nm = '흉위' UNION ALL
-- 부분육 중량 (10개)
SELECT rg.pk_region_genome_no, t.pk_trait_no, 3.2, 0.1, 48, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334403' AND t.trait_nm = '안심weight' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 0.8, 0.0, 50, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334403' AND t.trait_nm = '등심weight' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 1.6, 0.0, 50, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334403' AND t.trait_nm = '채끝weight' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 2.1, 0.1, 48, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334403' AND t.trait_nm = '목심weight' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 1.6, 0.1, 48, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334403' AND t.trait_nm = '앞다리weight' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 2.9, 0.0, 50, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334403' AND t.trait_nm = '우둔weight' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 1.0, 0.0, 50, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334403' AND t.trait_nm = '설도weight' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 2.6, 0.1, 48, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334403' AND t.trait_nm = '사태weight' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 3.6, 0.0, 50, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334403' AND t.trait_nm = '양지weight' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 0.0, 0.0, 50, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334403' AND t.trait_nm = '갈비weight' UNION ALL
-- 부분육 비율 (10개)
SELECT rg.pk_region_genome_no, t.pk_trait_no, 0.0, 0.0, 50, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334403' AND t.trait_nm = '안심rate' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 0.0, 0.0, 50, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334403' AND t.trait_nm = '등심rate' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 0.0, 0.0, 50, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334403' AND t.trait_nm = '채끝rate' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 0.0, 0.0, 50, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334403' AND t.trait_nm = '목심rate' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 0.0, 0.0, 50, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334403' AND t.trait_nm = '앞다리rate' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 0.0, 0.0, 50, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334403' AND t.trait_nm = '우둔rate' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 0.0, 0.0, 50, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334403' AND t.trait_nm = '설도rate' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 0.0, 0.0, 50, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334403' AND t.trait_nm = '사태rate' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 0.0, 0.0, 50, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334403' AND t.trait_nm = '양지rate' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 0.0, 0.0, 50, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334403' AND t.trait_nm = '갈비rate';

-- 26. 지역 MPT 데이터 (3건)
INSERT INTO tb_region_mpt (fk_cow_no, month_age, test_dt, blood_sugar, cholesterol, nefa, total_protein, albumin, total_globulin, ag_ratio, bun, ast, ggt, fatty_liver_index, calcium, phosphorus, ca_p_ratio, magnesium, creatinine, reg_dt, updt_dt)
VALUES
  ('001122334401', 48, '2025-01-20'::date, 80, 161, 688, 7.4, 3.6, 3.7, 1.00, 7.1, 78, 9, 5.6, 9.0, 6.6, 1.4, 2.8, 1.5, NOW(), NOW()),
  ('001122334402', 48, '2025-01-20'::date, 82, 165, 700, 7.5, 3.7, 3.8, 0.97, 7.3, 80, 10, 5.8, 9.1, 6.7, 1.4, 2.9, 1.5, NOW(), NOW()),
  ('001122334403', 48, '2025-01-20'::date, 78, 158, 675, 7.3, 3.5, 3.8, 0.92, 6.9, 76, 8, 5.4, 8.9, 6.5, 1.4, 2.7, 1.5, NOW(), NOW());

-- 27. 지역 번식 데이터 (3건)
INSERT INTO tb_repro (fk_cow_no, preg_succ_cnt, preg_total_cnt, parity, bcs_score, reg_dt, updt_dt)
VALUES
  ('001122334401', 3, 4, 2, 3.5, NOW(), NOW()),
  ('001122334402', 2, 3, 1, 3.2, NOW(), NOW()),
  ('001122334403', 4, 5, 3, 3.8, NOW(), NOW());

-- ============================================
-- PART 8: 기타 데이터
-- ============================================

-- 28. 도움말 데이터 (7개 유전자 + 4개 형질 + 5개 MPT)
INSERT INTO tb_help (help_ctgry, target_nm, help_title, help_short, help_full, display_order, use_yn, reg_dt, updt_dt)
VALUES
  -- SNP 도움말 (7개 유전자)
  ('SNP', 'PLAG1', 'PLAG1 유전자', '성장 및 체중 증가에 영향', 'PLAG1(Pleiomorphic Adenoma Gene 1)은 소의 성장과 체중 증가에 중요한 역할을 합니다.', 1, 'Y', NOW(), NOW()),
  ('SNP', 'NCAPG2', 'NCAPG2 유전자', '체구 크기에 영향', 'NCAPG2는 체구 크기와 성장 속도를 결정하는 유전자입니다.', 2, 'Y', NOW(), NOW()),
  ('SNP', 'BTB', 'BTB 유전자', '등심단면적에 영향', 'BTB는 등심단면적과 육량에 영향을 미치는 유전자입니다.', 3, 'Y', NOW(), NOW()),
  ('SNP', 'NT5E', 'NT5E 유전자', '근내지방도에 영향', 'NT5E는 근내지방도(마블링)를 결정하는 주요 유전자입니다.', 4, 'Y', NOW(), NOW()),
  ('SNP', 'SCD', 'SCD 유전자', '지방산 불포화도 조절', 'SCD(Stearoyl-CoA Desaturase)는 지방산의 불포화도를 조절하여 육질에 영향을 미칩니다.', 5, 'Y', NOW(), NOW()),
  ('SNP', 'FASN', 'FASN 유전자', '지방 합성에 관여', 'FASN(Fatty Acid Synthase)은 지방산 합성 효소로서 근내지방도에 영향을 미칩니다.', 6, 'Y', NOW(), NOW()),
  ('SNP', 'CAPN1', 'CAPN1 유전자', '육질 연도에 영향', 'CAPN1(Calpain 1)은 고기의 연도를 결정하는 주요 유전자입니다.', 7, 'Y', NOW(), NOW()),

  -- 형질 도움말 (4개)
  ('GENOME', '도체중', '도체중 (Carcass Weight)', '도축 후 측정되는 고기의 무게', '도체중은 소를 도축한 후 내장과 가죽을 제거한 고기의 무게입니다. 육량 평가의 가장 기본적인 지표입니다.', 1, 'Y', NOW(), NOW()),
  ('GENOME', '등심단면적', '등심단면적 (Eye Muscle Area)', '등심 부위의 단면적', '등심단면적은 13번 늑골 부위 등심의 넓이를 측정한 값입니다. 고기의 양적 평가에 중요한 지표입니다.', 2, 'Y', NOW(), NOW()),
  ('GENOME', '등지방두께', '등지방두께 (Backfat Thickness)', '등 부위 지방층의 두께', '등지방두께는 13번 늑골 부위 등심 위의 지방층 두께입니다. 적정 범위 내에서 관리가 필요합니다.', 3, 'Y', NOW(), NOW()),
  ('GENOME', '근내지방도', '근내지방도 (Marbling)', '고기 내 지방의 분포 정도', '근내지방도는 고기 조직 내에 지방이 고르게 분포된 정도를 나타냅니다. 육질 평가의 핵심 지표입니다.', 4, 'Y', NOW(), NOW()),

  -- MPT 도움말 (5개)
  ('MPT', '혈당', '혈당 (Blood Sugar)', '혈액 내 포도당 농도', '혈당은 에너지 대사 상태를 나타내는 지표입니다. 정상 범위는 60-85 mg/dL입니다.', 1, 'Y', NOW(), NOW()),
  ('MPT', 'NEFA', 'NEFA (유리지방산)', '혈액 내 유리지방산 농도', 'NEFA(Non-Esterified Fatty Acid)는 체지방 분해 정도를 나타냅니다.', 2, 'Y', NOW(), NOW()),
  ('MPT', 'BUN', 'BUN (요소태질소)', '단백질 대사 지표', 'BUN(Blood Urea Nitrogen)은 단백질 대사와 신장 기능을 평가합니다. 정상 범위는 10-20 mg/dL입니다.', 3, 'Y', NOW(), NOW()),
  ('MPT', 'AST', 'AST (간기능 효소)', '간 세포 손상 지표', 'AST(Aspartate Aminotransferase)는 간 기능을 평가하는 효소입니다. 정상 범위는 40-100 U/L입니다.', 4, 'Y', NOW(), NOW()),
  ('MPT', '칼슘', '칼슘 (Calcium)', '혈액 내 칼슘 농도', '칼슘은 뼈 형성과 근육 기능에 필수적인 미네랄입니다. 정상 범위는 8.5-10.5 mg/dL입니다.', 5, 'Y', NOW(), NOW());

-- 29. 혈통 데이터 (3건) - 3개 개체 모두 포함
INSERT INTO tb_pedigree (fk_animal_no, animal_type, sire_id, dam_id, maternal_grandsire_id, maternal_granddam_id, paternal_grandsire_id, paternal_granddam_id, inbreeding_coef, reg_dt, updt_dt)
VALUES
  -- 암소1: sire=KPN1385, dam=KOR002145165605, 근친도 1.25% (낮음)
  ('001122334401', 'COW', 'KPN1385', 'KOR002145165605', NULL, NULL, NULL, NULL, 0.0125, NOW(), NOW()),

  -- 암소2: sire=KPN1404, dam=KOR002168990465, 근친도 0.5% (매우 낮음)
  ('001122334402', 'COW', 'KPN1404', 'KOR002168990465', NULL, NULL, NULL, NULL, 0.005, NOW(), NOW()),

  -- 암소3: sire=KPN1302, dam=KOR002139419706, 근친도 2.0% (정상)
  ('001122334403', 'COW', 'KPN1302', 'KOR002139419706', NULL, NULL, NULL, NULL, 0.02, NOW(), NOW());

-- ============================================
-- PART 7: 추가 테스트 개체 (5마리) - A~E 등급 다양화
-- ============================================

-- 30. 추가 암소 5마리 (등급별 다양화) - 이미 앞에서 INSERT되었으므로 스킵
-- INSERT INTO tb_cow (pk_cow_idx, fk_farm_no, cow_birth_dt, cow_sex, anlys_stat, del_yn, reg_dt, updt_dt)
-- SELECT '001122334404', f.pk_farm_no, '2019-05-15'::date, 'F', '친자일치'::tb_cow_anlys_stat_enum, 'N', NOW(), NOW()
-- FROM tb_farm f WHERE f.farm_nm = '테스트농장'
-- UNION ALL
-- SELECT '001122334405', f.pk_farm_no, '2020-08-20'::date, 'F', '분석불가'::tb_cow_anlys_stat_enum, 'N', NOW(), NOW()
-- FROM tb_farm f WHERE f.farm_nm = '테스트농장'
-- UNION ALL
-- SELECT '001122334406', f.pk_farm_no, '2020-06-15'::date, 'F', '친자일치'::tb_cow_anlys_stat_enum, 'N', NOW(), NOW()
-- FROM tb_farm f WHERE f.farm_nm = '테스트농장'
-- UNION ALL
-- SELECT '001122334407', f.pk_farm_no, '2022-11-05'::date, 'F', '친자불일치'::tb_cow_anlys_stat_enum, 'N', NOW(), NOW()
-- FROM tb_farm f WHERE f.farm_nm = '테스트농장'
-- UNION ALL
-- SELECT '001122334408', f.pk_farm_no, '2019-09-25'::date, 'F', '분석불가'::tb_cow_anlys_stat_enum, 'N', NOW(), NOW()
-- FROM tb_farm f WHERE f.farm_nm = '테스트농장';

-- 31. 유전체 형질 분석 기록 (5건)
INSERT INTO tb_genome_trait (fk_file_no, fk_cow_no, sire, dam, anlys_dt, reg_dt, updt_dt)
SELECT f.pk_file_no, '001122334404', 'KPN1200', 'KOR002150000001', '2025-01-18'::date, NOW(), NOW()
FROM tb_upload_file f WHERE f.file_nm = 'test_genome_data.csv'
UNION ALL
SELECT f.pk_file_no, '001122334405', 'KPN1250', 'KOR002150000002', '2025-01-19'::date, NOW(), NOW()
FROM tb_upload_file f WHERE f.file_nm = 'test_genome_data.csv'
UNION ALL
SELECT f.pk_file_no, '001122334406', 'KPN0006', 'KOR002155551111', '2025-01-20'::date, NOW(), NOW()
FROM tb_upload_file f WHERE f.file_nm = 'test_genome_data.csv'
UNION ALL
SELECT f.pk_file_no, '001122334407', 'KPN1350', 'KOR002150000004', '2025-01-21'::date, NOW(), NOW()
FROM tb_upload_file f WHERE f.file_nm = 'test_genome_data.csv'
UNION ALL
SELECT f.pk_file_no, '001122334408', 'KPN1400', 'KOR002150000005', '2025-01-22'::date, NOW(), NOW()
FROM tb_upload_file f WHERE f.file_nm = 'test_genome_data.csv';

-- 32. 개체별 SNP genotype (5마리 × 7 SNP = 35건)
-- 암소4 (001122334404) - A등급 (동형 5, 이형 2)
INSERT INTO tb_snp_cow (fk_file_no, fk_cow_no, fk_snp_no, allele1_top, allele2_top, reg_dt, updt_dt)
SELECT f.pk_file_no, '001122334404', s.pk_snp_no, 'G', 'G', NOW(), NOW() FROM tb_upload_file f, tb_snp_info s WHERE f.file_nm = 'test_genome_data.csv' AND s.snp_nm = '14:25016263' -- PLAG1 GG (favorable 동형)
UNION ALL SELECT f.pk_file_no, '001122334404', s.pk_snp_no, 'T', 'T', NOW(), NOW() FROM tb_upload_file f, tb_snp_info s WHERE f.file_nm = 'test_genome_data.csv' AND s.snp_nm = '7:38528304' -- NCAPG2 TT (favorable 동형)
UNION ALL SELECT f.pk_file_no, '001122334404', s.pk_snp_no, 'T', 'T', NOW(), NOW() FROM tb_upload_file f, tb_snp_info s WHERE f.file_nm = 'test_genome_data.csv' AND s.snp_nm = '5:45120340' -- BTB TT (favorable 동형)
UNION ALL SELECT f.pk_file_no, '001122334404', s.pk_snp_no, 'C', 'C', NOW(), NOW() FROM tb_upload_file f, tb_snp_info s WHERE f.file_nm = 'test_genome_data.csv' AND s.snp_nm = '6:58230560' -- NT5E CC (favorable 동형)
UNION ALL SELECT f.pk_file_no, '001122334404', s.pk_snp_no, 'G', 'G', NOW(), NOW() FROM tb_upload_file f, tb_snp_info s WHERE f.file_nm = 'test_genome_data.csv' AND s.snp_nm = '26:21194784' -- SCD GG (favorable 동형)
UNION ALL SELECT f.pk_file_no, '001122334404', s.pk_snp_no, 'G', 'A', NOW(), NOW() FROM tb_upload_file f, tb_snp_info s WHERE f.file_nm = 'test_genome_data.csv' AND s.snp_nm = '19:51230120' -- FASN GA (favorable 이형)
UNION ALL SELECT f.pk_file_no, '001122334404', s.pk_snp_no, 'G', 'A', NOW(), NOW() FROM tb_upload_file f, tb_snp_info s WHERE f.file_nm = 'test_genome_data.csv' AND s.snp_nm = '29:44104889' -- CAPN1 GA (favorable 이형)
UNION ALL

-- 암소5 (001122334405) - B등급 (동형 3, 이형 3, 불량 1)
SELECT f.pk_file_no, '001122334405', s.pk_snp_no, 'G', 'G', NOW(), NOW() FROM tb_upload_file f, tb_snp_info s WHERE f.file_nm = 'test_genome_data.csv' AND s.snp_nm = '14:25016263' -- PLAG1 GG (favorable 동형)
UNION ALL SELECT f.pk_file_no, '001122334405', s.pk_snp_no, 'T', 'T', NOW(), NOW() FROM tb_upload_file f, tb_snp_info s WHERE f.file_nm = 'test_genome_data.csv' AND s.snp_nm = '7:38528304' -- NCAPG2 TT (favorable 동형)
UNION ALL SELECT f.pk_file_no, '001122334405', s.pk_snp_no, 'T', 'C', NOW(), NOW() FROM tb_upload_file f, tb_snp_info s WHERE f.file_nm = 'test_genome_data.csv' AND s.snp_nm = '5:45120340' -- BTB TC (favorable 이형)
UNION ALL SELECT f.pk_file_no, '001122334405', s.pk_snp_no, 'C', 'T', NOW(), NOW() FROM tb_upload_file f, tb_snp_info s WHERE f.file_nm = 'test_genome_data.csv' AND s.snp_nm = '6:58230560' -- NT5E CT (favorable 이형)
UNION ALL SELECT f.pk_file_no, '001122334405', s.pk_snp_no, 'G', 'A', NOW(), NOW() FROM tb_upload_file f, tb_snp_info s WHERE f.file_nm = 'test_genome_data.csv' AND s.snp_nm = '26:21194784' -- SCD GA (favorable 이형)
UNION ALL SELECT f.pk_file_no, '001122334405', s.pk_snp_no, 'A', 'A', NOW(), NOW() FROM tb_upload_file f, tb_snp_info s WHERE f.file_nm = 'test_genome_data.csv' AND s.snp_nm = '19:51230120' -- FASN AA (불량)
UNION ALL SELECT f.pk_file_no, '001122334405', s.pk_snp_no, 'G', 'G', NOW(), NOW() FROM tb_upload_file f, tb_snp_info s WHERE f.file_nm = 'test_genome_data.csv' AND s.snp_nm = '29:44104889' -- CAPN1 GG (favorable 동형)
UNION ALL

-- 암소6 (001122334406) - B등급 (동형 4, 이형 3) - 공란우 케이스
SELECT f.pk_file_no, '001122334406', s.pk_snp_no, 'G', 'G', NOW(), NOW() FROM tb_upload_file f, tb_snp_info s WHERE f.file_nm = 'test_genome_data.csv' AND s.snp_nm = '14:25016263' -- PLAG1 GG (favorable 동형)
UNION ALL SELECT f.pk_file_no, '001122334406', s.pk_snp_no, 'T', 'T', NOW(), NOW() FROM tb_upload_file f, tb_snp_info s WHERE f.file_nm = 'test_genome_data.csv' AND s.snp_nm = '7:38528304' -- NCAPG2 TT (favorable 동형)
UNION ALL SELECT f.pk_file_no, '001122334406', s.pk_snp_no, 'T', 'C', NOW(), NOW() FROM tb_upload_file f, tb_snp_info s WHERE f.file_nm = 'test_genome_data.csv' AND s.snp_nm = '5:45120340' -- BTB TC (favorable 이형)
UNION ALL SELECT f.pk_file_no, '001122334406', s.pk_snp_no, 'C', 'C', NOW(), NOW() FROM tb_upload_file f, tb_snp_info s WHERE f.file_nm = 'test_genome_data.csv' AND s.snp_nm = '6:58230560' -- NT5E CC (favorable 동형)
UNION ALL SELECT f.pk_file_no, '001122334406', s.pk_snp_no, 'G', 'A', NOW(), NOW() FROM tb_upload_file f, tb_snp_info s WHERE f.file_nm = 'test_genome_data.csv' AND s.snp_nm = '26:21194784' -- SCD GA (favorable 이형)
UNION ALL SELECT f.pk_file_no, '001122334406', s.pk_snp_no, 'G', 'G', NOW(), NOW() FROM tb_upload_file f, tb_snp_info s WHERE f.file_nm = 'test_genome_data.csv' AND s.snp_nm = '19:51230120' -- FASN GG (favorable 동형)
UNION ALL SELECT f.pk_file_no, '001122334406', s.pk_snp_no, 'G', 'A', NOW(), NOW() FROM tb_upload_file f, tb_snp_info s WHERE f.file_nm = 'test_genome_data.csv' AND s.snp_nm = '29:44104889' -- CAPN1 GA (favorable 이형)
UNION ALL

-- 암소7 (001122334407) - E등급 (이형 1, 불량 6)
SELECT f.pk_file_no, '001122334407', s.pk_snp_no, 'C', 'C', NOW(), NOW() FROM tb_upload_file f, tb_snp_info s WHERE f.file_nm = 'test_genome_data.csv' AND s.snp_nm = '14:25016263' -- PLAG1 CC (불량)
UNION ALL SELECT f.pk_file_no, '001122334407', s.pk_snp_no, 'G', 'G', NOW(), NOW() FROM tb_upload_file f, tb_snp_info s WHERE f.file_nm = 'test_genome_data.csv' AND s.snp_nm = '7:38528304' -- NCAPG2 GG (불량)
UNION ALL SELECT f.pk_file_no, '001122334407', s.pk_snp_no, 'C', 'C', NOW(), NOW() FROM tb_upload_file f, tb_snp_info s WHERE f.file_nm = 'test_genome_data.csv' AND s.snp_nm = '5:45120340' -- BTB CC (불량)
UNION ALL SELECT f.pk_file_no, '001122334407', s.pk_snp_no, 'T', 'T', NOW(), NOW() FROM tb_upload_file f, tb_snp_info s WHERE f.file_nm = 'test_genome_data.csv' AND s.snp_nm = '6:58230560' -- NT5E TT (불량)
UNION ALL SELECT f.pk_file_no, '001122334407', s.pk_snp_no, 'A', 'A', NOW(), NOW() FROM tb_upload_file f, tb_snp_info s WHERE f.file_nm = 'test_genome_data.csv' AND s.snp_nm = '26:21194784' -- SCD AA (불량)
UNION ALL SELECT f.pk_file_no, '001122334407', s.pk_snp_no, 'G', 'A', NOW(), NOW() FROM tb_upload_file f, tb_snp_info s WHERE f.file_nm = 'test_genome_data.csv' AND s.snp_nm = '19:51230120' -- FASN GA (favorable 이형)
UNION ALL SELECT f.pk_file_no, '001122334407', s.pk_snp_no, 'A', 'A', NOW(), NOW() FROM tb_upload_file f, tb_snp_info s WHERE f.file_nm = 'test_genome_data.csv' AND s.snp_nm = '29:44104889' -- CAPN1 AA (불량)
UNION ALL

-- 암소8 (001122334408) - A등급 (동형 4, 이형 2, 불량 1)
SELECT f.pk_file_no, '001122334408', s.pk_snp_no, 'G', 'G', NOW(), NOW() FROM tb_upload_file f, tb_snp_info s WHERE f.file_nm = 'test_genome_data.csv' AND s.snp_nm = '14:25016263' -- PLAG1 GG (favorable 동형)
UNION ALL SELECT f.pk_file_no, '001122334408', s.pk_snp_no, 'T', 'T', NOW(), NOW() FROM tb_upload_file f, tb_snp_info s WHERE f.file_nm = 'test_genome_data.csv' AND s.snp_nm = '7:38528304' -- NCAPG2 TT (favorable 동형)
UNION ALL SELECT f.pk_file_no, '001122334408', s.pk_snp_no, 'T', 'T', NOW(), NOW() FROM tb_upload_file f, tb_snp_info s WHERE f.file_nm = 'test_genome_data.csv' AND s.snp_nm = '5:45120340' -- BTB TT (favorable 동형)
UNION ALL SELECT f.pk_file_no, '001122334408', s.pk_snp_no, 'C', 'C', NOW(), NOW() FROM tb_upload_file f, tb_snp_info s WHERE f.file_nm = 'test_genome_data.csv' AND s.snp_nm = '6:58230560' -- NT5E CC (favorable 동형)
UNION ALL SELECT f.pk_file_no, '001122334408', s.pk_snp_no, 'G', 'A', NOW(), NOW() FROM tb_upload_file f, tb_snp_info s WHERE f.file_nm = 'test_genome_data.csv' AND s.snp_nm = '26:21194784' -- SCD GA (favorable 이형)
UNION ALL SELECT f.pk_file_no, '001122334408', s.pk_snp_no, 'G', 'A', NOW(), NOW() FROM tb_upload_file f, tb_snp_info s WHERE f.file_nm = 'test_genome_data.csv' AND s.snp_nm = '19:51230120' -- FASN GA (favorable 이형)
UNION ALL SELECT f.pk_file_no, '001122334408', s.pk_snp_no, 'A', 'A', NOW(), NOW() FROM tb_upload_file f, tb_snp_info s WHERE f.file_nm = 'test_genome_data.csv' AND s.snp_nm = '29:44104889'; -- CAPN1 AA (불량)

-- 33. 개체별 경제형질 측정값 (5마리 × 35형질 = 175건)
-- 암소4 (001122334404) - A등급 75점 목표 (표준화점수 평균 +1.5)
INSERT INTO tb_genome_cow (fk_genome_no, fk_trait_no, trait_val, breed_val, percentile, reg_dt, updt_dt)
SELECT g.pk_genome_no, t.pk_trait_no, 50.0, 1.5, 15, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334404' AND t.trait_nm = '12개월령체중' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 45.0, 1.5, 15, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334404' AND t.trait_nm = '도체중' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 10.0, 1.5, 15, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334404' AND t.trait_nm = '등심단면적' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 2.0, 1.5, 15, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334404' AND t.trait_nm = '등지방두께' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 2.5, 1.5, 15, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334404' AND t.trait_nm = '근내지방도' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 3.0, 1.5, 15, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334404' AND t.trait_nm = '체고' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 3.0, 1.5, 15, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334404' AND t.trait_nm = '십자' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 5.0, 1.5, 15, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334404' AND t.trait_nm = '체장' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 1.5, 1.5, 15, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334404' AND t.trait_nm = '흉심' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 2.0, 1.5, 15, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334404' AND t.trait_nm = '흉폭' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 1.5, 1.5, 15, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334404' AND t.trait_nm = '고장' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 1.5, 1.5, 15, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334404' AND t.trait_nm = '요각폭' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 2.0, 1.5, 15, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334404' AND t.trait_nm = '곤폭' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 2.0, 1.5, 15, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334404' AND t.trait_nm = '좌골폭' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 2.5, 1.5, 15, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334404' AND t.trait_nm = '흉위' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 5.0, 1.5, 15, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334404' AND t.trait_nm = '안심weight' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 1.5, 1.5, 15, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334404' AND t.trait_nm = '등심weight' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 2.5, 1.5, 15, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334404' AND t.trait_nm = '채끝weight' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 2.5, 1.5, 15, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334404' AND t.trait_nm = '목심weight' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 2.0, 1.5, 15, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334404' AND t.trait_nm = '앞다리weight' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 4.0, 1.5, 15, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334404' AND t.trait_nm = '우둔weight' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 1.5, 1.5, 15, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334404' AND t.trait_nm = '설도weight' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 3.0, 1.5, 15, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334404' AND t.trait_nm = '사태weight' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 5.0, 1.5, 15, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334404' AND t.trait_nm = '양지weight' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 1.0, 1.5, 15, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334404' AND t.trait_nm = '갈비weight' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.5, 1.5, 15, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334404' AND t.trait_nm = '안심rate' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.3, 1.5, 15, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334404' AND t.trait_nm = '등심rate' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.3, 1.5, 15, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334404' AND t.trait_nm = '채끝rate' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.2, 1.5, 15, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334404' AND t.trait_nm = '목심rate' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.2, 1.5, 15, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334404' AND t.trait_nm = '앞다리rate' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.3, 1.5, 15, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334404' AND t.trait_nm = '우둔rate' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.2, 1.5, 15, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334404' AND t.trait_nm = '설도rate' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.3, 1.5, 15, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334404' AND t.trait_nm = '사태rate' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.3, 1.5, 15, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334404' AND t.trait_nm = '양지rate' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.1, 1.5, 15, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334404' AND t.trait_nm = '갈비rate' UNION ALL

-- 암소5 (001122334405) - B등급 65점 목표 (표준화점수 평균 +0.9)
SELECT g.pk_genome_no, t.pk_trait_no, 35.0, 0.9, 25, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334405' AND t.trait_nm = '12개월령체중' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 38.0, 0.9, 25, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334405' AND t.trait_nm = '도체중' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 8.0, 0.9, 25, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334405' AND t.trait_nm = '등심단면적' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.5, 0.9, 25, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334405' AND t.trait_nm = '등지방두께' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 1.5, 0.9, 25, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334405' AND t.trait_nm = '근내지방도' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 1.0, 0.9, 25, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334405' AND t.trait_nm = '체고' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 1.0, 0.9, 25, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334405' AND t.trait_nm = '십자' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 3.0, 0.9, 25, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334405' AND t.trait_nm = '체장' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.5, 0.9, 25, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334405' AND t.trait_nm = '흉심' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 1.0, 0.9, 25, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334405' AND t.trait_nm = '흉폭' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.8, 0.9, 25, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334405' AND t.trait_nm = '고장' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.8, 0.9, 25, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334405' AND t.trait_nm = '요각폭' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 1.2, 0.9, 25, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334405' AND t.trait_nm = '곤폭' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 1.2, 0.9, 25, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334405' AND t.trait_nm = '좌골폭' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 1.5, 0.9, 25, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334405' AND t.trait_nm = '흉위' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 4.0, 0.9, 25, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334405' AND t.trait_nm = '안심weight' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 1.0, 0.9, 25, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334405' AND t.trait_nm = '등심weight' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 2.0, 0.9, 25, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334405' AND t.trait_nm = '채끝weight' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 2.0, 0.9, 25, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334405' AND t.trait_nm = '목심weight' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 1.8, 0.9, 25, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334405' AND t.trait_nm = '앞다리weight' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 3.0, 0.9, 25, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334405' AND t.trait_nm = '우둔weight' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 1.2, 0.9, 25, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334405' AND t.trait_nm = '설도weight' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 2.5, 0.9, 25, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334405' AND t.trait_nm = '사태weight' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 3.8, 0.9, 25, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334405' AND t.trait_nm = '양지weight' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.5, 0.9, 25, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334405' AND t.trait_nm = '갈비weight' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.4, 0.9, 25, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334405' AND t.trait_nm = '안심rate' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.2, 0.9, 25, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334405' AND t.trait_nm = '등심rate' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.2, 0.9, 25, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334405' AND t.trait_nm = '채끝rate' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.2, 0.9, 25, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334405' AND t.trait_nm = '목심rate' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.2, 0.9, 25, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334405' AND t.trait_nm = '앞다리rate' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.2, 0.9, 25, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334405' AND t.trait_nm = '우둔rate' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.1, 0.9, 25, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334405' AND t.trait_nm = '설도rate' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.2, 0.9, 25, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334405' AND t.trait_nm = '사태rate' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.3, 0.9, 25, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334405' AND t.trait_nm = '양지rate' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.0, 0.9, 25, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334405' AND t.trait_nm = '갈비rate' UNION ALL

-- 암소6 (001122334406) - B등급 67점 목표 (표준화점수 평균 +0.6) - 공란우 케이스
SELECT g.pk_genome_no, t.pk_trait_no, 42.0, 0.6, 35, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334406' AND t.trait_nm = '12개월령체중' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 43.0, 0.6, 35, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334406' AND t.trait_nm = '도체중' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 8.5, 0.5, 38, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334406' AND t.trait_nm = '등심단면적' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, -0.8, -0.2, 48, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334406' AND t.trait_nm = '등지방두께' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 1.8, 0.9, 32, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334406' AND t.trait_nm = '근내지방도' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 1.2, 0.6, 35, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334406' AND t.trait_nm = '체고' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 1.2, 0.6, 35, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334406' AND t.trait_nm = '십자' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 3.2, 0.6, 35, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334406' AND t.trait_nm = '체장' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.6, 0.6, 35, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334406' AND t.trait_nm = '흉심' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 1.0, 0.6, 35, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334406' AND t.trait_nm = '흉폭' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.7, 0.6, 35, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334406' AND t.trait_nm = '고장' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.7, 0.6, 35, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334406' AND t.trait_nm = '요각폭' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 1.1, 0.6, 35, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334406' AND t.trait_nm = '곤폭' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 1.1, 0.6, 35, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334406' AND t.trait_nm = '좌골폭' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 1.4, 0.6, 35, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334406' AND t.trait_nm = '흉위' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 3.8, 0.6, 35, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334406' AND t.trait_nm = '안심weight' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 1.1, 0.6, 35, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334406' AND t.trait_nm = '등심weight' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 2.1, 0.6, 35, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334406' AND t.trait_nm = '채끝weight' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 2.1, 0.6, 35, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334406' AND t.trait_nm = '목심weight' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 1.7, 0.6, 35, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334406' AND t.trait_nm = '앞다리weight' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 3.1, 0.6, 35, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334406' AND t.trait_nm = '우둔weight' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 1.1, 0.6, 35, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334406' AND t.trait_nm = '설도weight' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 2.6, 0.6, 35, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334406' AND t.trait_nm = '사태weight' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 3.9, 0.6, 35, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334406' AND t.trait_nm = '양지weight' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.6, 0.6, 35, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334406' AND t.trait_nm = '갈비weight' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.3, 0.6, 35, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334406' AND t.trait_nm = '안심rate' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.2, 0.6, 35, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334406' AND t.trait_nm = '등심rate' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.2, 0.6, 35, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334406' AND t.trait_nm = '채끝rate' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.2, 0.6, 35, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334406' AND t.trait_nm = '목심rate' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.2, 0.6, 35, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334406' AND t.trait_nm = '앞다리rate' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.2, 0.6, 35, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334406' AND t.trait_nm = '우둔rate' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.1, 0.6, 35, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334406' AND t.trait_nm = '설도rate' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.2, 0.6, 35, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334406' AND t.trait_nm = '사태rate' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.3, 0.6, 35, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334406' AND t.trait_nm = '양지rate' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.1, 0.6, 35, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334406' AND t.trait_nm = '갈비rate' UNION ALL

-- 암소7 (001122334407) - E등급 25점 목표 (표준화점수 평균 -1.5)
SELECT g.pk_genome_no, t.pk_trait_no, 5.0, -1.5, 85, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334407' AND t.trait_nm = '12개월령체중' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 10.0, -1.5, 85, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334407' AND t.trait_nm = '도체중' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 2.0, -1.5, 85, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334407' AND t.trait_nm = '등심단면적' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, -2.5, -1.5, 85, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334407' AND t.trait_nm = '등지방두께' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, -1.2, -1.5, 85, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334407' AND t.trait_nm = '근내지방도' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, -2.5, -1.5, 85, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334407' AND t.trait_nm = '체고' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, -2.5, -1.5, 85, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334407' AND t.trait_nm = '십자' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, -1.0, -1.5, 85, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334407' AND t.trait_nm = '체장' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, -1.5, -1.5, 85, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334407' AND t.trait_nm = '흉심' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, -1.2, -1.5, 85, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334407' AND t.trait_nm = '흉폭' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, -1.0, -1.5, 85, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334407' AND t.trait_nm = '고장' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, -1.0, -1.5, 85, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334407' AND t.trait_nm = '요각폭' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, -0.8, -1.5, 85, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334407' AND t.trait_nm = '곤폭' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, -0.8, -1.5, 85, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334407' AND t.trait_nm = '좌골폭' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, -1.5, -1.5, 85, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334407' AND t.trait_nm = '흉위' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 1.0, -1.5, 85, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334407' AND t.trait_nm = '안심weight' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.0, -1.5, 85, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334407' AND t.trait_nm = '등심weight' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.5, -1.5, 85, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334407' AND t.trait_nm = '채끝weight' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.8, -1.5, 85, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334407' AND t.trait_nm = '목심weight' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.5, -1.5, 85, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334407' AND t.trait_nm = '앞다리weight' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 1.2, -1.5, 85, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334407' AND t.trait_nm = '우둔weight' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.2, -1.5, 85, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334407' AND t.trait_nm = '설도weight' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 1.0, -1.5, 85, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334407' AND t.trait_nm = '사태weight' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 1.5, -1.5, 85, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334407' AND t.trait_nm = '양지weight' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, -0.8, -1.5, 85, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334407' AND t.trait_nm = '갈비weight' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, -0.2, -1.5, 85, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334407' AND t.trait_nm = '안심rate' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, -0.2, -1.5, 85, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334407' AND t.trait_nm = '등심rate' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.0, -1.5, 85, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334407' AND t.trait_nm = '채끝rate' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.0, -1.5, 85, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334407' AND t.trait_nm = '목심rate' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, -0.1, -1.5, 85, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334407' AND t.trait_nm = '앞다리rate' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, -0.1, -1.5, 85, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334407' AND t.trait_nm = '우둔rate' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, -0.1, -1.5, 85, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334407' AND t.trait_nm = '설도rate' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.0, -1.5, 85, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334407' AND t.trait_nm = '사태rate' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.0, -1.5, 85, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334407' AND t.trait_nm = '양지rate' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, -0.2, -1.5, 85, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334407' AND t.trait_nm = '갈비rate' UNION ALL

-- 암소8 (001122334408) - A등급 72점 목표 (표준화점수 평균 +1.32)
SELECT g.pk_genome_no, t.pk_trait_no, 45.0, 1.32, 18, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334408' AND t.trait_nm = '12개월령체중' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 42.0, 1.32, 18, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334408' AND t.trait_nm = '도체중' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 9.5, 1.32, 18, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334408' AND t.trait_nm = '등심단면적' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 1.5, 1.32, 18, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334408' AND t.trait_nm = '등지방두께' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 2.0, 1.32, 18, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334408' AND t.trait_nm = '근내지방도' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 2.5, 1.32, 18, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334408' AND t.trait_nm = '체고' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 2.5, 1.32, 18, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334408' AND t.trait_nm = '십자' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 4.5, 1.32, 18, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334408' AND t.trait_nm = '체장' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 1.2, 1.32, 18, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334408' AND t.trait_nm = '흉심' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 1.8, 1.32, 18, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334408' AND t.trait_nm = '흉폭' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 1.2, 1.32, 18, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334408' AND t.trait_nm = '고장' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 1.2, 1.32, 18, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334408' AND t.trait_nm = '요각폭' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 1.8, 1.32, 18, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334408' AND t.trait_nm = '곤폭' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 1.8, 1.32, 18, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334408' AND t.trait_nm = '좌골폭' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 2.0, 1.32, 18, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334408' AND t.trait_nm = '흉위' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 4.5, 1.32, 18, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334408' AND t.trait_nm = '안심weight' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 1.2, 1.32, 18, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334408' AND t.trait_nm = '등심weight' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 2.2, 1.32, 18, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334408' AND t.trait_nm = '채끝weight' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 2.2, 1.32, 18, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334408' AND t.trait_nm = '목심weight' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 1.9, 1.32, 18, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334408' AND t.trait_nm = '앞다리weight' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 3.5, 1.32, 18, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334408' AND t.trait_nm = '우둔weight' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 1.3, 1.32, 18, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334408' AND t.trait_nm = '설도weight' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 2.8, 1.32, 18, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334408' AND t.trait_nm = '사태weight' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 4.5, 1.32, 18, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334408' AND t.trait_nm = '양지weight' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.8, 1.32, 18, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334408' AND t.trait_nm = '갈비weight' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.4, 1.32, 18, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334408' AND t.trait_nm = '안심rate' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.2, 1.32, 18, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334408' AND t.trait_nm = '등심rate' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.3, 1.32, 18, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334408' AND t.trait_nm = '채끝rate' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.2, 1.32, 18, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334408' AND t.trait_nm = '목심rate' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.2, 1.32, 18, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334408' AND t.trait_nm = '앞다리rate' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.3, 1.32, 18, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334408' AND t.trait_nm = '우둔rate' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.1, 1.32, 18, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334408' AND t.trait_nm = '설도rate' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.3, 1.32, 18, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334408' AND t.trait_nm = '사태rate' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.3, 1.32, 18, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334408' AND t.trait_nm = '양지rate' UNION ALL
SELECT g.pk_genome_no, t.pk_trait_no, 0.1, 1.32, 18, NOW(), NOW() FROM tb_genome_trait g, tb_genome_trait_info t WHERE g.fk_cow_no = '001122334408' AND t.trait_nm = '갈비rate';

-- 34. 추가 암소 MPT 데이터 (5건) - tb_cow 이후에 추가
INSERT INTO tb_repro_mpt (fk_cow_no, month_age, test_dt, blood_sugar, cholesterol, nefa, total_protein, albumin, total_globulin, ag_ratio, bun, ast, ggt, fatty_liver_index, calcium, phosphorus, ca_p_ratio, magnesium, creatinine, reg_dt, updt_dt)
VALUES
  -- 암소4: A등급, 66개월령, MPT 수치 우수
  ('001122334404', 66, '2025-03-04'::date, 78, 155, 650, 7.6, 3.8, 3.8, 1.00, 6.8, 75, 8, 5.2, 9.2, 6.8, 1.4, 2.9, 1.4, NOW(), NOW()),

  -- 암소5: B등급, 53개월령, MPT 수치 양호
  ('001122334405', 53, '2025-03-05'::date, 81, 163, 695, 7.4, 3.6, 3.8, 0.95, 7.2, 79, 9, 5.7, 9.0, 6.6, 1.4, 2.8, 1.5, NOW(), NOW()),

  -- 암소6: B등급, 60개월령, MPT 수치 양호 (공란우)
  ('001122334406', 60, '2025-03-06'::date, 82, 165, 705, 7.5, 3.7, 3.8, 0.97, 7.4, 80, 10, 5.9, 9.1, 6.7, 1.4, 2.8, 1.5, NOW(), NOW()),

  -- 암소7: E등급, 26개월령, MPT 수치 주의 필요
  ('001122334407', 26, '2025-03-07'::date, 86, 175, 750, 7.0, 3.4, 3.6, 0.94, 8.0, 85, 12, 6.8, 8.7, 6.4, 1.4, 2.6, 1.7, NOW(), NOW()),

  -- 암소8: A등급, 64개월령, MPT 수치 우수
  ('001122334408', 64, '2025-03-08'::date, 77, 152, 640, 7.7, 3.9, 3.8, 1.03, 6.7, 74, 7, 5.0, 9.3, 6.9, 1.3, 3.0, 1.4, NOW(), NOW());

-- 35. 추가 암소 지역 매핑 (5건) - 외래 키 참조를 위해 먼저 추가
INSERT INTO tb_region_cow (pk_cow_idx, fk_region_no, del_yn, reg_dt, updt_dt)
SELECT '001122334404', r.pk_region_no, 'N', NOW(), NOW() FROM tb_region r WHERE r.region_nm = '충청북도 보은군' AND r.year = 2025
UNION ALL
SELECT '001122334405', r.pk_region_no, 'N', NOW(), NOW() FROM tb_region r WHERE r.region_nm = '충청북도 보은군' AND r.year = 2025
UNION ALL
SELECT '001122334406', r.pk_region_no, 'N', NOW(), NOW() FROM tb_region r WHERE r.region_nm = '충청북도 보은군' AND r.year = 2025
UNION ALL
SELECT '001122334407', r.pk_region_no, 'N', NOW(), NOW() FROM tb_region r WHERE r.region_nm = '충청북도 보은군' AND r.year = 2025
UNION ALL
SELECT '001122334408', r.pk_region_no, 'N', NOW(), NOW() FROM tb_region r WHERE r.region_nm = '충청북도 보은군' AND r.year = 2025;

-- 36. 추가 암소 지역 MPT 데이터 (5건)
INSERT INTO tb_region_mpt (fk_cow_no, month_age, test_dt, blood_sugar, cholesterol, nefa, total_protein, albumin, total_globulin, ag_ratio, bun, ast, ggt, fatty_liver_index, calcium, phosphorus, ca_p_ratio, magnesium, creatinine, reg_dt, updt_dt)
VALUES
  -- 암소4: A등급, 건강 상태 우수
  ('001122334404', 66, '2025-01-15'::date, 78, 155, 650, 7.6, 3.8, 3.8, 1.00, 6.8, 75, 8, 5.2, 9.2, 6.8, 1.4, 2.9, 1.4, NOW(), NOW()),
  -- 암소5: B등급, 건강 상태 양호
  ('001122334405', 53, '2025-01-16'::date, 81, 163, 695, 7.4, 3.6, 3.8, 0.95, 7.2, 79, 9, 5.7, 9.0, 6.6, 1.4, 2.8, 1.5, NOW(), NOW()),
  -- 암소6: B등급, 건강 상태 양호 (공란우)
  ('001122334406', 60, '2025-01-17'::date, 82, 165, 705, 7.5, 3.7, 3.8, 0.97, 7.4, 80, 10, 5.9, 9.1, 6.7, 1.4, 2.8, 1.5, NOW(), NOW()),
  -- 암소7: E등급, 건강 상태 주의 필요
  ('001122334407', 26, '2025-01-18'::date, 86, 175, 750, 7.0, 3.4, 3.6, 0.94, 8.0, 85, 12, 6.8, 8.7, 6.4, 1.4, 2.6, 1.7, NOW(), NOW()),
  -- 암소8: A등급, 건강 상태 우수
  ('001122334408', 64, '2025-01-19'::date, 77, 152, 640, 7.7, 3.9, 3.8, 1.03, 6.7, 74, 7, 5.0, 9.3, 6.9, 1.3, 3.0, 1.4, NOW(), NOW());

-- 37. 추가 암소 번식 데이터 (5건)
INSERT INTO tb_repro (fk_cow_no, preg_succ_cnt, preg_total_cnt, parity, bcs_score, reg_dt, updt_dt)
VALUES
  -- 암소4: 5.5세, 번식 성적 우수
  ('001122334404', 4, 5, 3, 3.7, NOW(), NOW()),
  -- 암소5: 4.5세, 번식 성적 양호
  ('001122334405', 3, 4, 2, 3.4, NOW(), NOW()),
  -- 암소6: 4.5세, 번식 성적 낮음 (공란우 - 수태율 40%)
  ('001122334406', 2, 5, 2, 3.6, NOW(), NOW()),
  -- 암소7: 2.1세, 초산우 (번식 데이터 적음)
  ('001122334407', 1, 2, 0, 2.9, NOW(), NOW()),
  -- 암소8: 5.2세, 번식 성적 우수
  ('001122334408', 5, 6, 4, 3.8, NOW(), NOW());

-- 38. 추가 암소 지역 SNP 데이터 (5마리 × 7 SNP = 35건)
INSERT INTO tb_region_snp (fk_cow_no, fk_snp_no, allele1_top, allele2_top, reg_dt, updt_dt)
-- 암소4 (001122334404) - A등급 (동형 5, 이형 2)
SELECT '001122334404', s.pk_snp_no, 'G', 'G', NOW(), NOW() FROM tb_snp_info s WHERE s.snp_nm = '14:25016263' UNION ALL  -- PLAG1 GG
SELECT '001122334404', s.pk_snp_no, 'T', 'T', NOW(), NOW() FROM tb_snp_info s WHERE s.snp_nm = '7:38528304' UNION ALL   -- NCAPG2 TT
SELECT '001122334404', s.pk_snp_no, 'T', 'T', NOW(), NOW() FROM tb_snp_info s WHERE s.snp_nm = '5:45120340' UNION ALL   -- BTB TT
SELECT '001122334404', s.pk_snp_no, 'C', 'C', NOW(), NOW() FROM tb_snp_info s WHERE s.snp_nm = '6:58230560' UNION ALL   -- NT5E CC
SELECT '001122334404', s.pk_snp_no, 'G', 'G', NOW(), NOW() FROM tb_snp_info s WHERE s.snp_nm = '26:21194784' UNION ALL  -- SCD GG
SELECT '001122334404', s.pk_snp_no, 'G', 'A', NOW(), NOW() FROM tb_snp_info s WHERE s.snp_nm = '19:51230120' UNION ALL  -- FASN GA
SELECT '001122334404', s.pk_snp_no, 'G', 'A', NOW(), NOW() FROM tb_snp_info s WHERE s.snp_nm = '29:44104889' UNION ALL  -- CAPN1 GA
-- 암소5 (001122334405) - B등급 (동형 3, 이형 3, 불량 1)
SELECT '001122334405', s.pk_snp_no, 'G', 'G', NOW(), NOW() FROM tb_snp_info s WHERE s.snp_nm = '14:25016263' UNION ALL  -- PLAG1 GG
SELECT '001122334405', s.pk_snp_no, 'T', 'T', NOW(), NOW() FROM tb_snp_info s WHERE s.snp_nm = '7:38528304' UNION ALL   -- NCAPG2 TT
SELECT '001122334405', s.pk_snp_no, 'T', 'C', NOW(), NOW() FROM tb_snp_info s WHERE s.snp_nm = '5:45120340' UNION ALL   -- BTB TC
SELECT '001122334405', s.pk_snp_no, 'C', 'T', NOW(), NOW() FROM tb_snp_info s WHERE s.snp_nm = '6:58230560' UNION ALL   -- NT5E CT
SELECT '001122334405', s.pk_snp_no, 'G', 'G', NOW(), NOW() FROM tb_snp_info s WHERE s.snp_nm = '26:21194784' UNION ALL  -- SCD GG
SELECT '001122334405', s.pk_snp_no, 'A', 'A', NOW(), NOW() FROM tb_snp_info s WHERE s.snp_nm = '19:51230120' UNION ALL  -- FASN AA (불량)
SELECT '001122334405', s.pk_snp_no, 'G', 'A', NOW(), NOW() FROM tb_snp_info s WHERE s.snp_nm = '29:44104889' UNION ALL  -- CAPN1 GA
-- 암소6 (001122334406) - B등급 (동형 4, 이형 3) - 공란우 케이스
SELECT '001122334406', s.pk_snp_no, 'G', 'G', NOW(), NOW() FROM tb_snp_info s WHERE s.snp_nm = '14:25016263' UNION ALL  -- PLAG1 GG
SELECT '001122334406', s.pk_snp_no, 'T', 'T', NOW(), NOW() FROM tb_snp_info s WHERE s.snp_nm = '7:38528304' UNION ALL   -- NCAPG2 TT
SELECT '001122334406', s.pk_snp_no, 'T', 'C', NOW(), NOW() FROM tb_snp_info s WHERE s.snp_nm = '5:45120340' UNION ALL   -- BTB TC
SELECT '001122334406', s.pk_snp_no, 'C', 'C', NOW(), NOW() FROM tb_snp_info s WHERE s.snp_nm = '6:58230560' UNION ALL   -- NT5E CC
SELECT '001122334406', s.pk_snp_no, 'G', 'A', NOW(), NOW() FROM tb_snp_info s WHERE s.snp_nm = '26:21194784' UNION ALL  -- SCD GA
SELECT '001122334406', s.pk_snp_no, 'G', 'G', NOW(), NOW() FROM tb_snp_info s WHERE s.snp_nm = '19:51230120' UNION ALL  -- FASN GG
SELECT '001122334406', s.pk_snp_no, 'G', 'A', NOW(), NOW() FROM tb_snp_info s WHERE s.snp_nm = '29:44104889' UNION ALL  -- CAPN1 GA
-- 암소7 (001122334407) - E등급 (동형 0, 이형 1, 불량 6)
SELECT '001122334407', s.pk_snp_no, 'C', 'C', NOW(), NOW() FROM tb_snp_info s WHERE s.snp_nm = '14:25016263' UNION ALL  -- PLAG1 CC (불량)
SELECT '001122334407', s.pk_snp_no, 'G', 'G', NOW(), NOW() FROM tb_snp_info s WHERE s.snp_nm = '7:38528304' UNION ALL   -- NCAPG2 GG (불량)
SELECT '001122334407', s.pk_snp_no, 'C', 'C', NOW(), NOW() FROM tb_snp_info s WHERE s.snp_nm = '5:45120340' UNION ALL   -- BTB CC (불량)
SELECT '001122334407', s.pk_snp_no, 'T', 'T', NOW(), NOW() FROM tb_snp_info s WHERE s.snp_nm = '6:58230560' UNION ALL   -- NT5E TT (불량)
SELECT '001122334407', s.pk_snp_no, 'A', 'A', NOW(), NOW() FROM tb_snp_info s WHERE s.snp_nm = '26:21194784' UNION ALL  -- SCD AA (불량)
SELECT '001122334407', s.pk_snp_no, 'A', 'A', NOW(), NOW() FROM tb_snp_info s WHERE s.snp_nm = '19:51230120' UNION ALL  -- FASN AA (불량)
SELECT '001122334407', s.pk_snp_no, 'G', 'A', NOW(), NOW() FROM tb_snp_info s WHERE s.snp_nm = '29:44104889' UNION ALL  -- CAPN1 GA
-- 암소8 (001122334408) - A등급 (동형 4, 이형 2, 불량 1)
SELECT '001122334408', s.pk_snp_no, 'G', 'G', NOW(), NOW() FROM tb_snp_info s WHERE s.snp_nm = '14:25016263' UNION ALL  -- PLAG1 GG
SELECT '001122334408', s.pk_snp_no, 'T', 'T', NOW(), NOW() FROM tb_snp_info s WHERE s.snp_nm = '7:38528304' UNION ALL   -- NCAPG2 TT
SELECT '001122334408', s.pk_snp_no, 'T', 'T', NOW(), NOW() FROM tb_snp_info s WHERE s.snp_nm = '5:45120340' UNION ALL   -- BTB TT
SELECT '001122334408', s.pk_snp_no, 'C', 'C', NOW(), NOW() FROM tb_snp_info s WHERE s.snp_nm = '6:58230560' UNION ALL   -- NT5E CC
SELECT '001122334408', s.pk_snp_no, 'A', 'A', NOW(), NOW() FROM tb_snp_info s WHERE s.snp_nm = '26:21194784' UNION ALL  -- SCD AA (불량)
SELECT '001122334408', s.pk_snp_no, 'G', 'A', NOW(), NOW() FROM tb_snp_info s WHERE s.snp_nm = '19:51230120' UNION ALL  -- FASN GA
SELECT '001122334408', s.pk_snp_no, 'G', 'A', NOW(), NOW() FROM tb_snp_info s WHERE s.snp_nm = '29:44104889';            -- CAPN1 GA

-- 39. 추가 암소 지역 유전체 분석 기록 (5건)
INSERT INTO tb_region_genome (fk_cow_no, reg_dt, updt_dt)
VALUES
  ('001122334404', NOW(), NOW()),
  ('001122334405', NOW(), NOW()),
  ('001122334406', NOW(), NOW()),
  ('001122334407', NOW(), NOW()),
  ('001122334408', NOW(), NOW());

-- 40. 추가 암소 지역 유전체 형질 데이터 (5마리 × 35형질 = 175건)
INSERT INTO tb_region_genome_cow (fk_region_genome_no, fk_trait_no, trait_val, breed_val, percentile, reg_dt, updt_dt)
-- 암소4 (001122334404) - A등급, 지역 평균보다 우수
SELECT rg.pk_region_genome_no, t.pk_trait_no, 48.0, 1.4, 18, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334404' AND t.trait_nm = '12개월령체중' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 44.0, 1.4, 18, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334404' AND t.trait_nm = '도체중' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 9.2, 1.4, 18, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334404' AND t.trait_nm = '등심단면적' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 1.2, 1.4, 18, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334404' AND t.trait_nm = '등지방두께' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 1.8, 1.4, 18, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334404' AND t.trait_nm = '근내지방도' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 2.2, 1.4, 18, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334404' AND t.trait_nm = '체고' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 2.2, 1.4, 18, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334404' AND t.trait_nm = '십자' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 4.0, 1.4, 18, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334404' AND t.trait_nm = '체장' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 1.0, 1.4, 18, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334404' AND t.trait_nm = '흉심' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 1.5, 1.4, 18, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334404' AND t.trait_nm = '흉폭' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 1.0, 1.4, 18, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334404' AND t.trait_nm = '고장' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 1.0, 1.4, 18, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334404' AND t.trait_nm = '요각폭' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 1.5, 1.4, 18, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334404' AND t.trait_nm = '곤폭' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 1.5, 1.4, 18, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334404' AND t.trait_nm = '좌골폭' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 1.8, 1.4, 18, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334404' AND t.trait_nm = '흉위' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 4.0, 1.4, 18, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334404' AND t.trait_nm = '안심weight' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 1.0, 1.4, 18, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334404' AND t.trait_nm = '등심weight' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 2.0, 1.4, 18, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334404' AND t.trait_nm = '채끝weight' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 2.0, 1.4, 18, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334404' AND t.trait_nm = '목심weight' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 1.6, 1.4, 18, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334404' AND t.trait_nm = '앞다리weight' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 3.2, 1.4, 18, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334404' AND t.trait_nm = '우둔weight' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 1.1, 1.4, 18, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334404' AND t.trait_nm = '설도weight' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 2.5, 1.4, 18, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334404' AND t.trait_nm = '사태weight' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 4.0, 1.4, 18, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334404' AND t.trait_nm = '양지weight' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 0.8, 1.4, 18, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334404' AND t.trait_nm = '갈비weight' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 0.3, 1.4, 18, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334404' AND t.trait_nm = '안심rate' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 0.2, 1.4, 18, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334404' AND t.trait_nm = '등심rate' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 0.2, 1.4, 18, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334404' AND t.trait_nm = '채끝rate' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 0.2, 1.4, 18, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334404' AND t.trait_nm = '목심rate' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 0.1, 1.4, 18, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334404' AND t.trait_nm = '앞다리rate' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 0.2, 1.4, 18, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334404' AND t.trait_nm = '우둔rate' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 0.1, 1.4, 18, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334404' AND t.trait_nm = '설도rate' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 0.2, 1.4, 18, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334404' AND t.trait_nm = '사태rate' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 0.3, 1.4, 18, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334404' AND t.trait_nm = '양지rate' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 0.1, 1.4, 18, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334404' AND t.trait_nm = '갈비rate' UNION ALL
-- 암소5 (001122334405) - B등급
SELECT rg.pk_region_genome_no, t.pk_trait_no, 42.0, 0.8, 30, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334405' AND t.trait_nm = '12개월령체중' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 40.0, 0.8, 30, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334405' AND t.trait_nm = '도체중' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 8.8, 0.8, 30, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334405' AND t.trait_nm = '등심단면적' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 1.4, 0.8, 30, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334405' AND t.trait_nm = '등지방두께' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 1.5, 0.8, 30, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334405' AND t.trait_nm = '근내지방도' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 1.8, 0.8, 30, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334405' AND t.trait_nm = '체고' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 1.8, 0.8, 30, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334405' AND t.trait_nm = '십자' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 3.5, 0.8, 30, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334405' AND t.trait_nm = '체장' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 0.8, 0.8, 30, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334405' AND t.trait_nm = '흉심' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 1.2, 0.8, 30, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334405' AND t.trait_nm = '흉폭' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 0.8, 0.8, 30, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334405' AND t.trait_nm = '고장' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 0.8, 0.8, 30, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334405' AND t.trait_nm = '요각폭' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 1.2, 0.8, 30, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334405' AND t.trait_nm = '곤폭' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 1.2, 0.8, 30, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334405' AND t.trait_nm = '좌골폭' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 1.5, 0.8, 30, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334405' AND t.trait_nm = '흉위' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 3.5, 0.8, 30, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334405' AND t.trait_nm = '안심weight' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 0.9, 0.8, 30, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334405' AND t.trait_nm = '등심weight' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 1.7, 0.8, 30, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334405' AND t.trait_nm = '채끝weight' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 1.8, 0.8, 30, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334405' AND t.trait_nm = '목심weight' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 1.5, 0.8, 30, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334405' AND t.trait_nm = '앞다리weight' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 2.9, 0.8, 30, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334405' AND t.trait_nm = '우둔weight' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 1.0, 0.8, 30, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334405' AND t.trait_nm = '설도weight' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 2.4, 0.8, 30, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334405' AND t.trait_nm = '사태weight' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 3.6, 0.8, 30, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334405' AND t.trait_nm = '양지weight' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 0.5, 0.8, 30, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334405' AND t.trait_nm = '갈비weight' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 0.2, 0.8, 30, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334405' AND t.trait_nm = '안심rate' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 0.1, 0.8, 30, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334405' AND t.trait_nm = '등심rate' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 0.1, 0.8, 30, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334405' AND t.trait_nm = '채끝rate' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 0.1, 0.8, 30, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334405' AND t.trait_nm = '목심rate' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 0.1, 0.8, 30, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334405' AND t.trait_nm = '앞다리rate' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 0.2, 0.8, 30, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334405' AND t.trait_nm = '우둔rate' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 0.0, 0.8, 30, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334405' AND t.trait_nm = '설도rate' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 0.2, 0.8, 30, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334405' AND t.trait_nm = '사태rate' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 0.2, 0.8, 30, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334405' AND t.trait_nm = '양지rate' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 0.0, 0.8, 30, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334405' AND t.trait_nm = '갈비rate' UNION ALL
-- 암소6 (001122334406) - B등급 (공란우 케이스)
SELECT rg.pk_region_genome_no, t.pk_trait_no, 41.0, 0.7, 32, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334406' AND t.trait_nm = '12개월령체중' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 39.0, 0.7, 32, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334406' AND t.trait_nm = '도체중' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 8.6, 0.6, 36, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334406' AND t.trait_nm = '등심단면적' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 1.2, -0.3, 50, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334406' AND t.trait_nm = '등지방두께' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 1.6, 0.8, 28, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334406' AND t.trait_nm = '근내지방도' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 1.6, 0.7, 32, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334406' AND t.trait_nm = '체고' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 1.6, 0.7, 32, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334406' AND t.trait_nm = '십자' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 3.3, 0.7, 32, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334406' AND t.trait_nm = '체장' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 0.7, 0.7, 32, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334406' AND t.trait_nm = '흉심' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 1.1, 0.7, 32, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334406' AND t.trait_nm = '흉폭' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 0.8, 0.7, 32, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334406' AND t.trait_nm = '고장' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 0.8, 0.7, 32, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334406' AND t.trait_nm = '요각폭' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 1.2, 0.7, 32, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334406' AND t.trait_nm = '곤폭' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 1.2, 0.7, 32, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334406' AND t.trait_nm = '좌골폭' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 1.5, 0.7, 32, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334406' AND t.trait_nm = '흉위' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 3.6, 0.7, 32, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334406' AND t.trait_nm = '안심weight' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 1.0, 0.7, 32, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334406' AND t.trait_nm = '등심weight' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 1.9, 0.7, 32, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334406' AND t.trait_nm = '채끝weight' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 2.0, 0.7, 32, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334406' AND t.trait_nm = '목심weight' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 1.6, 0.7, 32, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334406' AND t.trait_nm = '앞다리weight' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 3.0, 0.7, 32, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334406' AND t.trait_nm = '우둔weight' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 1.0, 0.7, 32, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334406' AND t.trait_nm = '설도weight' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 2.5, 0.7, 32, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334406' AND t.trait_nm = '사태weight' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 3.7, 0.7, 32, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334406' AND t.trait_nm = '양지weight' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 0.5, 0.7, 32, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334406' AND t.trait_nm = '갈비weight' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 0.2, 0.7, 32, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334406' AND t.trait_nm = '안심rate' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 0.1, 0.7, 32, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334406' AND t.trait_nm = '등심rate' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 0.1, 0.7, 32, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334406' AND t.trait_nm = '채끝rate' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 0.1, 0.7, 32, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334406' AND t.trait_nm = '목심rate' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 0.1, 0.7, 32, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334406' AND t.trait_nm = '앞다리rate' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 0.2, 0.7, 32, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334406' AND t.trait_nm = '우둔rate' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 0.1, 0.7, 32, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334406' AND t.trait_nm = '설도rate' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 0.2, 0.7, 32, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334406' AND t.trait_nm = '사태rate' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 0.2, 0.7, 32, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334406' AND t.trait_nm = '양지rate' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 0.0, 0.7, 32, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334406' AND t.trait_nm = '갈비rate' UNION ALL
-- 암소7 (001122334407) - E등급
SELECT rg.pk_region_genome_no, t.pk_trait_no, 28.0, -1.4, 85, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334407' AND t.trait_nm = '12개월령체중' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 26.0, -1.4, 85, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334407' AND t.trait_nm = '도체중' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 7.0, -1.4, 85, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334407' AND t.trait_nm = '등심단면적' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 2.5, -1.4, 85, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334407' AND t.trait_nm = '등지방두께' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 0.5, -1.4, 85, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334407' AND t.trait_nm = '근내지방도' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 0.0, -1.4, 85, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334407' AND t.trait_nm = '체고' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 0.0, -1.4, 85, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334407' AND t.trait_nm = '십자' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 1.0, -1.4, 85, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334407' AND t.trait_nm = '체장' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 0.0, -1.4, 85, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334407' AND t.trait_nm = '흉심' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 0.2, -1.4, 85, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334407' AND t.trait_nm = '흉폭' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 0.0, -1.4, 85, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334407' AND t.trait_nm = '고장' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 0.0, -1.4, 85, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334407' AND t.trait_nm = '요각폭' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 0.2, -1.4, 85, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334407' AND t.trait_nm = '곤폭' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 0.2, -1.4, 85, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334407' AND t.trait_nm = '좌골폭' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 0.5, -1.4, 85, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334407' AND t.trait_nm = '흉위' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 1.8, -1.4, 85, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334407' AND t.trait_nm = '안심weight' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 0.3, -1.4, 85, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334407' AND t.trait_nm = '등심weight' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 0.8, -1.4, 85, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334407' AND t.trait_nm = '채끝weight' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 1.0, -1.4, 85, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334407' AND t.trait_nm = '목심weight' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 0.7, -1.4, 85, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334407' AND t.trait_nm = '앞다리weight' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 1.5, -1.4, 85, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334407' AND t.trait_nm = '우둔weight' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 0.4, -1.4, 85, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334407' AND t.trait_nm = '설도weight' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 1.2, -1.4, 85, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334407' AND t.trait_nm = '사태weight' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 2.0, -1.4, 85, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334407' AND t.trait_nm = '양지weight' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, -0.2, -1.4, 85, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334407' AND t.trait_nm = '갈비weight' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, -0.2, -1.4, 85, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334407' AND t.trait_nm = '안심rate' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, -0.2, -1.4, 85, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334407' AND t.trait_nm = '등심rate' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 0.0, -1.4, 85, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334407' AND t.trait_nm = '채끝rate' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 0.0, -1.4, 85, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334407' AND t.trait_nm = '목심rate' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, -0.1, -1.4, 85, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334407' AND t.trait_nm = '앞다리rate' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, -0.1, -1.4, 85, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334407' AND t.trait_nm = '우둔rate' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, -0.1, -1.4, 85, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334407' AND t.trait_nm = '설도rate' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 0.0, -1.4, 85, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334407' AND t.trait_nm = '사태rate' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 0.0, -1.4, 85, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334407' AND t.trait_nm = '양지rate' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, -0.2, -1.4, 85, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334407' AND t.trait_nm = '갈비rate' UNION ALL
-- 암소8 (001122334408) - A등급
SELECT rg.pk_region_genome_no, t.pk_trait_no, 46.0, 1.3, 20, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334408' AND t.trait_nm = '12개월령체중' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 43.0, 1.3, 20, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334408' AND t.trait_nm = '도체중' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 9.0, 1.3, 20, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334408' AND t.trait_nm = '등심단면적' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 1.3, 1.3, 20, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334408' AND t.trait_nm = '등지방두께' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 1.7, 1.3, 20, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334408' AND t.trait_nm = '근내지방도' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 2.0, 1.3, 20, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334408' AND t.trait_nm = '체고' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 2.0, 1.3, 20, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334408' AND t.trait_nm = '십자' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 3.8, 1.3, 20, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334408' AND t.trait_nm = '체장' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 0.9, 1.3, 20, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334408' AND t.trait_nm = '흉심' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 1.4, 1.3, 20, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334408' AND t.trait_nm = '흉폭' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 0.9, 1.3, 20, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334408' AND t.trait_nm = '고장' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 0.9, 1.3, 20, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334408' AND t.trait_nm = '요각폭' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 1.4, 1.3, 20, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334408' AND t.trait_nm = '곤폭' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 1.4, 1.3, 20, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334408' AND t.trait_nm = '좌골폭' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 1.7, 1.3, 20, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334408' AND t.trait_nm = '흉위' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 3.8, 1.3, 20, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334408' AND t.trait_nm = '안심weight' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 0.9, 1.3, 20, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334408' AND t.trait_nm = '등심weight' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 1.9, 1.3, 20, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334408' AND t.trait_nm = '채끝weight' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 1.9, 1.3, 20, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334408' AND t.trait_nm = '목심weight' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 1.5, 1.3, 20, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334408' AND t.trait_nm = '앞다리weight' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 3.0, 1.3, 20, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334408' AND t.trait_nm = '우둔weight' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 1.0, 1.3, 20, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334408' AND t.trait_nm = '설도weight' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 2.4, 1.3, 20, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334408' AND t.trait_nm = '사태weight' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 3.8, 1.3, 20, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334408' AND t.trait_nm = '양지weight' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 0.7, 1.3, 20, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334408' AND t.trait_nm = '갈비weight' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 0.3, 1.3, 20, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334408' AND t.trait_nm = '안심rate' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 0.2, 1.3, 20, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334408' AND t.trait_nm = '등심rate' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 0.2, 1.3, 20, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334408' AND t.trait_nm = '채끝rate' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 0.2, 1.3, 20, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334408' AND t.trait_nm = '목심rate' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 0.1, 1.3, 20, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334408' AND t.trait_nm = '앞다리rate' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 0.2, 1.3, 20, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334408' AND t.trait_nm = '우둔rate' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 0.1, 1.3, 20, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334408' AND t.trait_nm = '설도rate' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 0.2, 1.3, 20, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334408' AND t.trait_nm = '사태rate' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 0.3, 1.3, 20, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334408' AND t.trait_nm = '양지rate' UNION ALL
SELECT rg.pk_region_genome_no, t.pk_trait_no, 0.1, 1.3, 20, NOW(), NOW() FROM tb_region_genome rg, tb_genome_trait_info t WHERE rg.fk_cow_no = '001122334408' AND t.trait_nm = '갈비rate';

-- 41. 추가 암소 혈통 데이터 (5건)
INSERT INTO tb_pedigree (fk_animal_no, animal_type, sire_id, dam_id, maternal_grandsire_id, maternal_granddam_id, paternal_grandsire_id, paternal_granddam_id, inbreeding_coef, reg_dt, updt_dt)
VALUES
  -- 암소4: A등급, 근친도 0.8% (매우 우수)
  ('001122334404', 'COW', 'KPN1200', 'KOR002150000001', NULL, NULL, NULL, NULL, 0.008, NOW(), NOW()),
  -- 암소5: B등급, 근친도 1.5% (우수)
  ('001122334405', 'COW', 'KPN1250', 'KOR002150000002', NULL, NULL, NULL, NULL, 0.015, NOW(), NOW()),
  -- 암소6: D등급, 근친도 3.5% (보통)
  ('001122334406', 'COW', 'KPN1300', 'KOR002150000003', NULL, NULL, NULL, NULL, 0.035, NOW(), NOW()),
  -- 암소7: E등급, 근친도 5.2% (주의 필요)
  ('001122334407', 'COW', 'KPN1350', 'KOR002150000004', NULL, NULL, NULL, NULL, 0.052, NOW(), NOW()),
  -- 암소8: A등급, 근친도 1.0% (우수)
  ('001122334408', 'COW', 'KPN1400', 'KOR002150000005', NULL, NULL, NULL, NULL, 0.01, NOW(), NOW());

-- 42. KPN 혈통 정보 (전체)
INSERT INTO tb_pedigree (fk_animal_no, animal_type, sire_id, dam_id, maternal_grandsire_id, maternal_granddam_id, paternal_grandsire_id, paternal_granddam_id, inbreeding_coef, reg_dt, updt_dt)
VALUES
  -- 농장 KPN (5마리)
  ('KPN0001', 'KPN', 'SIRE001', 'DAM001', NULL, NULL, NULL, NULL, 0.02, NOW(), NOW()),
  ('KPN0002', 'KPN', 'SIRE002', 'DAM002', NULL, NULL, NULL, NULL, 0.015, NOW(), NOW()),
  ('KPN0003', 'KPN', 'SIRE003', 'DAM003', NULL, NULL, NULL, NULL, 0.03, NOW(), NOW()),
  ('KPN0004', 'KPN', 'SIRE004', 'DAM004', NULL, NULL, NULL, NULL, 0.022, NOW(), NOW()),
  ('KPN0005', 'KPN', 'SIRE005', 'DAM005', NULL, NULL, NULL, NULL, 0.018, NOW(), NOW()),

  -- 암소 부(sire) KPN
  ('KPN1200', 'KPN', 'SIRE1200', 'DAM1200', NULL, NULL, NULL, NULL, 0.015, NOW(), NOW()),
  ('KPN1250', 'KPN', 'SIRE1250', 'DAM1250', NULL, NULL, NULL, NULL, 0.02, NOW(), NOW()),
  ('KPN1300', 'KPN', 'SIRE1300', 'DAM1300', NULL, NULL, NULL, NULL, 0.028, NOW(), NOW()),
  ('KPN1302', 'KPN', 'SIRE1302', 'DAM1302', NULL, NULL, NULL, NULL, 0.023, NOW(), NOW()),
  ('KPN1350', 'KPN', 'SIRE1350', 'DAM1350', NULL, NULL, NULL, NULL, 0.035, NOW(), NOW()),
  ('KPN1385', 'KPN', 'SIRE1385', 'DAM1385', NULL, NULL, NULL, NULL, 0.018, NOW(), NOW()),
  ('KPN1400', 'KPN', 'SIRE1400', 'DAM1400', NULL, NULL, NULL, NULL, 0.012, NOW(), NOW()),
  ('KPN1404', 'KPN', 'SIRE1404', 'DAM1404', NULL, NULL, NULL, NULL, 0.025, NOW(), NOW());

-- 43. 육종 저장 데이터 (1건)
INSERT INTO tb_breed_save (fk_user_no, fk_cow_no, fk_kpn_no, save_memo, del_yn, reg_dt, updt_dt)
VALUES
  (1, '001122334401', 'KPN0001', '우수 매칭 - 육질 개선 목표', 'N', NOW(), NOW());

-- ============================================
-- 완료 메시지
-- ============================================

SELECT '✅ Seed 데이터 v2 삽입 완료!' as result;
SELECT 'tb_marker_type: ' || COUNT(*) || '건' as result FROM tb_marker_type;
SELECT 'tb_marker: ' || COUNT(*) || '건' as result FROM tb_marker;
SELECT 'tb_snp_info: ' || COUNT(*) || '건' as result FROM tb_snp_info;
SELECT 'tb_marker_snp: ' || COUNT(*) || '건' as result FROM tb_marker_snp;
SELECT 'tb_genome_trait_info: ' || COUNT(*) || '건' as result FROM tb_genome_trait_info;
SELECT 'tb_users: ' || COUNT(*) || '건' as result FROM tb_users;
SELECT 'tb_farm: ' || COUNT(*) || '건' as result FROM tb_farm;
SELECT 'tb_cow: ' || COUNT(*) || '건' as result FROM tb_cow;
SELECT 'tb_kpn: ' || COUNT(*) || '건' as result FROM tb_kpn;
SELECT 'tb_farm_kpn: ' || COUNT(*) || '건' as result FROM tb_farm_kpn;
SELECT 'tb_genome_trait: ' || COUNT(*) || '건' as result FROM tb_genome_trait;
SELECT 'tb_genome_cow: ' || COUNT(*) || '건' as result FROM tb_genome_cow;
SELECT 'tb_snp_cow: ' || COUNT(*) || '건' as result FROM tb_snp_cow;
SELECT 'tb_repro_mpt: ' || COUNT(*) || '건' as result FROM tb_repro_mpt;
SELECT 'tb_kpn_snp: ' || COUNT(*) || '건' as result FROM tb_kpn_snp;
SELECT 'tb_kpn_genome: ' || COUNT(*) || '건' as result FROM tb_kpn_genome;
SELECT 'tb_kpn_genome_cow: ' || COUNT(*) || '건' as result FROM tb_kpn_genome_cow;
SELECT 'tb_kpn_mpt: ' || COUNT(*) || '건' as result FROM tb_kpn_mpt;
SELECT 'tb_region: ' || COUNT(*) || '건' as result FROM tb_region;
SELECT 'tb_region_cow: ' || COUNT(*) || '건' as result FROM tb_region_cow;
SELECT 'tb_region_snp: ' || COUNT(*) || '건' as result FROM tb_region_snp;
SELECT 'tb_region_genome: ' || COUNT(*) || '건' as result FROM tb_region_genome;
SELECT 'tb_region_genome_cow: ' || COUNT(*) || '건' as result FROM tb_region_genome_cow;
SELECT 'tb_region_mpt: ' || COUNT(*) || '건' as result FROM tb_region_mpt;
SELECT 'tb_repro: ' || COUNT(*) || '건' as result FROM tb_repro;
SELECT 'tb_help: ' || COUNT(*) || '건' as result FROM tb_help;
SELECT 'tb_pedigree: ' || COUNT(*) || '건' as result FROM tb_pedigree;
SELECT 'tb_breed_save: ' || COUNT(*) || '건' as result FROM tb_breed_save;
