SUZUKI SWIFT
SQL
SELECT * , KAT.URLNAME AS KATURLNAME FROM M_KATASHIKI KAT LEFT OUTER JOIN M_SHASHU SHA ON SHA.SHACODE = KAT.SHACODE AND SHA.MAKCODE = KAT.MAKCODE LEFT OUTER JOIN ( SELECT MAKCODE , SHACODE ,KATNAME AS KATNAME1 , MIN(NENSHIKIFR) AS FROMOLD, MAX(NENSHIKIFR) AS FROMNEW, MIN(NENSHIKITO) AS TOOLD, MAX(NENSHIKITO) AS TONEW FROM M_KATASHIKI KAT WHERE KAT.HYOJIFLG = 1 GROUP BY MAKCODE, SHACODE, KATNAME1 ) kts ON kts.MAKCODE= KAT.MAKCODE AND kts.SHACODE= KAT.SHACODE AND kts.KATNAME1= KAT.KATNAME WHERE SHA.URLNAME ='swift' AND KAT.HYOJIFLG = 1 ORDER BY NENSHIKIFR,NENSHIKITO, MC,GRADE
Array
(
[swift_zc_zd11_21s_1] => Array
(
[NAME] => ZC/ZD11,21S
[NAMEEN] => ZC/ZD11,21S
[SHANAMEEN] => SWIFT
[ORDER] => 70
[GRADE] => 全車対応
[MC] =>
[MODELYEAR] => '04/11-'10/09
[YEAR] => '04/11-'10/09
[COUNT] => 0
)
[swift_zc_zd72s_1] => Array
(
[NAME] => ZC/ZD71,72S
[NAMEEN] => ZC/ZD71,72S
[SHANAMEEN] => SWIFT
[ORDER] => 70
[GRADE] => 全車対応
[MC] =>
[MODELYEAR] => '10/09-'16/12
[YEAR] => '10/09-'16/12
[COUNT] => 1
)
[swift_zc_zd72s_2] => Array
(
[NAME] => ZC/ZD13,53,83S
[NAMEEN] => ZC/ZD13,53,83S
[SHANAMEEN] => SWIFT
[ORDER] => 70
[GRADE] => 全車対応
[MC] =>
[MODELYEAR] => '16/12-
[YEAR] => '16/12-
[COUNT] => 2
)
)
ZC/ZD11,21S '04/11-'10/09
ZC/ZD71,72S '10/09-'16/12
ZC/ZD13,53,83S '16/12-