HONDA STREAM
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 ='stream' AND KAT.HYOJIFLG = 1 ORDER BY NENSHIKIFR,NENSHIKITO, MC,GRADE
Array
(
[stream_rn1-5_1] => Array
(
[NAME] => RN1-5
[NAMEEN] => RN1-5
[SHANAMEEN] => STREAM
[ORDER] => 70
[GRADE] => 全車対応
[MC] =>
[MODELYEAR] => '00/10-'06/07
[YEAR] => '00/10-'06/07
[COUNT] => 0
)
[stream_rn6-9_1] => Array
(
[NAME] => RN6-9
[NAMEEN] => RN6-9
[SHANAMEEN] => STREAM
[ORDER] => 70
[GRADE] => 全車対応
[MC] =>
[MODELYEAR] => '06/07-'14/05
[YEAR] => '06/07-'14/05
[COUNT] => 1
)
)
RN1-5 '00/10-'06/07
RN6-9 '06/07-'14/05