The application
The database we’ll be creating will be used in a simple (fictional) application for buying and selling cars. The database will keep a list of automobiles along with details of their engine, performance, and so on. A short example of this data is shown in Figure 2.2.
Figure 2.2 – A subset of the data table we’ll be using
Creating the Car Table
The data for the Car
table is from the free Automobile dataset at https://kaggle.com. Download the data and import it into a database named Cars
and a table named Car
. The columns should take care of themselves.
The datasets on Kaggle change frequently, so your list of cars may look a bit different. All the datasets are all presented as .csv
files, so just download one and open SSMS in order to do the import. Here are the steps:
- Log into SSMS and create a database.
- Create a table named
CARS
. - Start the Import Data Wizard. To do so, right-click on the table...