You are on page 1of 9

Date Customer ID Item ID

10/5/2020 6 1
10/5/2020 6 6
10/7/2020 15 6
10/7/2020 2 10
Date Customer IItem ID
10/8/2020 14 6
10/8/2020 5 4
10/8/2020 7 1
10/8/2020 10 10
10/8/2020 19 7
10/8/2020 19 7
10/8/2020 10 2
10/8/2020 11 9
10/8/2020 2 8
10/8/2020 2 7
10/8/2020 16 2
10/8/2020 14 10
10/8/2020 2 8
10/8/2020 13 2
10/5/2020 5 9
10/5/2020 5 9
10/5/2020 15 4
10/7/2020 11 11
10/7/2020 8 9
Item ID Description Price
1 Corn 2
2 Beans 2
3 Apples 1
4 Milk 2
5 Eggs 3
6 Bread 1
7 Soda 0
8 Chips 1
9 Peaches 2
10 Pasta 2
Date Target
10/5/2020 25
10/6/2020 27
10/7/2020 27
Customer ID First Name Last Name Birth Date Membership Renewal Date
2 Elyse Roberts Oct. 9, 1949 1/15/2016
2 Elyse Roberts Oct. 9, 1949 12/30/2016
2 Elyse Roberts Oct. 9, 1949 12/15/2017
2 Elyse Roberts Oct. 9, 1949 11/30/2018
5 becca Christensen Feb. 12, 1994 10/6/2014
6 Elaine Pugh 15-May-46 2/1/2015
7 Crystal Briggs Mar. 6, 1974 3/21/2014
8 Travis Forbes Jul. 17, 1969 7/19/2013
29 Veronica Glover Jun. 10, 1997 7/22/2013
30 Lauren Galloway Jan. 7, 1957 1/29/2016
31 Armani Pierce Mar. 24, 1964 10/18/2013
31 Armani Pierce Mar. 24, 1964 12/25/2015
31 Armani Pierce Mar. 24, 1964 11/10/2014
31 Armani Pierce Mar. 24, 1964 9/7/2013
INNER JOIN Purchases and Items using Item ID

Date Customer IItem ID Item ID Descriptio


10/5/2020 6 1 1 Corn
10/5/2020 6 6 2 Beans
10/7/2020 15 6 3 Apples
10/7/2020 2 10 4 Milk
5 Eggs
6 Bread
7 Soda
8 Chips
9 Peaches
10 Pasta

Date Customer IItem ID Item ID Description Price


10/5/2020 6 1 1 Corn 2.44
10/5/2020 6 6 6 Bread 1.04
10/7/2020 15 6 6 Bread 1.04
10/7/2020 2 10 10 Pasta 2.41

FULL OUTER JOIN Purchases2 and Items using Item ID

Date Customer IItem ID Item ID Descriptio


10/8/2020 14 6 1 Corn
10/8/2020 5 4 2 Beans
10/8/2020 7 1 3 Apples
10/8/2020 10 10 4 Milk
10/8/2020 19 7 5 Eggs
10/8/2020 19 7 6 Bread
10/8/2020 10 2 7 Soda
10/8/2020 11 9 8 Chips
10/8/2020 2 8 9 Peaches
10/8/2020 2 7 10 Pasta
10/8/2020 16 2
10/8/2020 14 10
10/8/2020 2 8
10/8/2020 13 2
10/5/2020 5 9
10/5/2020 5 9
10/5/2020 15 4
10/7/2020 11 11
10/7/2020 8 9

Date Customer IItem ID Item ID Description Price


10/8/2020 14 6 6 Bread 1.04
10/8/2020 5 4 4 Milk 2.45
10/8/2020 7 1 1 Corn 2.44
10/8/2020 10 10 10 Pasta 2.41
10/8/2020 19 7 7 Soda 0.34
10/8/2020 19 7 7 Soda 0.34
10/8/2020 10 2 2 Beans 1.91
10/8/2020 11 9 9 Peaches 2.31
10/8/2020 2 8 8 Chips 1.31
10/8/2020 2 7 7 Soda 0.34
10/8/2020 16 2 2 Beans 1.91
10/8/2020 14 10 10 Pasta 2.41
10/8/2020 2 8 8 Chips 1.31
10/8/2020 13 2 2 Beans 1.91
10/5/2020 5 9 9 Peaches 2.31
10/5/2020 5 9 9 Peaches 2.31
10/5/2020 15 4 4 Milk 2.45
10/7/2020 11 11 null null null
10/7/2020 8 9 9 Peaches 2.31
null null null 3 Apples 0.59
null null null 5 Eggs 2.52
Price
2.44
1.91
0.59
2.45
2.52
1.04
0.34
1.31
2.31
2.41

Price
2.44
1.91
0.59
2.45
2.52
1.04
0.34
1.31
2.31
2.41
Date Customer IItem ID
10/5/2020 6 1
10/5/2020 6 6
10/7/2020 15 6
10/7/2020 2 10
10/8/2020 14 6
10/8/2020 5 4
10/8/2020 7 1
10/8/2020 10 10
10/8/2020 19 7
10/8/2020 19 7
10/8/2020 10 2
10/8/2020 11 9
10/8/2020 2 8
10/8/2020 2 7
10/8/2020 16 2
10/8/2020 14 10
10/8/2020 2 8
10/8/2020 13 2
10/5/2020 5 9
10/5/2020 5 9
10/5/2020 15 4
10/7/2020 11 11
10/7/2020 8 9

You might also like