Create a separate table with a movie-genre relationiship

Assignment Help Business Management
Reference no: EM131986123

Problem

Work on a database assignment in Java and struggling with separating my data.

I have been given several CSV files, one of which is a list of movies. They are separated as listed below:

1::Toy Story (1995):: Animated | Family

My job is to extract the data from each and upload to an SQL server where I will then run queries. However, before I upload it, I need to separate my data. For example, my professor wants the year and movie in a separate column, and we need to avoid repeating groups for genres meaning. I need to extract the genre from my initial movies CSV and create a separate table with a movie/genre relationiship.

I've already created an array which stores all the data from the Movies CSV, however I'm struggling with getting the (1995) into a separate array as well as the genres. I've read a lot about regex and pattern matching but I can't seem to get anything to work. Here's what I've been attempting:

for(int i = 1; i < movies.length;){

years = movies[i].split("<regex formatting here>");

i = i + 3;

}

}

I increment i by 3 as the element with the movie title comes on every 3rd after element 1. Any tips are greatly appreciated!

Reference no: EM131986123

Questions Cloud

Create an instead of trigger that handles update grade table : Create an Instead of trigger that handles Updates and Inserts to the Grade table by adding values for CREATED_BY, CREATED_DATE, MODIFIED_BY, and MODIFIED_DATE.
What percentage of her body surface area has been burned : She has superficial and partial-thickness burns to her head and anterior trunk. What percentage of her body surface area has been burned?
Net increase in cash flow per year from installing machinery : What will be the net increase in cash flows per year from installing the machinery?
Analyse whatelements in that game you believe : ISCG6441 - Visual Game Design - Video Game Design Criticism - You will interview players from a specific demographic and evaluate a video game
Create a separate table with a movie-genre relationiship : I need to extract the genre from my initial movies CSV and create a separate table with a movie/genre relationiship.
The loan has five-year term with monthly payments : The loan has a? five-year term with monthly payments and an APR of 6.5 %. How much will you pay in? interest, and how much will you pay in? principal,
Management of health care organizations today : What is an important challenge facing the management of health care organizations today, and how would you go about addressing it? Explain your response.
Foreign exchange trader for bank based : Suppose that you are a foreign exchange trader for a bank based in New York.
Essential office equipment to complete the requirements : As the medical administrator you will use the computer as the essential office equipment to complete the requirements for your job.

Reviews

Write a Review

Business Management Questions & Answers

  Caselet on michael porter’s value chain management

The assignment in management is a two part assignment dealing 1.Theory of function of management. 2. Operations and Controlling.

  Mountain man brewing company

Mountain Man Brewing, a family owned business where Chris Prangel, the son of the president joins. Due to increase in the preference for light beer drinkers, Chris Prangel wants to introduce light beer version in Mountain Man. An analysis into the la..

  Mountain man brewing company

Mountain Man Brewing, a family owned business where Chris Prangel, the son of the president joins. An analysis into the launch of Mountain Man Light over the present Mountain Man Lager.

  Analysis of the case using the doing ethics technique

Analysis of the case using the Doing Ethics Technique (DET). Analysis of the ethical issue(s) from the perspective of an ICT professional, using the ACS Code of  Conduct and properly relating clauses from the ACS Code of Conduct to the ethical issue.

  Affiliations and partnerships

Affiliations and partnerships are frequently used to reach a larger local audience? Which options stand to avail for the Hotel manager and what problems do these pose.

  Innovation-friendly regulations

What influence (if any) can organizations exercise to encourage ‘innovation-friendly' regulations?

  Effect of regional and corporate cultural issues

Present your findings as a group powerpoint with an audio file. In addition individually write up your own conclusions as to the effects of regional cultural issues on the corporate organisational culture of this multinational company as it conducts ..

  Structure of business plan

This assignment shows a structure of business plan. The task is to write a business plane about a Diet Shop.

  Identify the purposes of different types of organisations

Identify the purposes of different types of organisations.

  Entrepreneur case study for analysis

Entrepreneur Case Study for Analysis. Analyze Robin Wolaner's suitability to be an entrepreneur

  Forecasting and business analysis

This problem requires you to apply your cross-sectional analysis skills to a real cross-sectional data set with the goal of answering a specific research question.

  Educational instructional leadership

Prepare a major handout on the key principles of instructional leadership

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd