Question: In this project, you will add a new table for home run leaders to the baseball_stats database. Before you create the new table, you will
In this project, you will add a new table for home run leaders to the baseball_stats database. Before you create the new table, you will create a text file using data from the teamstats table. You will then import the data from the text file into MySQL to create a new table named hrleaders. To create the home run leaders table, you will use the INTO OUTFILE clause with a SELECT statement. The INTO OUTFILE clause copies the returned records into a specified file. You will use the FIELDS TERMINATED BY and LINES TERMINATED BY clauses to specify how the text file should be structured. Because you will import the home run records into the new table, you separate each field with a tab and each line with a line break. If you do not have the FILE privilege, skip this exercise.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
