HONDA STEPWGN
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 ='stepwgn' AND KAT.HYOJIFLG = 1 ORDER BY NENSHIKIFR,NENSHIKITO, MC,GRADE
Array
(
[stepwgn_rg1-4_1] => Array
(
[NAME] => RG1-4
[NAMEEN] => RG1-4
[SHANAMEEN] => STEPWGN
[ORDER] => 70
[GRADE] => G Sパッケージ,G LSパッケージ,24Z
[MC] => MC前
[MODELYEAR] => '05/05-'09/10
[YEAR] => '05/05-'07/11
[COUNT] => 0
)
[stepwgn_rg1-4_2] => Array
(
[NAME] => RG1-4
[NAMEEN] => RG1-4
[SHANAMEEN] => STEPWGN
[ORDER] => 70
[GRADE] => 全車対応
[MC] => MC後
[MODELYEAR] => '05/05-'09/10
[YEAR] => '07/11-'09/10
[COUNT] => 1
)
[stepwgn_rk_1] => Array
(
[NAME] => RK
[NAMEEN] => RK
[SHANAMEEN] => STEPWGN
[ORDER] => 70
[GRADE] => 全車対応
[MC] => MC前
[MODELYEAR] => '09/10-'15/04
[YEAR] => '09/10-'12/04
[COUNT] => 2
)
[stepwgn_rk_2] => Array
(
[NAME] => RK
[NAMEEN] => RK
[SHANAMEEN] => STEPWGN
[ORDER] => 70
[GRADE] => 全車対応
[MC] => MC後
[MODELYEAR] => '09/10-'15/04
[YEAR] => '12/04-'15/04
[COUNT] => 3
)
[stepwgn_rpseries_1] => Array
(
[NAME] => RP系
[NAMEEN] => RPseries
[SHANAMEEN] => STEPWGN
[ORDER] => 70
[GRADE] => 全車対応
[MC] => MC前
[MODELYEAR] => '15/04-
[YEAR] => '15/04-'17/09
[COUNT] => 4
)
[stepwgn_rpseries_2] => Array
(
[NAME] => RP系
[NAMEEN] => RPseries
[SHANAMEEN] => STEPWGN
[ORDER] => 70
[GRADE] => 全車対応
[MC] => MC後
[MODELYEAR] => '15/04-
[YEAR] => '17/09-
[COUNT] => 5
)
)
RG1-4 '05/05-'09/10
RK '09/10-'15/04
RP系 '15/04-