Advertisement
Guest User

Untitled

a guest
Oct 19th, 2017
394
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.49 KB | None | 0 0
  1.  
  2. -- Inserting some test Authors
  3. INSERT INTO Author (idAuthor, firstName, lastName, mailingAddress, email, affiliation) VALUES (1, "Alex", "Chan", "Woodeward Hall", "Chanimal@gmail.com", "Dartmouth");
  4. INSERT INTO Author (idAuthor, firstName, lastName, mailingAddress, email, affiliation) VALUES (2, "Steven", "Jiang", "1 Webster Avenue", "SJ@dartmouth.edu", "Dartmouth");
  5. INSERT INTO Author (idAuthor, firstName, lastName, mailingAddress, email, affiliation) VALUES (3, "Ted", "Bausch", "6 Smith Avenue", "TD@dartmouth.edu", "Dartmouth");
  6. INSERT INTO Author (idAuthor, firstName, lastName, mailingAddress, email, affiliation) VALUES (4, "Dan", "Lein", "1 Webster Avenue", "bigshow@yahoo.com", "toysRus");
  7. INSERT INTO Author (idAuthor, firstName, lastName, mailingAddress, email, affiliation) VALUES (5, "Re", "McLendon", "Triangle Avenue", "Redawg@gmail.edu", "Collis");
  8. INSERT INTO Author (idAuthor, firstName, lastName, mailingAddress, email, affiliation) VALUES (6, "fake first name", "fake last name", "1 Webster Avenue", "2ndTierschool.edu", "Fake affiliation");
  9.  
  10.  
  11.  
  12. --Inserting some test editors
  13. INSERT INTO Editor(idEditor, firstName, lastName) VALUES (1, "Al", "Forbes");
  14. INSERT INTO Editor(idEditor, firstName, lastName) VALUES (2, "ted", "poatsy");
  15. INSERT INTO Editor(idEditor, firstName, lastName) VALUES (3, "johnny", "emm");
  16. INSERT INTO Editor(idEditor, firstName, lastName) VALUES (4, "kuroosh", "sagin");
  17.  
  18. -- Inserting RICodes
  19. INSERT INTO RICode(idRICODE) VALUES(1);
  20. INSERT INTO RICode(idRICODE) VALUES(2);
  21. INSERT INTO RICode(idRICODE) VALUES(3);
  22. INSERT INTO RICode(idRICODE) VALUES(4);
  23.  
  24. -- Inserting Test Issues
  25. INSERT INTO Issue(idIssue, pubYear, pubPeriod, printDate) VALUES (1, 2017, 1, NOW());
  26. INSERT INTO Issue(idIssue, pubYear, pubPeriod, printDate) VALUES (2, 2011, 3, NOW());
  27. INSERT INTO Issue(idIssue, pubYear, pubPeriod, printDate) VALUES (3, 2012, 3, NOW());
  28. INSERT INTO Issue(idIssue, pubYear, pubPeriod, printDate) VALUES (4, 1998, 1, NOW());
  29. INSERT INTO Issue(idIssue, pubYear, pubPeriod, printDate) VALUES (5, 3000, 4, NOW());
  30.  
  31. -- Inserting Test Reviewers
  32. INSERT INTO Reviewer(idReviewer, firstName, lastName, email, affiliation) VALUES(1, "Matt", "Vance", "MVp@gmail.com", 1);
  33. INSERT INTO Reviewer(idReviewer, firstName, lastName, email, affiliation) VALUES(1, "R1", "R1", "wowwow.com", 1);
  34. INSERT INTO Reviewer(idReviewer, firstName, lastName, email, affiliation) VALUES(1, "R2", "wow", "not_real.com", 1);
  35. INSERT INTO Reviewer(idReviewer, firstName, lastName, email, affiliation) VALUES(1, "fakeReviewer3", "Vance", "fake.com", 2);
  36. INSERT INTO Reviewer(idReviewer, firstName, lastName, email, affiliation) VALUES(1, "george", "bush", "MVp@gmail.com", 3);
  37. INSERT INTO Reviewer(idReviewer, firstName, lastName, email, affiliation) VALUES(1, "bayrock", "Ohbahma", "POTUS@gmail.com", 1776);
  38.  
  39.  
  40. -- Inserting Test Interest Groups SHOULD BE ERROR IF NO REVIWER
  41. INSERT INTO InterestGroup(RICode_idRICODE, Reviewer_idReviewer) VALUES (1, 1);
  42. INSERT INTO InterestGroup(RICode_idRICODE, Reviewer_idReviewer) VALUES (1, 2);
  43. INSERT INTO InterestGroup(RICode_idRICODE, Reviewer_idReviewer) VALUES (1, 3);
  44. INSERT INTO InterestGroup(RICode_idRICODE, Reviewer_idReviewer) VALUES (3, 1);
  45. INSERT INTO InterestGroup(RICode_idRICODE, Reviewer_idReviewer) VALUES (3, 2);
  46.  
  47.  
  48. -- Inserting some test manuscripts
  49. INSERT INTO Manuscript(idManuscript, Issue_idIssue, title, dateReceivedByEditor, status, dateAccepted, numPages, startingPage, Editor_idEditor) VALUES (1, 1, "Man1", NOW(), "accepted", NOW(), 30, 1, 1);
  50. INSERT INTO Manuscript(idManuscript, Issue_idIssue, title, dateReceivedByEditor, status, dateAccepted, numPages, startingPage, Editor_idEditor) VALUES (2, 1, "Man2", NOW(), "accepted", NOW(), 30, 1, 1);
  51. INSERT INTO Manuscript(idManuscript, Issue_idIssue, title, dateReceivedByEditor, status, dateAccepted, numPages, startingPage, Editor_idEditor) VALUES (3, 2, "Man3", NOW(), "rejected", NULL, 30, 1, 1);
  52. INSERT INTO Manuscript(idManuscript, Issue_idIssue, title, dateReceivedByEditor, status, dateAccepted, numPages, startingPage, Editor_idEditor) VALUES (4, 2, "Man4", NOW(), "accepted", NOW(), 30, 1, 1);
  53. INSERT INTO Manuscript(idManuscript, Issue_idIssue, title, dateReceivedByEditor, status, dateAccepted, numPages, startingPage, Editor_idEditor) VALUES (5, 4, "Man5", NOW(), "rejected", NULL, 30, 1, 1);
  54. INSERT INTO Manuscript(idManuscript, Issue_idIssue, title, dateReceivedByEditor, status, dateAccepted, numPages, startingPage, Editor_idEditor) VALUES (6, 2, "Man6", NOW(), "in review",NULL, 30, 1, 1);
  55.  
  56.  
  57. -- Insert some test Feedback
  58. INSERT INTO Feedback(idFeedback, Reviewer_idReviewer, Manuscript_idManuscript, feedbackAppropriateRating, feedbackClarityRating, feedbackMethodologyRating, feedbackContributionRating, recommendation, dateRequested, dateReceived) VALUE (1, 1, 1, 8, 8, 8, 8, "Yes", NOW(), NOW());
  59. INSERT INTO Feedback(idFeedback, Reviewer_idReviewer, Manuscript_idManuscript, feedbackAppropriateRating, feedbackClarityRating, feedbackMethodologyRating, feedbackContributionRating, recommendation, dateRequested, dateReceived) VALUE (2, 1, 1, 8, 8, 8, 8, "Yes", NOW(), NOW());
  60. INSERT INTO Feedback(idFeedback, Reviewer_idReviewer, Manuscript_idManuscript, feedbackAppropriateRating, feedbackClarityRating, feedbackMethodologyRating, feedbackContributionRating, recommendation, dateRequested, dateReceived) VALUE (3, 2, 1, 8, 8, 8, 8, "Yes", NOW(), NOW());
  61. INSERT INTO Feedback(idFeedback, Reviewer_idReviewer, Manuscript_idManuscript, feedbackAppropriateRating, feedbackClarityRating, feedbackMethodologyRating, feedbackContributionRating, recommendation, dateRequested, dateReceived) VALUE (4, 2, 1, 8, 8, 8, 8, "Yes", NOW(), NOW());
  62. INSERT INTO Feedback(idFeedback, Reviewer_idReviewer, Manuscript_idManuscript, feedbackAppropriateRating, feedbackClarityRating, feedbackMethodologyRating, feedbackContributionRating, recommendation, dateRequested, dateReceived) VALUE (5, 1, 5, 8, 8, 8, 8, "No", NOW(), NOW());
  63. INSERT INTO Feedback(idFeedback, Reviewer_idReviewer, Manuscript_idManuscript, feedbackAppropriateRating, feedbackClarityRating, feedbackMethodologyRating, feedbackContributionRating, recommendation, dateRequested, dateReceived) VALUE (6, 1, 1, 8, 8, 8, 8, "Yes", NOW(), NOW());
  64. INSERT INTO Feedback(idFeedback, Reviewer_idReviewer, Manuscript_idManuscript, feedbackAppropriateRating, feedbackClarityRating, feedbackMethodologyRating, feedbackContributionRating, recommendation, dateRequested, dateReceived) VALUE (7, 3, 4, 4, 8, 5, 8, "Yes", NOW(), NOW());
  65. INSERT INTO Feedback(idFeedback, Reviewer_idReviewer, Manuscript_idManuscript, feedbackAppropriateRating, feedbackClarityRating, feedbackMethodologyRating, feedbackContributionRating, recommendation, dateRequested, dateReceived) VALUE (8, 3, 1, 8, 8, 8, 8, "No", NOW(), NOW());
  66. INSERT INTO Feedback(idFeedback, Reviewer_idReviewer, Manuscript_idManuscript, feedbackAppropriateRating, feedbackClarityRating, feedbackMethodologyRating, feedbackContributionRating, recommendation, dateRequested, dateReceived) VALUE (9, 1, 4, 111, 10, 10, 0, "Yes", NOW(), NOW());
  67.  
  68.  
  69. INSERT INTO AuthorGroup (Author_idAuthor, Manuscript_idManuscript, authorOrder) VALUE (1, 1, 1);
  70. INSERT INTO AuthorGroup (Author_idAuthor, Manuscript_idManuscript, authorOrder) VALUE (2, 2, 1);
  71. INSERT INTO AuthorGroup (Author_idAuthor, Manuscript_idManuscript, authorOrder) VALUE (3, 4, 2);
  72. INSERT INTO AuthorGroup (Author_idAuthor, Manuscript_idManuscript, authorOrder) VALUE (4, 1, 1);
  73. INSERT INTO AuthorGroup (Author_idAuthor, Manuscript_idManuscript, authorOrder) VALUE (5, 2, 4);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement