Difference between revisions of "Week 6 E-notes Eyanosch"

From LMU BioDB 2015
Jump to: navigation, search
Line 37: Line 37:
  
 
Ran the program in SQL:
 
Ran the program in SQL:
   
+
  Query returned successfully: one row affected, 4916 ms execution time.
  
 
{{Template: Pertinent Class Information}}
 
{{Template: Pertinent Class Information}}
  
 
[[Category: Journal Entry]]
 
[[Category: Journal Entry]]

Revision as of 03:48, 15 October 2015

Erich Yanoschik

Week 6 E-Notes

After downloading the zip files and unzipping them I need to rework the files so they can be loaded into postgreSQL

cat application.txt | sed"s/^/insert into Applications(ApplNo, ApplType, SponsorApplicant, MostRecentLabelAvailableFlag, CurrentPatentFlag, ActionType, Chemical_Type, Ther_Potential, Orphan_Code) values (/g"
*

sed "s/ */ /g"

eyanosch@ab201:~$ cat application.txt | sed "s/ *//g" | sed "s/\t/ /g"

  1. pulls up information, removes the spaces, and removes the tabs. Adds a space inbetween each column
cat application.txt | sed "s/. /&,/g"| sed "s/ *//g" |  sed "s/\t/ /g" 
eyanosch@ab201:~$ cat application.txt | sed "s/ *//g" |  sed "s/\t/ /g" | sed "s/ /' /g" | sed "s/. /&'/g" | sed "s/ /,&/g" | sed "s/\r$/'/g" | sed "s/^/&'/g" | sed "s//null/g"

I had to add ' behind and infront of every character and then the empty spaces that were I replaced with the word null


cat application.txt | sed "s/ *//g" |  sed "s/\t/ /g" | sed "s/ /' /g" | sed "s/. /&'/g" | sed "s/ /,&/g" | sed "s/\r$/');/g" | sed "s/^/&'/g" | sed "s//null/g" |sed "s/^/insert into Application(ApplNo, ApplType, SponsorApplicant, MostRecentLabelAvailableFlag, CurrentPatentFlag, ActionType, Chemical_Type, Ther_Potential, Orphan_Code) values (/g" | sed "1D" > ~/public_html/application.sql.txt

This should give the proper syntax for adding from the database the SQL

After Copying the page of code and entering into the SQL file, the results were:

Query returned successfully: one row affected, 2329 ms execution time.


Now onto product


cat Product.txt | sed "s/'/\"/g" | sed "s/ *//g" | sed "s/\t/ /g" | sed "s/ /' /g" | sed "s/. /&'/g" | sed "s/ /,&/g" | sed "s/\r$/');/g" | sed "s/^/&'/g" | sed "s//null/g" | sed "s/^/insert into product(ApplNo, ProductNo, Form, Dosage, productMktStatus, TECode, ReferenceDrug, drugname, activeingred) values (/g" | sed "1D" > ~/public_html/Product.sql.txt

Apply the same principle but there were 's within the text so I changed them into " and replaced them with null

Ran the program in SQL:

Query returned successfully: one row affected, 4916 ms execution time.

Class Journals

Class Journal Week 1

Class Journal Week 2

Class Journal Week 3

Class Journal Week 4

Class Journal Week 5

Class Journal Week 6

Class Journal Week 7

Class Journal Week 8

Class Journal Week 9

Class Journal Week 10

Class Journal Week 11

Weekly Assignments

Week 1

Week 2

Week 3

Week 4

Week 5

Week 6

Week 7

Week 8

Week 9

Week 10

Week 11

Week 12

Week 13

Personal Journal

Eyanosch Week 2

Eyanosch Week 3

Eyanosch Week 4

Eyanosch Week 5

Eyanosch Week 6

Eyanosch Week 7

Eyanosch Week 8

Eyanosch Week 9

Eyanosch Week 10

Eyanosch Week 11

Eyanosch Week 12

Eyanosch Week 13

Eyanosch Week 14

Eyanosch Week 15

Electronic Notes (E-notes)

Week 3 E-notes Eyanosch

Week 4 E-notes Eyanosch

Week 5 E-notes Eyanosch

Week 6 E-notes Eyanosch

Week 7 E-notes Eyanosch

Week 8 E-notes Eyanosch

Week 9 E-notes Eyanosch

Week 10 E-notes Eyanosch

Week 11 E-notes Eyanosch

Week 12 E-notes Eyanosch

Week 13 E-notes Eyanosch

Week 14 E-notes Eyanosch

Week 15 E-notes Eyanosch


Class (personal) Notes

Week 3 Notes

Week 4 Notes

Week 5 Notes

Week 6 Notes

Week 7 Notes

Week 8 Notes

Week 9 Notes

Week 10 Notes

Week 11 Notes

Week 12 Notes

Week 13 Notes