Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2014
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.81 KB | None | 0 0
  1. Write a SQL query to select the rows below where agencies have not been terminated (there is not a POLICY_TERMINATION_DATE) and have the highest SEQUENCE_NUM for that POLICY_NUMBER.
  2.  
  3.  
  4. POLICY_NUMBER POLICY_EFFECTIVE_DATE POLICY_TERMINATION_DATE SEQUENCE_NUM
  5. CP 5004870 2013-04-30 NULL 2
  6. BOP4002595 2013-06-15 2014-10-02 1
  7. BOP4002597 2013-03-30 NULL 1
  8. GC 4003736 2014-01-31 NULL 2
  9. SMP 6001578 2013-02-12 2014-05-20 1
  10. CP 5004870 2014-04-30 NULL 3
  11. BOP4002595 2014-06-15 2014-10-02 2
  12. GC 4003736 2013-01-31 NULL 1
  13. SMP 6001578 2014-02-12 2014-05-20 2
  14. CP 5004870 2012-04-30 NULL 1
  15.  
  16.  
  17.  
  18.  
  19.  
  20.  
  21.  
  22.  
  23.  
  24.  
  25.  
  26.  
  27.  
  28.  
  29.  
  30.  
  31.  
  32.  
  33. Consider the following class:
  34.  
  35. public class AgencyMail
  36. {
  37. String contactName;
  38. String contactEmail;
  39.  
  40. public AgencyMail(String contactName, String agencyName)
  41. {
  42. this.contactName = contactName;
  43. this.contactEmail = contactName + "@" + agencyName + ".com";
  44. }
  45.  
  46. public void setEmail(String givenEmail)
  47. {
  48. this.contactEmail = givenEmail;
  49. }
  50.  
  51. public string getEmail()
  52. {
  53. return this.contactEmail;
  54. }
  55. }
  56.  
  57. Write the pseudocode for a program that will create an array of three AgencyMail objects, change two of their e-mail addresses, and then alphabetically sorts the array by the current email address (ascending or descending).
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67. Analyze this code and try to approximate what the code is performing:
  68.  
  69. $('.productButton').click(function () {
  70.  
  71. $('.productButtonSelected').switchClass('productButtonSelected','productButton');
  72.  
  73. $('#' + this.id).switchClass('productButton','productButtonSelected');
  74.  
  75. var messageID = '#' + this.id.replace("Button", "");
  76.  
  77. $('.productMessage').css("display", "none");
  78.  
  79. $(messageID).fadeIn();
  80.  
  81. $('.productPic').fadeOut();
  82.  
  83. $(messageID + 'Pic').fadeIn();
  84. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement