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

  Explain why some markets are developing faster than others

Explain why some markets are developing faster than others. In your opinion, what trade theories support the recent rise of China and India on the global stage?

  What measures could be taken to reduce spending

Discuss why this is the case. Is this amount of spending necessarily a problem? What measures could be taken to reduce spending?

  Business research survey current unemployment conditions in

business research survey current unemployment conditions in sampled householdsprepare a 10-13-question survey to

  Encapsulating encryption protocol

What is the alternative to Encapsulating Encryption protocol?

  What products might you no longer be able to obtain

illustrate what products might you no longer be able to obtain in your country? Choose one other country and identify the products it would need to do without.

  Implement a advertising program for the expansion

We are expanding from 10 centers to 250 centers across the mid-Atlantic states. How would I implement a advertising program for the expansion of a daycare cente

  Challenge that managing a remote team would present

Identify one challenge that managing a remote team would present, and, as a leader, how would you address this challenge?

  Computers and the future

What do you think the future of computer technology will be 5 to 10 years from now.  For example in the 1960's Star Trek have the flip communicator and then in the 1990's we have the motorola flip cell phone.

  Create an organizational structure that would lead

Choose one of the organizational designs from the four and describe how you would use that design to create an organizational structure that would lead to high performance.

  Ethical and legal concerns for a health care organization

Ethical and legal concerns for a health care organization

  Assignment-qualitynet website

Search the QualityNet website, click on "Hospitals - Inpatient." On the left hand column find "Data Validation" and "Specification Manual." (You will have to scroll down to find "Specification Manual".)

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