SQL and VBA.

 

A. How do you access the VBA window?

B. Write code in VBA to determine the row number of the last row with data. Are there any precautions/edge cases to be aware of for that code?

C. Please see EXCEL Attached file with two sheets:

1. “Base”, which has data from 7/13-7/26

2. “Addition”, which has data from 7/20-8/02.

Write a function in VBA to refresh the data in “Base” with that in “Addition”. In other words:

1. Remove records in “Base” if they fall within the date range of records in “Addition”

2. Append the records from “Addition” to “Base”. Do not include the Grand Total row

when appending

#2)
SQL Case Study:
This is one of the worst query written according to a production support personnel. Why do you think that is the case? And how can you improve? Give 2-3 areas that can be improved.

SELECT
t.*
FROM
(
SELECT
sub.*
FROM
(
SELECT
log_inner.*
FROM
(
SELECT
— log_visit.*, log_action.name
— log_visit.*, log_link_visit_action.server_time, log_action.name
log_visit.idvisit,
log_visit.idsite,
CONV(HEX(log_visit.idvisitor), 16, 10) AS idvisitor,
visitor_localtime,
visitor_returning,
visitor_count_visits,
visitor_days_since_last,
visitor_days_since_order,
visitor_days_since_first,
visit_first_action_time,
visit_last_action_time,
visit_exit_idaction_url,
visit_exit_idaction_name,
visit_entry_idaction_url,
visit_entry_idaction_name,
visit_total_actions,
visit_total_searches,
visit_total_events,
visit_total_time,
visit_goal_converted,
visit_goal_buyer,
referer_type,
referer_name,
referer_url,
referer_keyword,
config_id,
config_os,
config_os_version,
config_browser_name,
config_browser_version,
config_device_type,
config_device_brand,
config_device_model,
config_resolution,
config_pdf,
config_flash,
config_java,
config_director,
config_quicktime,
config_realplayer,
config_windowsmedia,
config_gears,
config_silverlight,
config_cookie,
inet_ntoa(CONV(HEX(location_ip), 16, 10)) AS location_ip,
location_browser_lang,
location_country,
location_region,
location_city,
location_latitude,
location_longitude,
log_visit.custom_var_k1,
log_visit.custom_var_v1,
log_visit.custom_var_k2,
log_visit.custom_var_v2,
log_visit.custom_var_k3,
log_visit.custom_var_v3,
log_visit.custom_var_k4,
log_visit.custom_var_v4,
log_visit.custom_var_k5,
log_visit.custom_var_v5,
location_provider,
log_link_visit_action.server_time,
log_action. NAME
FROM
piwik_log_visit AS log_visit
LEFT JOIN piwik_log_link_visit_action AS log_link_visit_action ON log_link_visit_action.idvisit = log_visit.idvisit
LEFT JOIN piwik_log_action AS log_action ON log_action.idaction = log_link_visit_action.idaction_url
WHERE
(
log_visit.idsite IN (‘8’)
AND log_visit.visit_last_action_time>= ‘2014-10-31 00:00:00’
AND log_visit.visit_last_action_time<= ‘2014-10-31 23:59:59’
)
AND (
(
log_link_visit_action.idaction_url IN (
SELECT
idaction
FROM
piwik_log_action
WHERE
(
NAME LIKE CONCAT(‘%’, ‘success’, ‘%’)  — non indexed string comparison against the entire 91million row log_action table
AND type = 1
)
)
)
)
GROUP BY
log_visit.idvisit
) AS log_inner
ORDER BY
idsite,
visit_last_action_time DESC
) AS sub
GROUP BY
sub.idvisit
ORDER BY
sub.visit_last_action_time DESC
) AS t
WHERE
t. NAME = ‘burialplanning.com/free-planning-kit-success/’
OR t. NAME = ‘burialplanning.com/free-planning-kit-success-no-match/’
OR t. NAME = ‘burialplanning.com/free-planning-kit-home-success/’
OR t. NAME = ‘burialplanning.com/request-consultation-success/’
OR t. NAME REGEXP ‘^burialplanning.com/cemeteries/.+/successind/$’
OR t. NAME REGEXP ‘^burialplanning.com/cemeteries/.+/cemetery-post-planning-success/$’
OR t. NAME REGEXP ‘^burialplanning.com/cemeteries/.+/success-region/$’

