Jun 2, 2005 - 9 serves as an assistant professor of e-business and information systems at Tulane University's A. B.. 10. Freeman School of Business. 11. 12.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
!" % (
# $
& ' )*#+,$-*,*#+ .)*#+,$-*,- * '
( ' / '
% !
0 1#0
&
(
' / ' )- *,0+0, +$ .)- *,0+0,
27 28 29 30 31
2
1
63
'/
33 ' 7
3 8
1!1##*
' 1##0 4 5
3
'
%
1 2 3 4
'/
!"#
'
5
'
6 7
%
' %
!
'
8 9
'%
'
:
; !3
! '
!7
' / >.3
%' /
" % % %
!
%
' /
% 1##
,/
%
!0 !
=
3
9
3
= 5 '!
'? '
10
!
'
'
'
'
!
>'
!
!
!
, ,B
!
! #$
!
>
>'
22
!
!
18
'
' :
!
20
' ' %
!
17
23
=
' ! !
%
2
1 2 3 4 5
#% ',
C
3
6
5
7
.3
8
3
9
'
10
C
'
D % % D
',
3
%!
'
E / 3
! !
.3
' '>
12
/:
.3
'
14
'
! '
3
'
'
3 '
7
! '
' / !3
%0+1
%
4
C
3
% '
.3
' %
/:
. '
' %>,F ' % 'C
' /
! '3 '
%
/
'
'
'
11
13
%
5
,/ ' .3
%
'
'
'
15 16 17 18 19 20
& '
?
(
'! ) *+
,
(
= ' !
!> /
, (
>7#1#$!>7#1#*#1!>7#1#-#1!>7#1 *! B#0# ! B#0#*
0
'! ! ,
#-!
#!
, '! ' 5 %!>,F ' % #-!
,
#0!< #1! =!
1
)!
2
/
3
3
4
% D
D
'
!
'
33
%
6
6
%
6F
8 9
% D
11
% ',
12
33 3
13
F
17
'
63
HH08 /
6
'
% '
'
'
% %
% %
56
%'
?"C
5/
''
/
'
%
3
' /
,F ' %
6 %! /
'
1##1G
%% ,
'
5
33 3
,
3
,
D '
3 %
'
#
' '
3 ,
''
/
6 3
!
'/ 4
. 3 !
C
21
'
3 6 /
' G J
%
23
'
''
17
'%
,
- !
'
,
/
22
3
/ C
'
8
,F %
8 '
>,F
%% HH18
''
# >,F
3
'' 3
' 2
C
,
'
1
'
2
'
6
HH*GA
'!
3
3 '
%3
5
%
E
6 7
'
C
H$-8
' ' '
11
J %
13
#
8!
%
,
'
%
'
D '
C
'3
'
'
,
/
' !
'
% '
/ C
20
'J> 3
21
6%
22
JF
/
3 5
8
4
! 3 ,/ '>,F
' '
5
%
,
3 '
'
''
%
%
5
' ''
/ '
5 !
,/ '>,F
3 ' '
'
''
JA J
3 '
3 !J
% A J '
'
'
/8 3
%
3 '
/ ' %5
3
3 '
3
%
%
6% /
%
H$18
7
3
'
%
'
#!
% '
%
!
!>,F ' %
3
3
'
A ! J ' 3
23
/
%
HH*G
' %
5 3
5
'
%
%
>
J
'
6
H -!3 #8G
3
'
'
%
. 3 !
% '
' %3
J6 B
'J6B
''
'
'
'
3
19
%
,
3
'
18
5!
33 % '
#
15
% '
%
>,F %
3
17
3
7
#!
B
'
J
3
16
'
'
'
/ '
14
3 '
%
' /
3
3
12
3
'
' /
10
24
6
'
% '
3 3
,
3 /
'
>,F ' % 3
4 '
8 9
3 !/ /
4
H $8
/ 3
, '
'
%
.
%
1 2
3 HHH8
3
'3
'
/
'
%'
'
6 %! %
,/ ' '
3
,
'
B
1##1G4
'
,/ '>,F ' %
'3
KEY
EMPLOYEE
A. State-Based E-R Diagram
KEY
ASSIGN KEY
EMPLOYEE
RETURN KEY
B. Event-Based E-R Diagram Figure 1: E-R Diagrams for Tracking Building Key Assignments
4 5 6
% %
3 ' %
7 8
'
3
,
3
64
' '4 /
10
6H$ 8! '
/
11
6 ' %'
8
12
3 3
14 15
6H* 8 '
HH*8 '
!
%
3 3
5
%
% A
! / '
'F
% G
6HHH8! !
!
/
'
'
,&
3
% D'
% %
'
3 ' %
3
'3 3
3 3
%
% % '
'
%
'
>,F %
9
13
'
%/
.
/ ' '! '
A
' 6H$#8!
'! ' 3 3
33 3
3
'
>,F ' % 7
!
% @ 6H 8
%
'
%3 4
'/ 4
'
1
'4 / 6HH*8 '
2
%
3
.
3 3
5
.3
6
'%
3
'' /
8
'
3
,2
'
' /
%
3
3
14
HHHG=
15
!
'3
'
,F
%
%
%
3
17 18
' A
'4
3
HH$8
'
!
63 1 8
%
%
5 %6F /
'3 3
'
C
%1##1G / % HH$G
13
%%
'F
6
'
'
HHH8
' 3
3
%
'
% A
3
3 6
16
HHHG4
%
%
'
.3
>,F ' 8
'4 /
,F
' 3
, % 7! %
1 2
' '
3 ')
3
,/ '!
'
%
,/ '! '
%
' %!
5
'
/ '
7
%
'3
3
%E
9
' !
,F ' %
13
3 ''
3
'
33 @
#
6 33 '. 8
14
16
3 3
'!
'/
3
!
%
11
15
3
H$-8 7 ' 3
%/
%
3 3 % >
3 7 '
HH+G
' /
10
3
' 33 '. 8
6 %!
,F ' %
%
3 3
,/ '6 %
#
4
6
'
!
'%
> 3
5 I (
% 5 3
3
6 ! ' /8 B
' /
'%
12
3 ' % /
( ! 3
!
5 I
% 5 3
1
3 ' %
2
3
3
33
4
3
5
/
/' 3 6B
%
8
10
3
'
%
%
, , % 5 3
33 %
%C
' /
33 %
>,F ' %
7 >,F ' %
%
3
% 13
, ,
F
' G
3
3
3
1
3
(
2 3 4
B
!
. 3!
' 'MN 6
'
'
33 O '
%
/
'8
'
!B
N
O8
'
3
< ' '6 'B
(
'
3
!
'
5
6
Figure 4. Event-Based E-R Diagram
7 8 9
4
10
5
'
' 5
'
.3
11
'
12
' /
13
/
14 15
' 3
3 C
%
'
'
C
,F ' % /:
=% ! '
' /
%
:!
16
"!
! '
.3
'
% '
%
'
'
3 %
'
'
.3
'
'>
12
/
%0- /:
' 3
' %!
' '
/
3
' ''
/ 5%
!
7
! '
/:
'
/: @3 , .3
>,F ' %
%
%
'/ '
6
13
' '
'
8! '
3 3
1
?"
.! '
C
2
C
3
%
3
6
3
8!
3 '
7
'
6 %!/
%
!
C
% ''
'
5'
/:
%
/:
' /
'
/ ' %C '
10
%
C
C
>. 3
C
33 '.>
11
/:
12
?"C
13
3
14
'%
'
'
'
. 4
'
3
% '
18
?"C
%
' !% / 5
?"
/: '
.
'
'
22
'
/
6
C
C
/:
C
!
33 '. 8 4
'
' %/
!.
3 ' %
'
/
' ' 3
'
C
23
/ % /: '
' , .
.3 C
' / !. 3 18
=
C '
' %
'
'
' '
!
'
3 ' %
'
! '
/:
'
C
21
>,F
>,F ' %
19
'
3
5'
'
'
'
3
33 3
20
' 5'
'3
%
33 3
3 '
F" C
3
16
%
5 '
15
24
/:
' ' /
9
17
C
/:
./ 5 %
56 33 '.>8
3'
'
.3
%
.3
C 3 .C
:
8
'
/
4 5
'
!
1
% ?"C
2
%
3
3 4
/ C
'
/: C
C
'
' C
'
/
/ '
'
%
/
% , /
'
3
*
6
6
7
%
8
( 8
3 '
'
9
! /: E
%
!
3
$ 3
'
' '
S 2 H1: Accuracy 0.88 3 H2: Confidence 4.02
%
C
E 0.88 4.01
A 0.87 3.90
8 '
' % ' % +#1
C
,3
% 1
'6 !
0 H#
Treatment Mean
Hypotheses
'
'
.3
''
8 7 ''
' %>,F ' %
$$3
%'
'6 /
'
%
' %
'
, 3
''
6< 8 7
12
%
'
11
13
'
' '
5
10
3
D'
.
'
%
,F ' %
3 '
% 8 ' %>,F ' % 20
!
'
' %>,F ' %
%
6 ! '
'
' %>,F ' %
6 ! /:
/
6## -8
'
10
14
!
3 '
'
9
11
/
/:
! .3
,/ ' '
3 ' % ,
1
/ '
,F ' %
%
4
3 '
3
16
'
8!
)''
% /:
'
/
'
3 Treatment Mean
Post-hoc analysis
1
6 / 18
% P
C
%'
%
ANOVA P-values Pairwise Mean Comparisons Treatment Covariate S-E S-A E-A
S E A Total time spent 0.0185* 0.6314 0.3850 0.0061** 0.0548 86.2 81.1 72.3 on experiment Time spent on 54.0 51.8 46.3 0.0312* 0.8021 0.7429 0.0166* 0.0343* 2 semantics Time Spent on 14.2 10.6 9.8 ,F ' % %
6
8
,F ' %
' % %%
,
.3
22
'! '
3
'
21
/
%
'
/
'M
3
. / '
C
3
3 .
/: E
/
3
%
%
'!
%
''
!
'3 '
'
'!
,/ ' 3
'
16
' %
3 .
%
' %
''
'
,/ ' '
8
%%
,/ ' ' %
$$3
%C
'
!
13
24
' 3
11 12
6$+
! 5! ''
%
9
! '''
%
3
'
8
%
'!
7
23
C
:
/:
,/ '
3 '
3
4
15
3 '
7
'3
3
/: .3 '! /:
.' !
% 3 3 %
26
1
'
.3 '
'
'
1
.3
2 3 4
' /
%
/
'
3
5
%!
9
'
'!
5 % < 3
'
'
24
3 '
/ '
C '
' '
3 '
3
.3
' ' 3
''
3 %
3
' /
'/
' '
3
0
'
,F ' %
13
'
/ M/
C 5
.3
%
'/
'
'
11 12
3 /:
/
,/ '
' %
%
%
7
10
' %
%
7 8
3 /
.3
% '
' % /
C
3
6
% '
3
',
'
' . 3
3
'
%3
'' / ' %
27
'
' 3 >,F
!5
'! 3
1
3
' '
2
,F ' %
C
6
8
' /
'
% ' '' !
1
' %
2
/
3
C
'
%'
%
% ' '
4
,/ ' '
5
3
'
%
5
8
'
10
6 %
11
'
12
3
>
>
'
19 20 21 22 23 24
6%
9
!
3 ! '
8 ' 1##0
6 'F
3 5
' 7
( 5
! F +
'4
'
'
'8
B
'
'
%%
6"
8!
6 6
3 :
8! %
3
. >>F HH+!33 # , +1
N
! ! /
20
/
%
'
!( B JF F
2
< 35
=
23 24 25
! " ' B !4 > J % >. ' ',F> > 3 7 !60)8! 1##1!33 , -
D
' =
30 31
!= '4 2! HH$
! "!A ! J
!
! '
!
7 60$8!1###!33 $ , #
%(
!
% '8!
%
"
=
! J
)
!= ! J
! 8!
! O
7
2
%?
,
/
! O
!< 2
32 33
'(
' !
>.3
'4 '!9 JB 3 . 'B ' 3 = 3 ! J
28 29
>
> % / ! J
!
!2 = N H,0*
! '
) HH0
3 ' "% 6*8! HH*!33 0#*,01
21 22
26 27
7 /
! ' ! =! '
!
!A " J , / " !6 ) +8!
!( J B
! F '
/
!
! !; ! J
% /: F
,
3
$
!2 A 0
N
$
' %F -3
! ' '
!2
! 2! H$#
0
> ,F 3 ', 6)8! H -!33 H,0-
!> "!B 4!
18 19
2 ! !H
!
!=
!B " 2! '= 3 !< 61#) 08! HH*!33 1 0,10*
!
F B
16 17
=
5) $
%)B 6*+)
3 %8!1##* %
/:
< ! 33
'' F
!
6#8!1## !33 1 #,
1%
)
67
!1## '' ! F
! ' ,< I7
69
!> "! ! ! 30
: ! HHH
8:= :
< ! $
1 2 3
2 !4 2! F
4
A
5 6
A !9 ' ! NB 3 60$) -8!2 HH*!33 #0, *
7 8
" 5 ! !2 B % =
:% !B
"
' ! J % ' ! J
9 10 11
'/ '! ! ' !B ! 3 ' ? = 60 ) 08! H$H!331* ,1-
!4
!>
!
!F " "
"
!
'!
%
'
J > '
>
F
,
,
! J
%
#
! O
12
!
!
% !7"! H$ 7
/
F3 / !61) +8! 3 %! HH-!33 $ ,
1 0
12 13 14
5 F
D!( 3
15 16
B
' ! JF 3 / ) ' 33 HH1!33 +10,+-+
/
!4 > ! ' >
17 18
F> ; '
/ %!" J 33 %>3 '
20 21 22
!2 N
%A ! HH#
23 24
=
25
=
!
26 27
F
!(
28 29
F/
30 31
F
!2 '4 ' %! O
'!9 N>
'
3
! N>.3 '
? B 3 . '" B 3 '" % / 7 ! J : 1, G60+) 18! 1##+!33 1 -,1$1 'A
! HH$
/
! J
/ = 3 $ ! 3 !2 6'8!
O7 = 5!
/
/ '% !
3
,, F % !6H) 18!2
. ' '> ! J
%
19
39 40
3
HH-!
! H$ %
HH-!33
1 2 3
! = '( !7 J ' %) 3 B 7
4 5
!2 ! =/ %!=
!
!B =
!
6 7
3
8 9 10
' ! J
!2 > %!>
13
%!> J>3 '
% 33
!B
J
> , ! J= ' % ! B! /
!/ '
4
'!9 ! B 3 *1$
17 18
4
'!9 '4 / !F N 6*8! HH*!33 1#0,100
19 20
4
'!9 F
=
21 22 23
4 / !F %
24
9
!2
! !
6*08!1##1!33 ,1*
, F 61+) +8!
3B / HHH!33 +H+,
! O
)7
'B 3 ' / 1##1!33 0-0,0 -
!60) +8
>
7
( !=
/ 6$)18!2 H$-!33
9 5! 9! H$0
7
!
F
5 %
! H$
%
B
5 IB
,
%
!
! J
3
'K %!9 J % ! J, 3>>3 / HH !33 *,$1
'
=
'
!( B ! '4 / !F N ' %! O
'4 / !F JF % '! J
!
%
% ' ! O
! . '
14 15 16
' 7 1, *!HHH!33 11H,1++
? 7 % / 1##0!33 0H ,+10
!2 = J " % ,F 3
)
' ' /: ,
:
7 61 ) 08! 3
"
=
12
7
1) :, !B ! HHH
! 2!9 %! ! ' % >. ' '> H ,111
11
> 3 " B
,< !> %
E
'B
B !
%,,
3 9 5!
! 2! HH#
25 26 27
#
28
B
29 30 31 32 33 34 35 36 37
8#" '
+ C
+ /
.3
56 33 '.>8)
Show the car rental agency, the date the car reservation was made and the last name of the employee who made the car reservation for all car reservations made before 3/4/95. C
C
,/ '
6%
select carrentalagency, carreserved, lastname from saleorder s join employee e on e.employeeid=s.reservecaremployeeid where carreserved < '3/4/95' 32
08 )
1 2
C
33
/
)
select carreserved, lastname from saleorder s join employee e on e.employeeid=s.instructorid where carreserved > '3/4/95'
3 4 5 6 7 8
C
!
9
C
10
'
'
/
6
%
% 5
8
%
12
3
13
' '
%
D
'
'
% 33 % '
/: E
'
' C
15
'!
:
'
'
/
/
3
!
14
! 3
'!
.3
11
16
0I+IH*
8! '
/ 5
6 3
6
'
%
!
'!
17
'!
3 *I
C
'8
8! C
6
'
' !
'
!
#
18 19 20
#
8 "+
21 22 23
$
= '
3
3 ' /
'
6 3 '
= // '
8
'!
'
24
3 '
25
= '
!
/
26
D
3
' '
/
7
'
!
69 %/
3
! '
3 '
)
33
HH#8 !
= // ''
/ !
D ''
'
1 2
= ' 7
Q 63 '
'!
3
,3
"5
81
L
'
'
''
' %
% / )
4
%
## # * #*# #1* ###
% '
5 6 7
!
/:
.3
' %
8
'
C
9 10
'
!3 '
/:
.3
'
%
11
C
12
= '
C
'
C
!3 '
C
'
'/
'
)
''
'
'/
$ '
)
Q 6 L #$ *81 Q ## *-
= '
13
''
Q 6# *L 81 Q ##-1*
= ' 7
C
3
%
= '
C
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
#
8+(!
-
33
3
%
3
'
' /
5 %
'
'
4
33
5 % . 3 E 3 ' B ' >. 6 ' 33
' ' 5 6
C /
3 3 3 7 ,' ''
% ' %
'
8
3'
E % D
'
3 ' / 3 '
' / %
>. C % ' 3 % 33 ( / ' ' 5 'A 3' 8 '/ / % B 5' E / ' ' 5 % C ' B 3 3 ' ' .' A % ' ' .' / 5
3 '
%
"5 B ! % 3 33 ! ' C %
A
! '
/% 4
5 % ' 34
'
% %
! 5
1 2 3 4 5 6 7 8 9 10 11 12 13 14
% ' B
'
' '
E >. 5' 3
5 5
5 !B
3
5
' % %
3 '
3
'
5
'
% ' 6 4 >. % ' / 33 '
8 >. %
'A '
B >
3
' E
% !
!B ' .3 5 .3
/ /
5 ! /
5
/
' 3
' ! '' '
'
8 '
. E 36 ' '
' % 3 ''
'
5 3
/
15 16
#
17 18
8 "
8
/ %
19
/
/ B '
21 22 23 24 25
BF> > (7>4 B >">B B F ' G
27
/
!B
'
> 3
7!
'
7 !
,/ '
/:
'
/
,/ '
6 7
FC
)
% /
%
/
! /:
6
3
,/ '
3
3
'
,/ '
/
29
31
'
?"
)
28
30
'
/
/
/: '/
3
(
. 3
'
/
3
20
26
'/
"
'
8
0 !
''
33 '.>8 '
! ' '! '
3
'
32
35
'
'
/ % 3
'
State-Based Treatment SaleOrder (table) CarRentalAgency CarReserved ReserveCarEmployeeID Employee (table) EmployeeID LastName
Event-Based Treatment ReserveCar (virtual table) CarRentalAgency CarReserved EmployeeID Employee (table) EmployeeID LastName
Artifact-Based Treatment Reservation (virtual table) CarRentalAgency CarReserved CarReservedEmployeeID Employee (table) EmployeeID LastName
1 2
%
3
=
5
'
4
@
5
/
6
'
3
7
/
' '/
% B
> 3
% F C!B
3
'
%
'
/
3 ''
3 6>,F ' %
8 >
'
/ 6
/: '
=
''
3 ' %
/
3
>,F ' %
8
# % 7! !
# !=
!= ' 7 !( ' B
! '' 1!B !B !K 38 / !H+ ' !B !> 3 7!
7 ! .!
!=
!=
/ !( ' 7 8
!"
!=
!
3 B !
!F % 7 !
!K 38
'
< 6 '' ! '' 1!B !< 7 !< != ! !K 38 = 3 6= 3 != 3 7 8 / !0 ' = ' 6 37 ! != ' 7 !( ' 7 8 / !*+ ' ( ' 6 != !( ' 7 8 / ! H ' %
'
'
6 '' ! = 6 '' / !0#
,
'
%'
202 records Reference to a table not included in this database. Unique Identifier (Primary Key) The number of days it takes to teach the course The name of the Course Current list price for the course Reference to the Product table. Identifies the product the course is about Identifier that the Vendor uses for this course Reference to the Vendor table. Identifies the company who produced the courseware
0 / !1#1
B
3
/
5' B
6B
'
'
/:
Course Table CertNoReq CourseID Days Name Price ProductID VendorCourseNumber VendorID
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
'
% # % 6 ! !> 3 7 != 3 7 != ' 6 5 F '! % !B B B 3 !B > 3 7 !B
/ !$*
'
0
36
7 ! 7 8 / !H ' !B F % !B F !B !B 7!
'!
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
B ( '> 3 7 !B < ' '!B ( '!B 7! >.3 F 3 > 3 7 !>.3 F 3 !< B !< 7 ! < F '!7 7 !7 > 3 7 !7 ! ' 5 %> 3 7! ' 5 > 3 7 != !F B > 3 7 !F < > 3 7! ! 7! 5 ' '! 5 F '> 3 7 8 / !- # ' % B ' F F
0 % # % 6B !> 3 7 ! 7 8( / !- # ' ' '8 ( / !- # ' 5 6> 3 7! 7! 5 ' 6 % !B !B 7 !B 7 !7 7! ' 5 %> 3 7 != ! ! 7 8( / !- # ' = 6 ! !> 3 7 != 3 7 !F = 7!
(
F F
/ !H
5 6 B 6B B (
F
/ !- #
< (
'>.3 '7 ( B (
6> 3 / !- #
5 F
'!> 3 7 ! 7 8( !B F % ! F '!B
/ !- #
'
3 !> 3
7!
78
'
7 !
3 7 !>.3 F 3 ! 7 8( / !- # ' 6 3 7 !7 ! 7 8( / !- # ' 6B < ' '!B ( '!> 3 7! 78 / !- #
%
0 B 6B = 3 4 56B >.3 F 3 = 6 ! F 6B B < B (
78
'
/ !- #
'
% # % # < ' '!B ( '!> > 3 7 !B !7 > 3 7 !7 !> 3 7 != 3 7 != !B F % !B F !< 7 !< F '!F
3 7! !>.3 F 3 ! 7 8( 7! 78 '!B F < > 3
7 8( > 3 / !- # / !H
/ !- #
'
7! ' '
'> 3 7 !B 7! 78
3!
'
' 6 % !B !B 7 !B 7 !7 7! ' 5 %> 3 = ! ! 7 8( / !- # ' 5 6 5 F '! ' 5 > 3 7! 7! 5 ' '! 5 F '> 3 7 8( / !- # '
37
7!
1 2 3
1. List the name and telephone number of all customers in the state of Colorado ("CO"). Sort the list alphabetically by name. 2. List the Microsoft products for which TechSupport offers courses. Show product name and course name.
4 5 6 7
3. Show the car rental Agency, the date the car reservation was made and the last name of the employee who made the reservation for all car reservations made before 3/4/95 4. List the first and last names of employees who have made hotel reservations at the Holiday Inn. Also show the date the reservation was made and the city in which the particular Holiday Inn is located.
8 9
5. Show the date on which the courseware for saleID 305 was verified. 6. What is the total amount of money received from Executrain of Atlanta?
10
#
8 ")
9
7. What is the total price charged to Executrain of Atlanta for courses? Example Answers:
1. (All Treatments) 2. (All Treatments)
SELECT Name, Phone FROM Customer WHERE State = 'CO' ORDER BY Name SELECT Product.Name, Course.Name FROM (Product JOIN Vendor ON Vendor.VendorID = Product.VendorID) JOIN course ON Course.ProductID = Product.ProductID WHERE Vendor.Name = 'Microsoft' Answers for the State-Based Treatment Answers for the Event-Based Treatment Answers for the Artifact-Based Treatment
3. SELECT CarRentalAgency, CarReserved, LastName FROM SaleOrder s JOIN Employee e ON e.EmployeeID = s.ReserveCarEmployeeID WHERE CarReserved < '3/4/95'
SELECT CarRentalAgency, CarReserved, LastName FROM ReserveCar r JOIN Employee e ON e.EmployeeID = r.EmployeeID WHERE CarReserved < '3/4/95'
SELECT CarRentalAgency, CarReserved, LastName FROM Reservation r JOIN Employee e ON e.EmployeeID = r.CarReservedEmployeeID WHERE CarReserved < '3/4/95'
4. SELECT FirstName,LastName, HotelReserved, Hotel.City FROM SaleOrder s JOIN Employee e ON e.EmployeeID = s.ReserveHotelEmployeeID JOIN Hotel h ON h.HotelID = s.HotelID WHERE HotelName = 'Holiday Inn'
SELECT FirstName,LastName, HotelReserved, Hotel.City FROM ReserveHotel r JOIN Employee e ON e.EmployeeID =r.EmployeeID JOIN Hotel h ON h.HotelID = r.HotelID WHERE HotelName = 'Holiday Inn'
SELECT FirstName,LastName, HotelReserved, Hotel.City FROM Reservation r JOIN Employee e ON e.EmployeeID = r.ReserveHotelEmployeeID JOIN Hotel ON h.HotelID = r.HotelID WHERE HotelName = 'Holiday Inn'
5. SELECT CoursewareVerified FROM SaleOrder WHERE SaleID = 305
SELECT CoursewareVerified SELECT CoursewareVerified FROM VerifyCourseware WHERE SaleID = 305 FROM Courseware WHERE SaleID = 305
6. SELECT sum(Amount) FROM Payment p JOIN SaleOrder s ON p.SaleID = s.SaleID JOIN Customer c ON c.CustomerID = s.CustomerID WHERE c.Name = 'Executrain of Atlanta'
SELECT sum(Amount) FROM ReceivePayment p JOIN ReceiveOrder r ON p.SaleID = r.SaleID JOIN customer c ON c.CustomerID = r.CustomerID WHERE c.Name = 'Executrain of Atlanta'
7. SELECT sum(price) FROM saleorder s JOIN customer c ON c.customerid = s.customerid WHERE c.Name = 'Executrain of Atlanta'
SELECT sum(price) FROM receiveorder r JOIN SELECT sum(price) FROM salesorder s JOIN customer c ON c.customerid = r.customerid customer c ON c.customerid = s.customerid WHERE c.Name = 'Executrain of Atlanta' WHERE c.Name = 'Executrain of Atlanta'
11 38
SELECT sum(Amount) FROM Payment p JOIN SalesOrder s ON p.SaleID = s.SaleID JOIN Customer c ON c.CustomerID = s.CustomerID WHERE c.name = 'Executrain of Atlanta'