String manipulation functions

Assignment Help Business Management
Reference no: EM132293922

Oracle SQL

The purpose of this exercise is to provide the Marketing department with a method to sort a predefined data list by zip code, last name, first name so they can take advantage of bulk mailing rates.  

Assignment:

1. Here is the table with the following fields called "Homework1Data" with (4 fields), then run the inserts below into the table (Figure 1-1).

2. Please help with a single SQL Query that has the following fields (6 fields so they can easily be moved around using a Mail Merge) using these names (alias); Firstname, Lastname, Address, City, State, Zip be sure to sort by zip code, last name, first name

3. Turn in a copy of your SQL Query (single statement - not a procedure)

Hint:

The magic exist in the string manipulation functions (LENGTH, INSTR, SUBSTR, etc.)

Figure 1-1:

this is the TABLE homework1data (  name VARCHAR2(30),  address VARCHAR2(30),  location VARCHAR2(30),  zip VARCHAR2(10));

-----------------------------------------

INSERT INTO Homework1Data  

(Name, Address, Location, Zip) 

VALUES 

('Ferguson, Shawn M.', '1940 Fountainview Court', 'Reynoldsburg, Ohio', '43068');

INSERT INTO Homework1Data  

(Name, Address, Location, Zip) 

VALUES 

('Phillips, George', '19 Pleasant St.', 'Columbus, OH', '43231');

INSERT INTO Homework1Data  

(Name, Address, Location, Zip) 

VALUES 

('Thompson, Mary', '200 E. Main St.', 'Columbus, Oh', '43215');

INSERT INTO Homework1Data  

(Name, Address, Location, Zip) 

VALUES 

('Swatson, Robert', '584 Yellowstone Dr.', 'Westerville, OH', '43081');

INSERT INTO Homework1Data  

(Name, Address, Location, Zip) 

VALUES 

('Banks, Heather T.', '19 Pleasant St.', 'Columbus, Ohio', '43231');

This is the first part of the SQL query;

SELECT SUBSTR('Ferguson, Shawn M.' INSTR('Ferguson, Shawn M.',' '))

AS LASTNAME

FROM DUAL;

Reference no: EM132293922

Questions Cloud

Relationship between adult development and individuation : Many consider early and middle adulthood times of relatively little growth, but adults encounter a multitude of tasks and changes during these phases.
Quality of the development work : Something that is easy to overlook, but critical to the success of a systems project, is the quality of the development work.
Describe the perfect technology solution for teaching : Identify two additional advantages to conducting asynchronous courses for international students and how you would apply them to teach the subject.
Explain the role of gender in pay inequity : Describe and discuss 5 reasons used to explain the role of gender in pay inequity?
String manipulation functions : The purpose of this exercise is to provide the Marketing department with a method to sort a predefined data list by zip code, last name, first name
Describe effective methods you used : Summarize information from at least two scholarly journal articles from the Ashford University Library that will support your claims for your chosen topic.
Disadvantages of php and python for server side programming : What are the advantages and disadvantages of PHP and Python for server side programming
Discuss the pros and cons of hardware based virtualization : Why might virtualization be a great model for a public library or a testing center like Prometric? Support your response with examples and information
Evaluating the applicability of the study findings : An explanation of the types of descriptive and/or inferential statistics you might use to analyze the data gathered in the case study. Also explain how the.

Reviews

Write a Review

Business Management Questions & Answers

  Caselet on michael porter’s value chain management

The assignment in management is a two part assignment dealing 1.Theory of function of management. 2. Operations and Controlling.

  Mountain man brewing company

Mountain Man Brewing, a family owned business where Chris Prangel, the son of the president joins. Due to increase in the preference for light beer drinkers, Chris Prangel wants to introduce light beer version in Mountain Man. An analysis into the la..

  Mountain man brewing company

Mountain Man Brewing, a family owned business where Chris Prangel, the son of the president joins. An analysis into the launch of Mountain Man Light over the present Mountain Man Lager.

  Analysis of the case using the doing ethics technique

Analysis of the case using the Doing Ethics Technique (DET). Analysis of the ethical issue(s) from the perspective of an ICT professional, using the ACS Code of  Conduct and properly relating clauses from the ACS Code of Conduct to the ethical issue.

  Affiliations and partnerships

Affiliations and partnerships are frequently used to reach a larger local audience? Which options stand to avail for the Hotel manager and what problems do these pose.

  Innovation-friendly regulations

What influence (if any) can organizations exercise to encourage ‘innovation-friendly' regulations?

  Effect of regional and corporate cultural issues

Present your findings as a group powerpoint with an audio file. In addition individually write up your own conclusions as to the effects of regional cultural issues on the corporate organisational culture of this multinational company as it conducts ..

  Structure of business plan

This assignment shows a structure of business plan. The task is to write a business plane about a Diet Shop.

  Identify the purposes of different types of organisations

Identify the purposes of different types of organisations.

  Entrepreneur case study for analysis

Entrepreneur Case Study for Analysis. Analyze Robin Wolaner's suitability to be an entrepreneur

  Forecasting and business analysis

This problem requires you to apply your cross-sectional analysis skills to a real cross-sectional data set with the goal of answering a specific research question.

  Educational instructional leadership

Prepare a major handout on the key principles of instructional leadership

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