U.S imperialism & Out Break Of World War I.

Instructions: Double spaced, 1.5 page on your own words, 12 font,  New Times Roman. You can use internet, or books but make sure is done in your own words okay. Is Based on factual content, analysis, and organization

 

 

Disqualification: No plagiarism = copy and paste from internet source. No walt disney stuff, will result a dispute.

 

So please take this seriously.

 

Question 1

 

How was westward expansion a model  for U.S imperialism abroad?  What were the economic reasons for U.S Imperialism? Identify the social and political justifications for U.S. Involvement in foreign. Finally, provide two specific examples of 19th century imperialism.

 

Question 2

 

Describe the outbreak of World War I. What was the initial position of the U.S in this war effort? Explain why the U.S eventually joins the war effort, and the consequences for the American homefront.

Support Standards And Solutions.

Task

The Eastern Seaboard Super Express Train (ESSET) is a high speed train service between towns on the eastern seaboard of Australia. See a section dedicated to this in the Assignment 4 tab of this subject’s Interact2 site for details on ESSET. The company has proposed the establishment of a Help Desk for all passengers. The following are basic parameters.

Location:

The nationwide service number is 131-278 (13-FAST). It will be served concurrently from two locations with automatic load balancing of calls. A comprehensive website has also been set up (the discussion of this site is not part of your assignment).

Operations:

The Help Desk will operate 24 hours, 7 day week by 100 customer support representatives in each centre.

Q1 – List three best practices that could be established for the ESSET Help Desk? [300 words] – 3 marks

[You might want to read Chapter 6 of the textbook.]

Q2 – In the initial training of help desk support staff, the standards of information and service level given by the staff differs greatly. A few give wrong information, some are not courteous and do not know the information that has to be given out to customers. How would you ensure the appropriate level of expertise of each customer support representative? [300 words] – 6 marks

[You might want to read Chapter 7 of the textbook.]

Q3 – You have just spoken to a customer and gave provided information about timetabling of trains. She is “on hold” while you look for the fare for her. While searching for this, you realise that you have been reading the timetabling off the wrong list (northbound instead of southbound). What would you do? How would you prevent this from happening in future? [200 words] – 2 marks    [You might want to refer to Chapter 5 for some tips]

Q4 – How does the principles of Information Technology Infrastructure Library (ITIL) apply in the above help desk setup? Give any two examples that apply. Relate the task to literature read. – [400 words] 7 marks

[You might want to re-read the chapter by Moeller recommended in Topic 8]

For all questions, you are also required to substantiate with literature. Along with in text citations throughout each question include one reference list at the end of this assignment. The following (journal) articles may also assist you (all articles can be found in the CSU Journal Database). Please do not post PDFs of these journals as attachment on the subject Discussion area as this is a violation of copyright law.

Church & Dwight CompanyIncorporated.

 

What is the Church & Dwight Company incorporated doing to enhance their position in the market?

 

Church & Dwight Company

Financial statement analysis. Include market analysis, e.g., how well do they match up against others in their industry? Use a few ratios to indicate strengths/weaknesses.

 

References,

word count 1000

Prison Culture.

Complete a research Paper on Prison Culture. Be sure to discuss the inmate subculture, the norms and values of prison society, its social structure and prison argot. Explain your answer in detail and incorporate information from your readings along with any other information you have located on the web or from other resources such as periodicals, newspapers and the library.

 

This is a formal research paper and you should use APA to complete the assignment. It must be prepared in MS Word. Support your findings with citations and references from your research and web-based research. The paper should be at least 8 pages double spaced and you should provide at least five (5) sources of research: two (2) must be from academic journals. All work must be your own unless properly cited. Do not use the textbook or unreliable web sources such as Wikipedia as a resource.

Summary Writing.

