SlideShare a Scribd company logo
ハウ通分析術 http://analytics.how2club.comデータ分析塾 http://analytics.ftani.com
LessonLesson
抽出条件を図解する
選択クエリを作成する
◦ 抽出条件を入力する
◦ 結果を確認、保存する
クエリをもとに選択クエリを作成する
キャンペーンの対象者を顧客リストから抜き出す
-マイクロソフトアクセスで条件抜き出しをする-
サンプルデータを利用して、顧客リストから指定した条件にあう対象者を抜き出す
方法を解説します。
例として、キャンペーンの対象者を絞り込むため、顧客リストから未婚男性の北東
北(青森、岩手、秋田)在住者を抜き出します。
アクセスでは「選択クエリ」を使うことで、複雑な条件でもマウス操作だけで、絞
り込むことができます。エクセルで扱いにくい10万行を超えるリストであっても、
ストレスなく操作ができます。
ハウ通分析術 http://analytics.how2club.comデータ分析塾 http://analytics.ftani.com
事前準備:テキストファイルをインポートする
<<以前のスライドはhttp://www.slideshare.net/jbtaniguchi/ss-28617713>>
初めての方は、手順を参考に右図を表示させてください。
1
• アクセスを起動し、名前をつけて「空のデータベース」を作成
2
• 「テーブル1」を閉じ、リボンから外部データをクリック
3
• 取込元のファイル形式でテキストファイルを選択
4
• 現在のデータベースの新しいテーブルにソース データをインポート
5
• 「区切記号付き」が選択し[次へ]をクリック
6
• 「先頭行をフィールド名として使う」にチェックボックスを入れ、
「完了」
ハウ通分析術 http://analytics.how2club.comデータ分析塾 http://analytics.ftani.com
抽出条件を図解する-未婚かつ男性-
未婚男性の北東北(青森、岩手、秋田)在住者という条件は、少し複雑なので、ま
ず紙とペンを使って、どのような条件なのか図解します。
①全体には顧客リストがあり、ここには未婚既婚、男女、全国の人が入ります。
②そのなかから、未婚と既婚にわけます。
③さらに未婚は男性と女性にわかれます。
④未婚男性という条件は「未婚かつ男性」と読み替えることができます。
①全体
未婚&既婚
男&女
全国
②未婚
既婚
③男性
女性
それ以外
④未婚かつ男性
ハウ通分析術 http://analytics.how2club.comデータ分析塾 http://analytics.ftani.com
抽出条件を図解する-青森または岩手または秋田-
⑤未婚男性を対象として、未婚男性から北東北を抜き出します。未婚男性の都道府県をみ
ていくと、47都道府県にわけることができます。
⑥今回はその47の都道府県から青森、岩手、秋田を取り出します。
⑦青森、岩手、秋田は、「青森または岩手または秋田」と読み替えることができます。
⑧全体として未婚男性の北東北(青森、岩手、秋田)在住者というものは、論理的には、
「未婚でかつ男性」でかつ「青森または岩手または秋田」となります。
⑤未婚男性
全国
⑥青森
それ以外 それ以外
⑧未婚かつ男性
かつ
(青森または岩手
または秋田)
⑥岩手
⑥秋田
⑦青森
または岩手
または秋田
それ以外
ハウ通分析術 http://analytics.how2club.comデータ分析塾 http://analytics.ftani.com
抽出条件を図解する-まとめ-
未婚男性の北東北(青森、岩手、秋田)在住者というものは、①全体に対して「②
未婚でかつ③男性」でかつ「④青森または岩手または秋田」となります。
このように図解することで、複雑な条件でも簡単に示すことができます。なれてし
まえば、図解せずに理解ができるようになりますが、少しでも不安があれば図解す
ることで、次の作業がとてもやりやすくなります。
①全体
未婚&既婚
男&女
全国
②未婚
既婚
③男性
女性
④青森または岩手ま
たは秋田
それ以外
ハウ通分析術 http://analytics.how2club.comデータ分析塾 http://analytics.ftani.com
選択クエリをつくりテーブルを選択
[作成]リボンを表示させ、[クエリデザイン]をクリックします。テーブルの選択画面
の[顧客マスタ]をダブルクリックし、[テーブルの表示]画面を閉じます。
①[作成]リボンを
クリック
②[クエリデザイン]
をクリック
③[顧客マスタ]を
ダブルクリック
④[閉じる]を
クリック
ハウ通分析術 http://analytics.how2club.comデータ分析塾 http://analytics.ftani.com
出力フィールドを選ぶ
フィールドの[UID]をクリックし、スクロールバーで最下部のフィールドまで見える
状態にしたあと、[Shift]キーを押したまま[キャリア]をクリックします。オレンジ
色で示された選択領域を下表(デザイングリッド)へドラッグ&ドロップします。
①[UID]を
クリック
②スクロール
バーを下げる
③[Shift]キーを押し
たまま[キャリア]を
クリック
Shift
④オレンジ色の
選択領域を下表に
ドラッグ&ドロップ
ハウ通分析術 http://analytics.how2club.comデータ分析塾 http://analytics.ftani.com
未婚の男性を選ぶ
まず、「性別」フィールドの抽出条件に「男」と入力します。次に「婚姻」フィー
ルドの抽出条件に「未婚」と入力します。
※「“”」(ダブルコーテーション)は自動で入力されます。
①[性別]フィールドの
抽出条件に「男」と入力
②[婚姻]フィールドの
抽出条件に「未婚」と入力
ハウ通分析術 http://analytics.how2club.comデータ分析塾 http://analytics.ftani.com
結果を確認する
「実行」をクリックすると、[男]で[未婚]に絞り込まれたリストが表示されます。
※抽出条件が間違っていると何も表示されないことがあります。
(「男」とすべきところを「男性」とすると、表示されないなど)
①[表示]をクリック ②[男]で[未婚]に絞りこまれたことを確認
ハウ通分析術 http://analytics.how2club.comデータ分析塾 http://analytics.ftani.com
クエリを保存する
[クエリ1]のタブを右クリック、[上書き保存]を選び、クエリ名を「q01_顧客リスト
から未婚男性抽出」として[OK]をクリックして保存します。
①[タブ]を
右クリック
②[上書き保存]を
クリック
③「q01_顧客リストから
未婚男性抽出」と入力
④[OK]を
クリック
ハウ通分析術 http://analytics.how2club.comデータ分析塾 http://analytics.ftani.com
選択クエリをつくりクエリを選択
作成リボンから、クエリデザインをクリックします。[テーブルの表示]ウィンドウ内
の[クエリ]タブをクリックし、表示された[q01_顧客リストから未婚男性抽出]をダ
ブルクリックし、このウィンドウを閉じます。
①[作成]リボン
をクリック
②[クエリデザイン]
をクリック
④[q01_顧客リストから未婚男
性抽出]をダブルクリック
⑤[閉じる]をクリック
③[クエリ]タブ
をクリック
ハウ通分析術 http://analytics.how2club.comデータ分析塾 http://analytics.ftani.com
3県を抽出条件に入力する
顧客マスタからフィールドを選択したときと同様に、下表(デザイングリッド)に
[UID]から[キャリア]までをドラッグ&ドロップします。[都道府県]フィールドの[抽
出条件]へ[青森県]と入力し、その下に[岩手県]、[秋田県]を入力します。
①[UID]から
[キャリア]まで
を選択
②下表へ
ドラッグ&
ドロップ
③[都道府県]フィールドの
[抽出条件]へ、[青森県]と
入力
④[または]へ [岩手県
県]と[秋田県]を入力
ハウ通分析術 http://analytics.how2club.comデータ分析塾 http://analytics.ftani.com
キャンペーン対象者リストを保存する
[q01_顧客リストから未婚男性抽出]の場合と同様、表示をクリックすることで、結
果を見ることができ、タブを右クリック→上書き保存をすることで、この条件のク
エリが保存できます。クエリ名は[q02_キャンペーン対象者リスト]とします。
①[表示]をクリック ②未婚男性、北東北に絞
り込まれて表示される
③[クエリ1]タブを右ク
リック、上書き保存する
ハウ通分析術 http://analytics.how2club.comデータ分析塾 http://analytics.ftani.com
次回の
テーマ
お疲れさまでした。今回のレッスンはここまでです。
 今回は、サンプルデータを利用して、キャンペーンの対象者
を絞り込みを行いました。
 次回は、その結果をアクセスのテーブルとして作成し、その
テーブルの内容をCSV形式のファイルとして出力します。絞
り込み用のクエリをもとに、新たなテーブルに書き出すため
のテーブル作成クエリを利用し、テーブルを作成し、その
テーブルをCSV形式として出力します。
 ほとんどの作業がマウスを中心としたドラッグ&ドロップで
実行でき、エクセルで扱いにくい10万行を超えるリストで
あっても、ストレスなく操作ができます。
CSV形式でキャンペーンの対象者リストを出力する

More Related Content

Featured

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
Marius Sescu
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
Expeed Software
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
Pixeldarts
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
marketingartwork
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
Skeleton Technologies
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
SpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Lily Ray
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
Rajiv Jayarajah, MAppComm, ACC
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
Christy Abraham Joy
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
Vit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
MindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
RachelPearson36
 

Featured (20)

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 

キャンペーンの対象者を顧客リストから抜き出す -マイクロソフトアクセスで条件抜き出しをする-【データ分析塾ab004】