1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

複数のフィールドをキーにしてテーブルを結合する(SPSS Modeler データ加工逆引き6-14)

Last updated at Posted at 2024-08-06

複数のフィールドをキーにしてテーブルを結合する

スクリーンショット 2024-07-30 14.28.48.png

1.想定される利用目的

・テーブルを結合する際にキーが複数ある場合の対処

2.サンプルストリームのダウンロード

3.サンプルストリームの説明

スクリーンショット 2024-07-30 14.32.55.png

a.入力するデータのひとつめは以下の通りです。分類マスターをイメージしています。
スクリーンショット 2024-07-30 14.38.39.png

b.入力するデータふたつめは以下の通りです。商品の在庫情報です。
スクリーンショット 2024-07-30 14.39.05.png

複数キーを設定する

c.[レコード結合]ノードを編集します。
スクリーンショット 2024-07-30 14.39.19.png

[テーブル]を実行します。
スクリーンショット 2024-07-30 14.39.49.png

複数キーをひとつのキーにまとめる方法

d.[フィールド作成]ノードを編集します。以下のように文字列結合します。
スクリーンショット 2024-07-30 14.40.02.png

[プレビュー]します。
スクリーンショット 2024-07-30 14.40.26.png

e.[レコード結合]ノードを編集します。重複するキーをフィルターしておきます。
スクリーンショット 2024-07-30 14.42.24.png

スクリーンショット 2024-07-30 14.43.09.png

[テーブル]を実行します。
スクリーンショット 2024-07-30 14.43.51.png

注意事項

dのような文字列結合を行う場合にはあらかじめ桁数の確認をして全体の整合性を予め確認してください。

4.参考情報

レコード結合を解説した記事

SPSS Modeler ノードリファレンス目次

SPSS Modeler 逆引きストリーム集(データ加工)

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?