Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

(30 pts) Continue to use the salaries.xlsx data file, and we will practice using character functions in SQL. Use just one single PROC SQL step

(30 pts) Continue to use the salaries.xlsxdata file, and we will practice using character functions in SQL. Use just one single PROC SQL step in SAS for creating a new data table (call it M8_Salaries) and add the following variables:

  1. The first name of the employee. Call it firstname with a length of 25.
  2. The last name of theemployee. Call itlastname with a length of 25.
  3. Using the calculated variablesfirstnameandlastname as computed above, create a new full name by concatenating thefirstname, one space, and thelastname.Assign an appropriate length. Use thestripfunction to remove leading and trailing blanks.
  4. Using the variablesfirstnameandlastnamecomputed above, create theemployee's name in the form first initial, a period, one space, UPPER CASElast name. Call it filast and assign an appropriate length. There must be no leading blanks.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Statistics The Art And Science Of Learning From Data

Authors: Alan Agresti, Christine A. Franklin

3rd Edition

9780321849281, 321755944, 321849280, 978-0321755940

More Books

Students also viewed these Mathematics questions