12.07.2015 Views

SPSS Programming and Data Management, 4th Edition: A Guide for ...

SPSS Programming and Data Management, 4th Edition: A Guide for ...

SPSS Programming and Data Management, 4th Edition: A Guide for ...

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

29Getting<strong>Data</strong>into<strong>SPSS</strong>Figure 3-3Active dataset in <strong>SPSS</strong>• FROM SurveyResponses LEFT OUTER JOIN [Value Labels] will includeall records from the table SurveyResponses even if there are no records in the ValueLabels table that meet the matching criteria.• ON SurveyResponses.Internet = [Value Labels].[InternetValue] matches records based on the value of the field Internet in the tableSurveyResponses <strong>and</strong> the value of the field Internet Value in the table Value Labels.• The resulting active dataset has an Internet Label value of No <strong>for</strong> all cases with avalue of 0 <strong>for</strong> Internet <strong>and</strong> Yes <strong>for</strong> all cases with a value of 1 <strong>for</strong> Internet.• Since the left outer join includes all records from SurveyResponses, there are casesin the active dataset with values of 8 or 9 <strong>for</strong> Internet <strong>and</strong> no value (a blank string)<strong>for</strong> Internet Label, since the values of 8 <strong>and</strong> 9 do not occur in the Internet ValuefieldinthetableValue Labels.Reading Excel Files<strong>SPSS</strong> can read individual Excel worksheets <strong>and</strong> multiple worksheets in thesame Excel workbook. The basic mechanics of reading Excel files are relativelystraight<strong>for</strong>ward—rows are read as cases <strong>and</strong> columns are read as variables. However,reading a typical Excel spreadsheet—where the data may not start in row 1,column 1—requires a little extra work, <strong>and</strong> reading multiple worksheets requires

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!