Create tables using database called "genomicdb"

Assignment Help Database Management System
Reference no: EM13947896

I created a database called "genomicdb" in MYSQL server with two tables: "gene" and "location". The tables are supposed to be populated with data from .txt files. One of the files, "gene.txt", works fine and populates fine in the table. But the other file, "location.txt", is skipping rows. Below is the code that I am using. I am also attaching the files that I am using to populate the tables.

#Created the tables.

mysql> create table gene
-> (gene_name varchar(20) not null,
-> gene_id varchar(20) not null primary key
-> );
Query OK, 0 rows affected (0.09 sec)

mysql> create table location
-> (chromosome varchar(10) not null,
-> strand varchar(10) not null,
-> cds_from varchar(30) not null primary key,
-> cds_to varchar(30) not null
-> );
Query OK, 0 rows affected (0.11 sec)

# Loaded the data. The second command is the one that is not working.

mysql> LOAD DATA LOCAL INFILE 'C:/Documents and Settings/Owner/Desktop/gene.txt' INTO TABLE gene FIELDS TERMINATED BY 't' LINES TERMINATED BY 'rn' IGNORE 1 LINES (gene_name, gene_id);
Query OK, 18962 rows affected (1.33 sec)
Records: 18962 Deleted: 0 Skipped: 0 Warnings: 0

LOAD DATA LOCAL INFILE 'C:/Documents and Settings/Owner/Desktop/location.txt' INTO TABLE location FIELDS TERMINATED BY 't' LINES TERMINATED BY 'rn' IGNORE 1 LINES (chromosome, strand, cds_from, cds_to);
Query OK, 17244 rows affected (1.33 sec)
Records: 18961 Deleted: 0 Skipped: 1717 Warnings: 0

Attachment:- gene.zip

Reference no: EM13947896

Questions Cloud

Charge of adding a new department to a mall anchor : You are in charge of expanding an existing grocery store by adding a new convenience store and gas station business unit. You are in charge of adding a new department to a mall anchor.
Natural moisture content of the soil : An expansive soil has an active-zone thickness of 10 ft. The natural moisture content of the soil is 25% and its liquid limit is 60. Calculate the free surface swell of the expansive soil upon saturation.
Discuss the types of behavior that might be manifested : Outline the goals a clinician might have when conducting clinical interviews with a child and his or her parents. Discuss the types of behavior that might be manifested by an individual with sever frontal lobe damage
Prepare a traditional income statement for each week : Prepare a traditional income statement for each week. Calculate the average value-stream product cost for each week. What does this cost signal, if anything?
Create tables using database called "genomicdb" : I created a database called "genomicdb" in MYSQL server with two tables: "gene" and "location". The tables are supposed to be populated with data from .txt files.
How did soldiers protest the war : Describe the make-up of American soldiers during Vietnam. As the antiwar movement deepened, how did soldiers protest the war? Evaluate the conditions soldiers returned to in America following their service.
Charge of expanding an existing grocery store by adding : You are in charge of expanding an existing grocery store by adding a new convenience store and gas station business unit. You are in charge of adding a new department to a mall anchor.
What contributions did they make : Who were the muckrakers, and what contributions did they make? Overall, what impact did these contributions have on the Progressive movement at large?
Allowable point resistance for a base movement : A drilled shaft in a medium sand is shown in Figure P10.9. Using the method proposed by Reese and O'Neill, determine the following: a. The net allowable point resistance for a base movement of 25 mm

Reviews

Write a Review

Database Management System Questions & Answers

  Dsign document 1write a four to sixnbsp page design

this assignment consists of two sections a design document and a revised project plan. you must submit both sections

  Develop the erd for given problem

An art museum owns a large volume of works of art. Each work of art is described by an item code (identifier), title, type, and size; size is further composed of height, width, and weight.

  Describe the purpose of the database

Describe the purpose of the database. Based on your research and / or common knowledge of a college and the information tracked by a college, describe the entities of the database and the attributes of each entity

  Develop a crows foot erd using oracle data modeler

Develop a crow's foot ERD using Oracle Data Modeler or ER assistant that captures the following requirements: An employee has a unique employee number, a name, a position, and an optional office number.

  Draw the e/r diagrams for the business rules

Draw the E/R diagrams for the business rules

  List the steps that are needed to pick a proper dbms

List the steps that are needed to pick a proper DBMS. Once the database is set up, describe the separation between users and database administrators. Explain which specific DBMS is most appropriate for your chosen organization, and why

  Investigate current trends in using information systems

Evaluate the suitability of information systems for different functional areas of the organization - Investigate current trends in using information systems

  Create data file grades with records of the form

Input names of students from the user, terminated by ZZZ, and create a data file GRADES with records of the form.

  What about your experience was most confusing or frustrating

What about your experience was most confusing or frustrating? What important journals, key scholars, or new ideas did you discover from your search?

  Data entities of this enterprise

Consider a student club or organization in which you are a member. What are the data entities of this enterprise? List and define each entity.

  Identify any pattern to these unusual orders

Get all employees that satisfy the following conditions

  Contestants in the heavyweight division

At the State Fair Pie Eating Contest all contestants in the heavyweight division must weigh within 30 pounds of 250 pounds. Write a program that asks for a contestant's weight and then says if the contestant is allowed in the contest.

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