SELECT USER_ID, LOGIN_HMS, LOGOUT_HMS 
  FROM TB_USERCNNC_HS 
 WHERE LOGIN_HMS BETWEEN '20140100000000' AND '20150100000000' 
 ORDER BY USER_ID, LOGIN_HMS
