Imagine you have a mountain of data—customer purchases, sensor readings, social media posts. Storing it is just the start. The real magic is asking questions and getting answers quickly. In this chapter, we’ll look at the main ways to store data, from neat tables to sprawling data lakes, and learn how to query them fast using SQL, even from R.