1 / 14

データベース: Access による実習 第 5 章: クエリの基礎

データベース: Access による実習 第 5 章: クエリの基礎. 内容 クエリの作成 レコードの抽出と抽出条件の指定 クエリでの計算 グループ化しての集計. リレーションシップ Section22. 各表の主キーと外部キーは ?. リレーションシップ Section22. 文字列は「 ” 」で囲む. 数字は「 # 」で囲む. 抽出条件の入力 Section 39. 抽出条件の指定 Section39. 選択クエリからのレコードの抽出:練習問題 Section 39. 条件 「見積内容」が「パソコン一式」のレコード

greg
Download Presentation

データベース: Access による実習 第 5 章: クエリの基礎

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. データベース:Accessによる実習第5章:クエリの基礎データベース:Accessによる実習第5章:クエリの基礎 内容 クエリの作成 レコードの抽出と抽出条件の指定 クエリでの計算 グループ化しての集計

  2. リレーションシップSection22 • 各表の主キーと外部キーは?

  3. リレーションシップSection22

  4. 文字列は「”」で囲む 数字は「#」で囲む 抽出条件の入力Section 39

  5. 抽出条件の指定Section39

  6. 選択クエリからのレコードの抽出:練習問題Section 39 • 条件 • 「見積内容」が「パソコン一式」のレコード • 「顧客ID」が「ITKR」のレコード • 「顧客ID 」が「FUCH」のレコード • レコード抽出 • 条件1 • 条件1 AND 条件2 • 条件2 OR 条件2 • 条件1AND (条件2OR 条件3)

  7. 選択クエリからのレコードの抽出:練習問題Section 39 • 条件 • 「納入場所」が「空ではない」のレコード • 「見積有効期限」が「2002年4月1日から2003年3月31日までの」のレコード • レコード抽出 • 条件1 • 条件1 AND 条件2 • 条件1 OR 条件2

  8. 選択クエリからのレコードの抽出結果Section 39

  9. 記述例 比較演算子を使った抽出条件の指定Section 40

  10. クエリで計算Section 41 • 定価=数量*販売単価 • 見積金額=定価*(1-割引)

  11. グループ化して集計Section 42 • 見積IDごとにグループ化した見積金額の集計結果

  12. グループ化して集計:練習問題Section 42 • 以下の項目(属性)からなるクエリを作成しなさい • 見積ID,見積内容,氏名,販売単価,数量,割引 • 見積金額は,Section41で計算したもの

  13. グループ化して集計:練習問題Section 42 • 見積内容ごとにグループ化した見積金額の集計結果

  14. グループ化して集計:練習問題Section 42 • 氏名ごとにグループ化した見積金額の集計結果を降順で並べたもの

More Related