The Nasdaq ended higher on Wednesday as investors grew optimistic about Amazon.com Inc's holiday sales prospects, but the Dow and S&P 500 were little changed after oil prices retreated, pressuring shares of energy companies.

* Amazon.com, an Internet retailer, finished up 2.7 percent at $142.25 on Nasdaq. During the session, the stock hit an all-time split-adjusted high of $142.67.

* But the S&P energy index <.GSPE> dropped 0.8 percent.

* Based on the latest available data, the Dow Jones industrial average <.DJI> fell 18.90 points, or 0.18 percent, to close unofficially at 10,452.68. The Standard & Poor's 500 Index <.SPX> edged up just 0.38 of a point, or 0.03 percent, to finish unofficially at 1,109.24. The Nasdaq Composite Index <.IXIC> gained 9.22 points, or 0.42 percent, to close unofficially at 2,185.03.

(Reporting by Ellis Mnyandu; Editing by Jan Paschal)