SUBARU XV
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 ='xv' AND KAT.HYOJIFLG = 1 ORDER BY NENSHIKIFR,NENSHIKITO, MC,GRADE
Array
(
[xv_gpseries_1] => Array
(
[NAME] => GP系
[NAMEEN] => GPseries
[SHANAMEEN] => XV
[ORDER] => 99
[GRADE] => 全車対応
[MC] =>
[MODELYEAR] => '12/10-'17/05
[YEAR] => '12/10-'17/05
[COUNT] => 0
)
[xv_gtseries_1] => Array
(
[NAME] => GT系
[NAMEEN] => GTseries
[SHANAMEEN] => XV
[ORDER] => 99
[GRADE] => 全車対応
[MC] =>
[MODELYEAR] => '17/05-
[YEAR] => '17/05-
[COUNT] => 1
)
)
GP系 '12/10-'17/05
GT系 '17/05-