Please find an article that responds to a current political national or international debate and write a Summary Response of the article according to the Faigley/Selzer blueprint (pgs.71-72). On the textual side remember to include the author’s purpose, use of ethos, logos, and pathos, as well as the author’s use of arrangement and style. On the contextual side be sure to consider the rhetorical situation the essay comes out of: how does the article fit in with the author’s other works? What is the context of the publication? How does the particular essay fit into the larger political conversation of the time? What political goals might the author have? Finally to incorporate the response part of the assignment please include why or why not you agree with the author, and as always please use correct MLA format through both end and in-text citation.

Analysis of Human Services of an Abuse Scenario.

In this assignment, you will be introduced to a real-world case that requires a high-level analysis of theoretical, ethical, and legal factors to explain how an abused child should have been handled by the human services agency. This exercise will demonstrate the types of cases that are common in human services. You will learn how to approach such types of cases from necessary perspectives that always need to be considered by a human services worker.

Tasks:

In this assignment, you will read a scenario, analyze its legal and ethical implications, and discuss options to address the human services needs. Consider the following scenario.

You are working in a human services agency that provides diagnostic services and residential placement to youth in the court system. A female Italian immigrant teenager was placed in this center by Children and Youth Protective Services due to suspected sexual abuse by her father. The agency conducted an assessment on the child to determine the effects of the suspected abuse on her functioning, provided her with a safe environment for twelve weeks, during which time she was allowed supervised visitation with her father, and encouraged her to trust the staff members. During this period, her case went to trial and was dismissed despite strong indications of sexual abuse. The court ruling was based largely on the results of the assessment conducted by the agency professional in addition to the client’s activity in residential placement, including visitation with her father during that period of time. As a result, the agency lost its funding for residential placement. Therefore, the girl was returned to her home the following week.

Apply scholarly theory, practice, and ethics to write an 8- to 10-page paper that includes the following:

  • Identify the legal and ethical obligations to both the girl and the father.
  • Identify the multiple levels of system failure in this case.
  • Discuss the distinction between the legal justification for the release of the girl and the ethical problems with such actions. In your discussion, explain how an individual human services provider might come to deal personally with such a conflict.
  • Identify the cultural considerations needed when working with this family.
  • Describe the original or historical intent of child welfare systems in caring for vulnerable children.
  • Discuss to what extent the agencies have fulfilled their responsibilities to their mission and the original intent in creating such agencies.
  • Propose two to three culturally and legally appropriate strategies that may be provided to the girl that will address her human services needs.

Case Studies.

To support your work, use your course and text readings and also use outside sources. As in all assignments, cite your sources in your work and provide references for the citations in APA format.

Human Resources Management: Case Study

Happy Valley Hospital is a community-based health care facility with a reputation for providing quality health care services to the residents of Happy Valley and its surrounding markets. The hospital has a 288-bed acute care facility with a twelve suite family oriented birthing center, a forty four-bed long-term care inpatient facility, and a fourteen-bed inpatient rehabilitation unit.

Happy Valley has two major competitors, CMC and GH. CMC have four hundred beds and is a tertiary acute care facility. It specializes in women and children’s services, serves as the regional trauma center, has a large and active emergency department, and provides cardiac services, including open-heart surgery. GH has two hundred beds, a small cancer center, and a kidney dialysis unit.

Happy Valley Hospital has received numerous recognition awards for excellence in health care during the past five years. Because of its reputation for clinical excellence, it has not had difficulty in retaining its nursing and clinical staff.

However, recently there have been changes in leadership at CMC at the levels of CEO and Vice President of nursing. Employees of Happy Valley Hospital in several key areas have been drawn to work at CMC because of the promises made by new management for better pay and working conditions. They have begun to relocate in large numbers to CMC. Happy Valley now faces a serious employee shortage among registered nurses, radiology technicians, and respiratory therapists.

On the basis of your understanding of the above case study, express your views on the following:

How should the management at Happy Valley Hospital retain their existing staff members?
What steps should the management at Happy Valley Hospital take to ensure smooth running of the hospital operations in such a crisis situation?

