This dissertation considers joint pricing and inventory control problems in which the customer's response to selling price and the demand distribution are not known a priori, and the only available information for decision-making is the past sales data. Data-driven algorithms are developed and proved to converge to the true clairvoyant optimal policy had decision maker known the demand processes a priori, and, for the first time in literature, this dissertation provides theoretical results on the convergence rate of these data-driven algorithms. Under this general framework, several problems are studied in different settings. Chapter 2 studies the classical joint pricing and inventory control problem with backlogged demand, and proposes a nonparametric data-driven algorithm that learns about the demand on the fly while making pricing and ordering decisions. The performance of the algorithm is measured by regret, which is the average profit loss compared with that of the clairvoyant optimal policy. It is proved that the regret vanishes at the fastest possible rate as the planning horizon increases. Chapter 3 studies the classical joint pricing and inventory control problem with lost-sales and censored demand. Major challenges in this study include the following: First, due to demand censoring, the firm cannot observe either the realized demand or realized profit in case of a stockout, therefore only biased data is accessible; second, the data-driven objective function is always multimodal, which is hard to solve and establish convergence for. Chapter 3 presents a data-driven algorithm that actively explores in the inventory space to collect more demand data, and designs a sparse discretization scheme to jointly learn and optimize the multimodal data-driven objective. The algorithm is shown to be very computationally efficient. Chapter 4 considers a constraint that only allows the firm to change prices no more than a certain number of times, and explores the impact of number of price changes on the quality of demand learning. In the data-driven algorithm, we extend the traditional maximum likelihood estimation method to work with censored demand data, and prove that the algorithm converges at the best possible rate for any data-driven algorithms.