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

  Knowledge and data warehousing

Design a dimensional model for analysing Purchases for Adventure Works Cycles and implement it as cubes using SQL Server Analysis Services. The AdventureWorks OLTP sample database is the data source for you BI analysis.

  Design a database schema

Design a Database schema

  Entity-relationship diagram

Create an entity-relationship diagram and design accompanying table layout using sound relational modeling practices and concepts.

  Implement a database of courses and students for a school

Implement a database of courses and students for a school.

  Prepare the e-r diagram for the movie database

Energy in the home, personal energy use and home energy efficiency and Efficient use of ‘waste' heat and renewable heat sources

  Design relation schemas for the entire database

Design relation schemas for the entire database.

  Prepare the relational schema for database

Prepare the relational schema for database

  Data modeling and normalization

Data Modeling and Normalization

  Use cases perform a requirements analysis for the case study

Use Cases Perform a requirements analysis for the Case Study

  Knowledge and data warehousing

Knowledge and Data Warehousing

  Stack and queue data structure

Identify and explain the differences between a stack and a queue data structure

  Practice on topic of normalization

Practice on topic of Normalization

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