In your opinion, what should the recruitment team at Happy Valley Hospital do to overcome serious employee shortage among registered nurses, radiology technicians, and respiratory therapists?

Psychopathology.

For your Final Paper, you will demonstrate your knowledge of psychopathology and apply your skills to a realistic scenario. Throughout this course, you have developed unique knowledge and skill sets that will allow you to critically analyze depictions of psychopathology in popular media and historical case examples from an informed point of view.

Your Final Paper will be a psychological report that may be based on a character from a movie or a historical case study. Review the provided lists of movies and historical case studies that are approved for use in this assignment.  You must choose from these lists. You may not use examples from your personal life in the psychological report since doing so would be unethical (see Standards 2.04 and 9.01a in the Ethical Principles of Psychologists and Code of Conduct).

As you create this report, you will be taking on the role of a clinician who is conducting an assessment and providing treatment recommendations for a patient (a character from your selected film or historical case study). Please note that a psychological report does not follow the same structure for reports you may have used in other courses. Your report must follow the format below and it must include each of the sections and their headings listed in this order:

 

  1. Identifying Information

    Within this section, you will describe basic information on your patient, including the person’s name, sex, gender, sexual orientation, age, race, occupation, and location of residence (country, state, and region).

  2. Chief Complaint/Presenting Problem

    Within this section, you will include the patient’s primary complaint verbatim to identify the main source of his or her distress and/or concerns. If there is no verbatim complaint, include observable information to create an overall picture of the presenting problem.

    Typically, this section within a psychological report seeks to address the following question (further elaboration within this section is encouraged where possible):

    • What are the patient’s complaints? (e.g., the patient might complain about “feeling on edge” or experiencing stress)
  3. Symptoms

    Within this section, you will interpret specific behavioral issues and intrapsychic conflicts as they relate to abnormal behavior, behavior patterns, maladaptive thought processes, and potential unconscious conflicts. Interpret and comment on the patient’s chief complaint and/or presenting problem in the context and language of the symptoms found in the DSM-5. (e.g., the patient who complains about “feeling on edge” might actually be experiencing symptoms related to post-traumatic stress disorder or generalized anxiety disorder)

  4. Personal History

    Within this section, you will analyze your patient’s personal background and history of abnormal behavior(s) that inform your diagnostic impression. You will also gather information about the patient’s cultural background and cultural norms.

    Typically, this section within a psychological report seeks to answer the following questions (further elaboration within this section is encouraged where possible):

    • Where did the patient grow up?
    • What cultures did the patient experience throughout life?
    • What was the patient’s school life like?
    • What were his or her grades? What is his or her highest level of education?
    • What is the patient’s interpersonal relationship history?
    • What was/is the patient’s romantic relationship history?
    • What was/is the patient’s friendship history?
  5. Family History

    Within this section, you will analyze the patient’s familial relationship(s) and identify any abnormalities that might affect future treatment. You will also integrate information about the patient’s family and cultural background to identify any maladaptive behaviors and relational patterns.

    Typically, this section within a psychological report seeks to answer the following questions (further elaboration within this section is encouraged where possible):

    • How old were the patient’s parents when the patient was born?
    • Who were the patient’s primary caregivers?
    • What was/is family life like? (Include any information relevant to your diagnostic impression.)
    • Did the family move often?
    • What was/is the patient’s relationship with their siblings (if applicable)?
    • What culture did/does the family come from?
    • What belief systems are attached to that culture?
  6. Therapy History

    Within this section, you will describe the patient’s therapy history to inform your diagnostic impression. Analyze the patient’s therapy history to identify the effectiveness of previous treatment(s). Analyze previous treatment interventions based on information and knowledge of the patient’s cultural background.

    Typically, this section within a psychological report seeks to answer the following questions (further elaboration within this section is encouraged where possible):

    • Who was the previous therapist (if applicable)?
    • How long did the previous therapy/therapies last?
    • What was the patient’s diagnosis?
    • What interventions did the therapist(s) use?
    • Were those interventions appropriate for the patient’s culture?
    • Was treatment successful?
  7. Medical Conditions

    Within this section, you will analyze the patient’s medical history and comment on any possible medical conditions that could influence your diagnostic impression. Interpret specific behavioral issues as they relate to salient medical conditions. If the person has any medical conditions, indicate that in this section. Integrate information and knowledge about the patient’s cultural background as it affects treatment options for medical conditions.

  8. Substance Use

    Within this section, you will analyze and comment on the patient’s substance use to identify any potential issues that could influence your diagnostic impression. Interpret specific behavioral issues as they relate to substance use. If the person misuses specific substances, indicate that in this section. Integrate information and knowledge about the patient’s cultural background to inform your interpretation of substance misuse in this patient’s case.

    Typically, this section within a psychological report seeks to answer the following questions (further elaboration within this section is encouraged where possible):

    • Which substances does the patient use? (Include any over-the-counter, herbal, and/or prescription medications.)
    • For how long has the patient used the substance?
    • What is the patient’s quantity and frequency of use?
  9. Collateral

    Within this section, you will interpret specific collateral information as it relates to your patient’s abnormal behavior and behavior patterns. You will also integrate information and knowledge regarding the patient’s culture in your evaluation of the maladaptive behavior as reported by the collateral sources.

    Typically, this section within a psychological report seeks to answer the following questions (further elaboration within this section is encouraged where possible):

    • What do other people have to say about the patient’s behavior?
    • Are there any commonalities between the collateral sources’ reports?
    • Do the collateral sources have any psychological issues that might exacerbate the patient’s problems?
    • Are there any police reports?
    • Are there any personality testing or intelligence testing reports available?
  10. Results of Evaluation

    Within this section, you will analyze the patient’s behavior and mental processes. There are two parts to this section. To begin your analysis, you will write a brief evaluation of each theory of personality development that you learned about in this course and determine whether or not each theoretical orientation can be used to conceptualize the patient’s current situation and treatment goals. Next, use one major theoretical orientation to write an in-depth analysis for your results of evaluation section. Within the context of this theoretical perspective, you will analyze all of the information from the previous sections. Analyze specific behaviors, cognitions, and intrapsychic processes as they relate to your diagnostic impression. Integrate knowledge of the patient’s cultural background and norms within that culture as you prepare your supporting evidence.

    Typically, this section within a psychological report seeks to answer the following question (further elaboration within this section is encouraged where possible):

    • Based on the information you gathered in the previous sections, what led to the patient’s current state?
  11. Diagnostic Impression With Differential Justification

    Within this section, you will provide your diagnosis for the patient. To demonstrate your understanding of diagnostic procedure and justification, specifically address each symptom that the patient displayed and relate each symptom to a diagnostic criterion in the DSM-5. Analyze the patient’s behaviors and mental processes within your differential justification. Clearly demonstrate that the patient meets criteria to be given a diagnosis. If the patient does not meet criteria for any diagnosis based on your assessment, explain why. Also, explore any alternative diagnoses and explain why these were not chosen.

  12. Recommendations

    Within this section, you will you provide treatment recommendations for the person to help them improve his or her quality of life. These recommendations must be based on the theoretical orientation you used in your Results of Evaluation. Explain why you chose your treatment intervention(s) and include peer-reviewed articles that support your choice(s). If treatment is not necessary, explain why. Pay close attention to the person’s culture since some treatment options may be insensitive to his or her culture or way of living.

 

Writing the Final Paper

The Final Paper:

  1. Must follow the report outline provided above with the requisite headings and be formatted according to APA style as outlined in the Ashford Writing Center.
  2. Must include a title page with the following:
    1. Title of paper
    2. Student’s name
    3. Course name and number
    4. Instructor’s name
    5. Date submitted
  3. Must address the assessment with critical thought.
  4. Must use at least five peer-reviewed sources that were published within the last ten years, in addition to the text, a minimum of four must be from the Ashford University Library.
  5. Must document all sources in APA style as outlined in the Ashford Writing Center.
  6. Must include a separate reference page that is formatted according to APA style as outlined in the Ashford Writing Center.