Event representations

41
1 2 3 4 5 6 7 !" #$ 8 9 % & ’ 10 ( )*#+,$-*,*#+ 11 .)*#+,$-*,-* 12 13 14 ’ 15 16 17 18 (’/ 19 ’ % 20 ! 01#0 21 22 & ’/ ’ 23 ( )-*,0+0,+$ 24 .)-*,0+0, 25 26 27 28 29 30 2 1!1##* 31 1 333 ’1##0 4 53 ’ % 63’/ ’7 8

Transcript of Event representations

������������������ �������������� ��������������������������1

���������������������������������������2

�3

�����������4 � ���������������5

����������������������� �������6 �����������������7

���� �����!�"��#��$�8 �9

%���&� �����' �10 (����)�*#+,$-*,*#+��11 ��.)�*#+,$-*,-�*��12

�13 �14 ��'�15 �16 �17

������������������18 (��'��/��������������19

�������' �����������������%������20 �������!����0�1#0�21

�22 ��������&��������'��/����' �23

(����)�-�*,0+0,��+$�24 ��.)�-�*,0+0,�����25

�26

�27

�28

�29

�30

2 ���1!�1##*31

1 �������������������������3�3�������3�������'����1##0�4��5���3��������������������'�����%�����������6�3������'�/������'��7����������������������8�

2

������������������ �������������� ��������������������������1

��������������������������������������2

�3

���!"�#�������'��/����������'���������'�%����������� ���������������%����9� �%�4

���������������������������� ��'������������:������3������������������3��������������'���/����5

�������%����� '��%�����!��;�!��3����!�<������=��5��'!�������!�7���!�0�!���������>.3����!�6

��'�����������������!����'����3�'�4�/�?"���%!�������������������%�'���/��������%�����������7

�����'��������.�� ����������� �� ��'�? ����"��% �%���%������ �����'���/��������� %�������3��8

��/��������������������������'�����=�����������������������������������������1##����'�� �������9

�����������������������3�������������,/ ���������'������������������������� ��������������@�������10

������������������ ��������11

�12

����������"�$ ����������������'�A��4 �����=����������������%������������� �������' ����13

�������������%�����!�(��'��/����������������<�������������������'���%����'���� ���������14

�����������������������������������33����'����:� ������ ������������������ ������!�����15

���������������������� �����!����������������������!�������� ��������������!�������� ������16

�����!�������������������������� ����� ��������������!����������� ������!�������!�������������� !�17

����������������������������!���'��� �"���������<�����������'��������>'����,��,B������������18

�������� ������!����������������>'����������� �"�������!���'�������������>'�������������������19

������!���������<������ ��������������>'�����>����� ���������������� ������!����������'����20

���������>'����������������������������� !�������� ��������������!�����������������������������!�21

���������� �������� ��#$����������������!���������������������������������������������������������!�22

��'����������� ������%�������23

0

������������������ �������������� ��������������������������1

��������������������������������������2

�3 #%������4

',����C �������� ��������������3����������5��������������� ���D��%���%���D�������'�������� �������5

���������������������5�����%������'���� ����', �����������������3�������'������'���/����������6

�.3������������ ���'����������� �����������������������������������������%�!�������!���'������������7

��3�������'����� ���������������������� ���E���/�������� �'������'�����'���/���!�3�����������'��%����8

'�����������������3����������!�����!���� ����!������'����!���'�3��'����������������� ��������������9

C �����������.3���������������' ���'����������7���������������%�0+1�� /:������������.� ������������10

����������������������'�> ��3������������%��������������������4����3�������'��������������,/���'�11

������ /:������.3������%����������������������������������'��%�>,F�'��%������.3�����'�12

�����'����������/������3��'����'�C ������� ��������� %������������������%���������'��������������13

��� ��C ������� ��������������������'������.3�����'����14

�15

&��'��(��� ? �������� ������=����������!�>����,����'!������,����'!���'��������,16 ����'!��������'��!�����/���������(���!������,��5��%!�>,F�'��%����17

�18 )��*�+���,���(�� >7#1#$!�>7#1#*�#1!�>7#1#-�#1!�>7#1�*!���#-!���#�!���#-!��#0!�<�#1!�=!�19

B#0#�!�B#0#*�20

1

)!��-��+�)-!�1

�����/������������������� ���D����%���D�������'�������� ���������/����������:����� �������2

���3���������'�����%��������������� ���!������.��3�!���������3����'����', ��������������3

��%���D�������'�������� 33�������������%������ �����!����,�����'�������,��5��%!���'�������4

����%�����������������6�������5�������1##�G��������'�4�������HH$8���F��������'���/����5

����%��������������6F����8�3����'������ �'�����%��������%����������������%���'���������%�6

��%���D�������'�������� ������������%������� �� ������� ���'���/�����������������3�.�6�������7

�HH-G���������������H$-8���4��������������/������%���������������������� ��'������������'�8

%��3�������������������� ���'���/�����6�3�������'��������1##08!��?"�����������������'��'���% �%��9

�����3�������%��',����C ���������� ���������� ����%�C ����������?"�����������%��%����5�6��� �������10

1##+G�"������������'��������HH-G�B�����������HH08���'�����'��������������������� ���%�'���������11

���33��3����������� ���'�C ����������/����%����������12

F��������'���/��������%�������������������������?"�C �������� ���������5��/�����/��%�13

����'������������� �����������������������/���6<����!�1##�8�����''�������������'���������������������14

�������� ���/��������������������������������/������'I������� ����/����������������/������� ������'�15

�%���������������� �����3��������C ������������'���/��������%�������������� ������������3��16

C ������3���'���� �������������������/������/����������'���/������<����!� ���������������%���,����17

������ ���������3����'��'��������� ����������'��������������3� ��D�������������������'���/�������18

���������'�����'��������3�������������� �����������C ��������� ������'���������/�������������19

�����3� �,����'��%���!���%�!����>�����,F���������3�6>,F8�'��%����6�����������%��1##08��20

4���� '����������������������,/���'���'������,/���'� ������������'�������������3��'��%�21

�����3� �,����'��%��������3��������������C �������� ���������5��������#���� ��������%���D���22

'������� �'�����%����'�����3��3������������'���������������������������#���� ��������%���D���'����23

��� �'����������'������������'����� �������'��%������24

2

��'������'��%����������������'��������� �������������C �������� ������3��������������1

��3����������7������%��������� ������ ����������%���D�������'�������� ���������3��3���� ��'���4��2

�� '������������ �������C �������� ������3����������)���� ����!������'����!���'�3��'����������3

��� ��������������������������/���� ��'����3������� '����6��%�!�"������������'��������HH-G�B����������4

�HH08�����������'!������' ��'����������� '�!���'��������� ���E��3�����������������,�������������'������5

3����� ������3����������� ������3��������������� ��������������C ��������� ����C �������%������6

���3�.����3������'�������� �����6���'� ��������1###8��7

�#+& �-�!��8

� ���� ��'������'��������/����3���'������3���������%���D�������'�������� �����/����9

' ���%��������'����3�������'����� /��C ���� ���6��/�������D���'�A������HH-8������������ ���10

�� �������/���� ��'������������������'��������������������������� ����� �����������'�����'�������������11

������ ������'�� ��� ��'������'�������,���'�'������������3���������������/����������6�����3� �!�12

�%���!����3������8���<������!�������'����������������3���������3�������������������3�������'������13

���/�������'���J'������'�GJ��������������� '����������'��������/� ����������������������'����14

4�� ������������ ����� ����������/���'������������'���������3����������������'�����'�/���������15

�����3���������������'�'��16

����%���������%��3�������'�/��4��'���'�4�/���61##18!������������#�� �������������'�������17

���������� ������'�� ��� ��'������'�������,���'�'������6��%�!���/ ��������33�������8�������>,F�18

��'��6B�����H�-8!������.��3�!��������/����������������� ��'������3� �,��'���%�%��������19

��� ���%����'������C ���������6��������'�������1##1G����5����D���'�����������HH18�������������#20

�� ���������� �����������3� �,��'���%�%������������3������������,���'�'����������>,F�21

'��%���!������.��3�!�����������3� �,��'���%�����3������� ��������>,F�%������������3�����������22

'������C �����������������,���'�'�������23

����������>,F�'��%��������������������3�����������'������C ������������������������,���'�24

3

'������6��������������HH*G�A�����H�$8�������>,F�'��%����3��' ��'����������,���'�'���������1

'��������'!������������3���!�/�����������3� �,��'���%������'���3���'���������������� �����2

���� �3������/���������C ������������3�����%���'������'���%����5!���� '��%�3����' ��������3

�'��������%�3������������/����'��'���'�������33��%��'�������'�3��������������'������'���%�4

%������E�������� �������5

4��'�������������������3�����������3� �,��'���%������'����������������� �����������%��6

��'�������'�����3������6������8!�������%�����'���/������������3���������������6�����������HH*G��������7

�������H$-8������������'���� ����������������'������������'����� �������'��%����!�������%�����8

'���/������������3�������������������������J���������������J�6��B�������H$18����������3������9

�����3� �,��'���%������'������ ���D������>,F�%�������������'����������������������������%����10

������J����������/��'����������'�������'J�6B�����H�-!�3���#8G��������!�>,F�'��%�����3��' ��'�11

���%������������3�����C ����'���������������%��������������3����������'���� ���������������������12

���#���� ��#!� ��������7������������������������������������������%�����������,���'�'������������%�13

������������3����� ��������������������������#���� ��#!� ��������7������������������������������14

����������������'����������������������������������'�����%���15

B����'��!������.��3�!������3���������� ���5��3�����5����/ �'��%�5��������������/����16

����%��'����������3��������>����5�������/������%��'������3����� �����3�������'��������3�����17

����/������%��'�� ��3��5������4���������3����������%������'����5��!���������� ���'���'�����18

� /��C �����/������%��'������'�����������3�������������,/���'�>,F������'��� '��'�������JA��J�19

��'�J>�3����J������������!���3��������%���������%���������5���������3���������������������3�20

6��% �����8����������,/���'�>,F������'��� '��''���������'�����������������!�J���%��A��J���'�21

JF�� ���A��!J���'���3������������������������6��% ����/8��22

����'�����������/�������������������3�����������3� �,��'���%������'�����������'����23

������'��������������%������ �'��������� ����%������/���� ��'��������������������������.������%�24

4

����� �����������������������������������3�������������6��%�!����������'���B������1##1G�4��'����1

����HHH8���'�3����'�����/���������'�������������%������,/���'���'������,/���'�>,F�'��%���������2

�����%��'���������������������� ���� ��'������3����������,���'�3�����������3

4

����%������������ ��'�������������������������'���%���� '�����������3�������5

�� %���������3��'��%����������,�����������'����������� %���������3��'��%���������/ ������6

����������3��������>,F�%��������������������������%����'�����'����������������� ����������3��3�������7

�����3�������������64��'���'�4�/����HH*8������������3�����������������%��D�'���������������%���G�8

������������������������������'�����'������������%�������5����������6�HHH8!����'��6�H$#8!������9

6�H$�8!���'����/�����6�H*�8�'����������%����'�������� �������!������%�/�������������.��������10

6���'��%��'������8���'�3��3��������������,��&��������%���������!�����/���'�������'!���'�����11

3��3����������������!����������������������%���������!�����/���'�������'!���'�����3��3�������������������12

�����%����3���3��������������� ���������%��A�����'�F�� ���A��������33��3���������3�������'����13

���������������>,F�'��%�����14

7����������!�� �%�@��6�H��8������%����'�����������������������������%��3���'�/��4��'�15

KEY EMPLOYEE

KEY ASSIGN KEY

RETURN KEY

EMPLOYEE

A. State-Based E-R Diagram

B. Event-Based E-R Diagram

Figure 1: E-R Diagrams for Tracking Building Key Assignments

5

��'�4�/���6�HH*8�'��������������������J����%��������������������%J�63��1�#8���'����� '�������������1

�����������%���������� ������J������3�������'J��������>,F�'������'���%�%�������63��1��8������5��2

����%�!�������������.��������6���'��%��������������� ���8���'�3��3������!�������������������������3

�����3��3�������6� ����,2�������'�4�/����HHHG�4��'��������HHH8���'�����%����� �����������%��4

�.3������3��� '�����'���%��������� ���������%��A�����'�F�� ���A���������������������>,F�5

'��%��������/������/� ���33��3�����������%���� �'��3�����%�����������3� ����'���%����������6

���'�'���/���������3��'�����%�� ����3�����������6���������'�4��'�����������%8������%������7

���'�������������������3��'����3��������������C �������� ���������� ���������������� ������8

3������%����'�� ������%�������3��������%��9

< �����������������������3�����������3��������%����������< ������������������������'�10

3�����.3������������3������%�������'�3������%�����'��������������� �����������������������'�11

�����3���6� ���%�1##1G���/��%��HH$G�� ���%��H$08�����������!������������� �'����������12

��������������5��%�6F�/��������'�<��3���H$-8���'����������3����������������� ������6F��������'�13

��������HHHG�=�������HH$8������������3�����3��3������������� ���������,��5��%�6�����H$*8���14

� ���������!�� ����� �����������������I������3��������%����3������������3����� ������������/��15

��'������������� ���������6 ����HH#8��16

������ ����������������3��������%����3�����������'��������������������3�����3�������17

��������'���������%�C �������� ������3���������������������������/���������'���'��������18

�������������������������� ������������� ���������'���'�����%���D��������7������/����% �'������ ���%�19

��������������3�������/��������%����'�������������� ����������� ���������'���'��� �����/�% ���������20

������'����'�'���������������� �'������'��%���'�3�����������6� ����,2�������'�4�/����HHHG�21

4��'���'�4�/����HH*8������������/��������������3��3������%���D���������'�������������������%�����22

�����������3� ��D���������'���!�����!���������'�����������/���.�����������3��3����������/��������������23

B������������3��3�������3� ��D������������/���%�J������������/�����%!J�����!������%��.����������'�24

6

3��3������!�����������������������������'����������������� �������������������� �������!������������1

3��3���'�/��B����6�H�-8!�����33��3���������2

7������������������������������������������������� '��'�� ��������%���D������3

���3���������������������.��������������%�����%��6��%�!�=���������'�4��'�1###8���<������!�����4

� ���������������������3��������33�����C �����������������%���D���������� ����������5

��������������'������.3������������������6"�5�����H$�8����� �!�����.3�������������%���D������6

���3��������������������������� �����������'��%�����%���D�'��/����������������'������6� ������>,F�7

'��%����8�����������������������,/���'���������,/���'���B����C �����������:��� �������������������,8

/���'�'������'����%�%�������� �����������������3������������������ '���� �������3����'�9

�'������'��%������'���/������'�������������3����'�C �������� ������3������������10

��)-������#�+.�11

=�������3��������������������������%���'���������������������3� ����'��%������'���12

6%����������'�����3��8����'�����������3������'���/�������������������� '��%�'���%�!����'�����!�13

�'������'��%!���'� ������3��/��,�����%���'�C �������� ������6��%�!��������������HH#G�2���������14

�H$H8����3��������!�B����������6�HH08��� '��'�����������������/�����������������C ����3�������������15

������� �'������� /:�����3�������'���%����������/����������',����C �������� �����������16

����������%��������'���/����������������3� �������������������%���������17

A�����'�������6�HH*8��� '��'�������������������������3� �,��'���%�%�������!�>,F���'�18

�7��6<�3���1##�G�4�/�����'�K���%��HH�8!����'������'���%���'����'���������5����������� �'�19

������������� ���%�����>,F�%�������3��' ��'���'��������������������� ������������������ ���%�20

�����7��%���������������� �'������%���������3�����������'�����������/�����������%���� ���%�21

��'����.3�����'��������>,F�%���������'�����%���� ���%���'����.3�����'���������7��%�������22

�������'���������5��������>,F���'��7����'��� ��'����������� '��������������,/���'������������23

/������.3������������������5������%������������ ��G������ ����E� �'������'��%������'������'��24

7

'��%����6�����3� �,��'���%�����3�8���'��������,���'�'�����������3�������������������%����������1

�������'�/�����������%������ �'�������������������3� �,��'���%����� ������3��' ������������/��2

���������3� �,��'���%���������������.3�����������3

��������'�(������6�HHH8��� '����', ����3��������������'����3��%������3� �,��'���%�4

����3�����'�������3��'��%��%���,��'���%�����3��!����3����%�����>,F������3� �,��'���%�5

%���������'�����/:���,�������'�'��%����6 �8������3� �,��'���%�%�������������������������'�6

�����������3��'��%��%��������%��������6�����������'��/:���,�������'���.��6 �8!����3�������8���7

��������� '��������������3� �,��'���%�%�������6>,F���� �8���� ������� 3��������'���%�8

3�������������������3���'�������%���,��'���%�%�������6������������ �8���=��������������9

���� ��'�/��������� ��������������'��3��' ��'� ���%���%�����%���������������������3������'�10

������ ����6��%�!���������I������!������/ ���!���'�����������3�8����� �����������3 ��'���������%���'�11

3�������%������������������ ���'������������������������� ��������� /:���E���� �����������3���'����12

����.3���E���� �������4�� ������������������������� ����������� ��������3���'��?"�C �������13

������������!�������������������� '��'�'�������������� ����3������������������� �����������14

�����������%�����'������������3� ����'���%������'������'����������61##�8���'����������'�15

4��'�61##*8��� '�������3������3��3����������� �����������3� ����'���%���B����3� �,��'���%�16

�����'�����������%����� �%�E�������%��3��� '������ �������3������3��3��������������� �/������17

�������� ��'������3� ����'���%������'�������������������� '������ �'����������3��/���18

�����%����5�!�3��� '��%��3������3��3���������� ��������%����������/������3���������������������%�19

�������������������61##+8��� '��'������3������3��3����������� ���������������.�����C ����20

���� ������3�������������������� �'������������'����������3�.���'��!�3��� '��%��3������21

3��3���������� ��������%����������������3���������������������%�������22

4������������ '����������������������%������ �'����������C �������� ������3�������������23

<������!��������������� '���%�����������������3������3��3������������ '�����������������'�����������24

8

������������%����'����������������������������� ����1

����#�+.�$��.-�-*- /�2

��������$ ����3

�������������'��6��% ���18�����'�3��'������B����������6�HH08���7���������������C ����4

3����������������� ����'�/�������������������������'������'����'����� ������B����������6�HH08��� '��5

�����/�������������������'������'������������ '�����������%������ �'����������3������������6

�� '�������������%������ �'������)������,/���'!������,/���'!���'�����.�������������������������7

��������,/���'���4�� ������������'����3�������'�������������3� ������6>,F8�'��%����������8

������3��'��%��%��������6��������8�'������'�����>����3�������3����������.3��������������������9

4���� '��C �������� ������3����������� ���%������%�����������������������C �����6C ����10

��C ��������8�������� /:������������������������������� '��'���%��3����!��������%!��.3�������!�������11

4���''�����'�������������� ��������������������/�����'��������%���%�� /:��������������������12

����������0����%��1�����������������$ ������13

�����������/������� ���C ����3����������)���� ����!������'����!���'�3��'����������14

��� ���������� %����� ���'� ���%�'��������������!����������������������������� ��'���������'����15

�� ����'������%���������������C ���������=������� '������������ ���'���� ���%�� /:�������������������16

6�������5�������1##�G�B�����������HH08���'��/:�������������������6��%�!���������'�(�������HHHG�A���17

��'��������HH*8���4�� �������/:�����������������!������������������!�'�����'�������������������C ���'�18

Performance Query performance

• accuracy • confidence • prediction

Data Model Characteristics

Abstraction Level • conceptual • logical

Ontological Foundation • state-based • event-based • artifact-based

User Characteristics

Demographics Training Experience Etc.

Figure 2. The Research Model

9

�������������������� '�'������� /:���E��C ����������������� �/�������������������������C ���'����1

��������������� ���'�C ����6����33��'�.�8��������3������� '�������������'�'�3��'���������/�!�2

���� ����!�������,��3����'���'����� ��'� ���%�������,3�����"�5������������3

��������'�'�3��'���������/�!���� ���������������!���������/�����.�����'��.������������3�����4

�� '�������C �������� ��������7��'���������������� ����@����,��3����'������'��������������� �����5

�����C ����3��'����������C ���@����� �������4 ���� ��'�����% �����%�/����������������'�������'� �'���6

�����'����!������3������� ���@���/�� ���3�����������������,�������������� ��������� ��������3�������7

/��� ��� ����������.��/�����%����3�����������������,������������������� �������'������������8

C ������3��' ������������'�'���� �����'�����������'������������'��%�!����������������5������9

�������������������C ������� ������'�������,��5��%���'�����������%��������5������� %������10

���������������������'���������'�������������������������� �'��������'����!������������/��'����������11

����������������� ��������%���D����������������������� ������12

=��'������������� ������������ ��'� ���%������=��'������������L�����3����'�������������13

���������=��/�/�����������69������HH#8�������� �������3��'������������������ � ��������������14

'�������� �������/����4��'����3�'���������� ���������3�����������3��/���� ���%�����������,15

/���'����� �����������3�����������������,��������������3��������!������� /:������.3��������������16

�����'��������������3��'������!��������������/������������'�������'���� ������������/����� ���'���17

�����=��'�������������'��������� ��������������������������������3��'����������������/� �'�'�/��18

D������'����!������D������'������%�3�������3��'������G�������� ���������'�����/�'����33��'�.����19

��������.�������20

4����������������3������������ ��3�����'��� ���������� ������%�������3��������%��������21

���� ���������������� '�E����3�����������8�< �������������3���������������3����������3��������%�22

��'�������%������������''���������������3����������3��������%���'�������%���������18� ����������23

3������������������ �������5������������������������������������������������������� %��24

10

�����I���������������,��5��%���08����3�������C ����'���������������������������'�����1

���� ��������!����������������������������3�5�����������B��:��� ���%�����������,��5��%�2

���3����������������5�'������'���' �������������������'���/���!������3������D������� ��������3

3�������/���������C �������� ����������� ���%������3� ����'��%����'������'���������.3������4

��3�������������������������������� ���%������3� ����'��%����'������'����������� ���������%��5

��'����������������4������%��D���������������%�������3�������������������'���� �'������'��%�'���/����6

��������G��������!�����������%���C �!�����.3�������������'��������3���������������������������'����7

��/������ �'������'��%��������'���/���!����������/��������������/������C ����3�����������8

6��� ����!������'����!���'�3��'������8�������'��%�!����������� ����3����������������)�9

.2�3��������4(�7�'���' ��� ���%������,/���'���'���������� ����C ��������������������10

��� �����6������������������8�����������'���' ��� ���%������,/���'���'����11

.5�3���������4(��7�'���' ��� ���%������,/���'���'�������.3�������%���������'�������������12

��'���' ��� ���%������,/���'���'��'�13

.6�3���������4(��7�'���' ��� ���%������,/���'���'�������.3����������'����������/������14

3��'������������ ��������������C ��������������� /:����� ���%������,/���'���'����15

������������������ ��� ��'����C ����3������������� '����������������� /:��������5����16

���3������'���' ��C ������6B�����������HH08����3����!��.3���������������������������'��������17

��������������������,/���'����� �����������������'���<������!����� ���.3��������� /:����������18

����'�����3��'����� ����������������������'�����'��������.3������������%������������.���,���'���19

�������5�����%�����!���'�/��� ���� ���.3��������������'�����'���'���������%�������������20

���3����������������5!�����.3����'��������������������������/��������%�����3��' �����%���������21

��� ���������'��%�!����'���������������3������D���/� ��������22

)�����������0����%�������+��������23

��� ������'������% ���1�������'�3��'���������/��������������%������ �'�������������24

11

�����3� ����'���%������'� ��'����3��' �������'������'�!������,/���'!������,/���'!������������,1

/���'������� ���� /:������ ��� �'������'����������������������'���/������������������%����2

��� �� ���/���������������� ������ ������ �����?"�C �����!������������������� '���/����3

�/��������������������������3� ����������.3�����'� ���%�>,F�'��%�������������%�����������4

�.3�����'� ���%� ����������������������������'�����������!����>,F�'��%������'�����������3��'��%�5

����������3���������D��������������������������'�3��'���������/���6

����%�����,���'�'��������� ��'����������� '�M��������I���������/ �������3������������7

���3��������'������ 33����6����33��'�.�B8�������3�����������'�'�����/�����'������8

����� 33���E���3����������������!�������������'���������3 �3��������.3������������ ���������� �!�9

�����.3���������������%����'������%��'�%����������������������3�����������'����� /:�����������5�'����10

C ����������>,F�'��%�����6�����3� �,��'���%�����3��8���������������������.3������������11

����������� ��� �'��%������/ �������'������������������3��'��%� ����������6�%���,��'���%�12

����3��8�����/ ������������������������'���/������3��'�'����������������� 33���@���3���������13

�������6����33��'�.��8��14

����'���������������%��������������������'�������������%�������� ��%�������������������15

'��� ���'��/���!���������������%����3�����������������������������'�����%������ ���������������16

�����/����������'���������'�3��3�������6������HHHG�������H$�G����'���H$#G����/������H*�8���17

�������������������%����3�����������������������������������%������������������������%����'����18

� ��!�������������3��3�������64��'���'�4�/����HH*G�� �%���H��8��19

4�������������%�� �'�����%����������3� ����'���%������'�����������%����'��������20

�������!�/���������33��3���������3�������'� ���%���������������� ������7�����>,F������3� �,21

��'���%�%������!��������������� �������33��3������� ��'������3���������������������������%����7�!�22

�������!����������%�� �'�����%����������3� ����'���%������'�3�������������������������%�23

3��3������!��������������� ����������/�� ��'������3���������������24

12

����'���������� �'�������'������������������%����3���3������!�����������������������1

'����3�')������,/���'!������,/���'!���'���������,/���'�6��% ����0,*!����3����������'�33��'�.��8���2

�������#���� �������������������������������%����3�������������'������3��3�������������������3

����'��%�!�����������������������������>,F�'��%������3��������������%���>������������3�������'�/��4

����%������������ �����������/ ������'�����������3����7���'����3���������������������������'�������5

'������'���%������'��3�������'������������������������� ���� ��6��%�!�<������������1##18���'�6

���������6��%�!�F����������'�F�������HH+G���������������H$-8���7��'�3������������������'�����������7

����3�����3������� �%�E�������%��/��� �����������3������3��3�������6��'����������1##�8!�����������8

��� ������ ��� ����������'���/������<������!������ �������� '����� '����������3���'������9

��'���!�������%���������� %��� ��� �����������'!�����'���/�������������������10

11

�����>,F�'��%�������3����'�����������#���� ������������������ 33���@�����������'���/����12

�����������3��'��'�������������633��'�.��8����������!������������������������'��%���!������������13

��������������� ������������������������������>��������������3��������'��%����������������3��'��%�14

3�������5��I�����%��5���3������������ ���������6����!����������(����� ������������/������������������15

�����������(����� ���������������'���/�8���B��������!���3�������5��I�����%��5���3�������������16

Figure 3. State-Based E-R Diagram

13

��������������������3��'��%�����������3���������'��%�����1

��������������������3�������/��� �������>,F�'��%���������'��������33��%������������� ��2

������������������� 33����'���/������7����������������,��%�������%��C ����������������33��%�� ���3

3������/�'����������� ����%���������D�'����������'���/������������>,F�'��%���������%�����4

/����������������3��6B����%��������HH+8��5

���������'������������������#���� ���7���>,F�'��%������������������% ���+���7�����������������6

�����%����3������������������������%����'�������� ����������<����!�����%����'������������/����7

��3�������'� ���%������������������ �����7���'����3������������������������'������'���%������'��8

3�������'�������� ����%���������������������� ���� �1�6<���'����������HHHG��������������HH08�9

��'����������6���������'���B������1##1G���B�������H$18�������������������,/���'����������!�����10

�����,/���'�>,F�'��%�������3����'�������������#���� ������������������ 33���E��'���/������7��������11

����������,��,������33��%�/������������������'������������'�/�����������������3����'�3�������12

5��I�����%��5���3�����633��'�.��8��13

The event-based treatment is important because it is the extreme representation of events. The 14

sales/collection process at TechSupport has one event that receives an order, one event that confirms the 15

sale, one that reserves a hotel, one that orders flight tickets, one that reserves a car, one that verifies 16

courseware, one that receives flight tickets, one that sends an invoice, and one that sends an expense 17

report (see Appendix C). Each of these events is represented as an entity. ReceiveOrder corresponds to 18

the entity SaleOrder in the state-based representation. Both are identified by the attribute SaleID. 19

However, while SaleOrder contains all attributes that are functionally dependent on SaleID, ReceiveOrder 20

only contains attributes that are relevant to that event (see Appendix D). 21

�����''����������������������������,/���'���'�����������'����,��,�������F������ �'��G�22

���������������������������'��������!����7����>�������������/ ������'�����������3����������������������23

2 �����'��%����'�����������������'���������������������������F>��������3������������3�������������������J%���,��5�J�' ��������������������D������������3������%�����������������

14

�������3���������������(�����B� �������!������.��3�!��������������/ ���!�B� �������<��'�'�6����1

������ ���������������'�'MN������������� 33���O����N�������������O8���'�B� �������(������'�2

6����'���������� �������������������'���������������'8���'�������������3������������3�����������!�3

��'������%������������'������������ ���������������'����������� �������4

�5

6

�7

�8

4������������������� ��������� ���'������������%����3����������������C ��������������������9

���5��� '��5�����'���������.3�����������'���������'������������������<������!�����'����3�����10

��������������������������������'�����.3�����������������������������'�'��������� 33���E���.�����%�11

'���/���������������������������3�������/��� ���������� '���.����������������������������'�3��'����12

�����/�����C �������� ���������������C ��������������������������'��%�!����������������� ���13

'��������������������������'���������������������������'������ ��/���%������ �'�'�/������14

��3��������������� �������'������������������<�������������������,/���'�����������6��% ���+8�����15

Figure 4. Event-Based E-R Diagram

15

���������������������!�������������������������������'����������������3��'��%�/ �������������������1

���3���'!����������,/���'�����������6��% ���08�������������������������������!����������������������2

���������'����������������3��'��%�/ ����������������������3���'��3

���������,/���'�������������%���D������������������ �'�����%�!���������������,/���'�4

������������%���D������������������ �'���������������'������������������/������������ ������%����5

�����/ ������'�������������%��������������������������������3�����������'��%�����������3����������6

����������������������� '�����������3�������C ������� ��������'���7���������������������������� ��7

���� ������%������/ ������� �'���������������������� �������% ��������������������������%�������������8

6N=������O�����NF������=������O8P�������3�������������C ������!����'����3�'�������'����������!�9

�������������������#���� ���7����������,/���'���������������������������������������'��%������������'�10

����������%�G��������!������������,/���'���������������������������%����� �'������������/ ��������11

� �����'�������%���D���������������'�'�� ������6���������8� ��'���������'�'�����/� ��������0�������12

3��������������� /:�����3�������'��������������������������3� �� �'������'�������������������������13

/����������������,/���'�������������'������,/���'����������������% ������������ �� ��������14

���/�����������/�����15

����>,F�'��%��������������������,/���'�������������������������% ���*���7��������16

������3��'��%������#���� ����������633��'�.��8���7����3� ���������������3����������������� ����%�17

�����������������'�����������6��������'�'�� �����8��� �%���D��������������������� ����������������%����18

����/�������'�3��������������/������������ ������������������������3������������������/ �������19

3����������20

4���������������������������� ���'���������'�'�����/� ��������!����'���������������������,21

/���'�����������������������3�������������������!����������%���������������'�� ����,��� ��'���22

>����������������'���������'�� ������ ��'����������%���D��������'�'�������3�����������������������23

3 ������������������ '�����/�������'���'�J����%�J����� �%�E�������%��64��'���'�4�/��!�1##18�

16

���������/�����3���'�������������������������'!�������������������������3��'��%�'�� ��������'�1

��%���D����������������'���������������������������'�� �������7������!����������������������������2

������������'�������������3��'�������������!�B� �������!�������3��'��%��������������(������3

B� ����������7��������������������������������3��'�������/���'����������=�3�����5�������3��'�����4

�������/�����������B����������!����'�7������!���'����'�>.3�����F�3���G�F�����������������3��'��5

����������/�����������F�������<������'�F�������B��G����5���������3��'������������/�����������6

�'������5������'�F����������5������7������������''��%�� �'�/����������������,/���'���'������,7

/���'��������������������3����������3�.������'����������3�����������������������8

�9

10

Figure 5. Artifact-Based E-R Diagram 11

�12

�����������������13

� ����,�������/������,� /:������.3���������������' ���'�����������%�����������������������14

��'�3��'���������/��6�����%������ �'�����8��������'�3��'���������/��6C ����3����������8���15

17

���� ��������.3����������C ������ /:�����������'���'������3�������>,F�'��%���!�����3����������������1

�������������������������������%�/������������ /:������������%����������������������'����������'��%�!�����2

���������������������������'�����������������%����� /:���������������!��������'���'�'����������3

� /:����3������ '�/��'�����������������'����������' ��������/��5%�� �'�������' �������4

�5�����'������� /:����@�3��,�.3���������������%� �' ��������'����������������5

�������������������������!��������� ��������������� ���'�������' ��������.3����������������6

7������������������� ���������/ ��� ���%������/�����������<��"!��������������=�%��!���'�7

2�������3�����3������ '���������%�0-�� /:������������' ���'������������������ �������'�8

�������������������'��3�����������' ����%������.3���������9

� /:�������������� ���'��������������������������3��%����������.� ���������������������10

���������'�> ��3����'����'��������%��'������������������ /:����������������������'�������11

�����' ������'���/��������%�������� ���!����������� ��������������'���/��������%������������12

3����C ��������B� �����.���,���'�������%���������3������3��������'�0+1�� /:�����3��' ��'� ���/��13

��� �����7������.���� ����!�� /:�����'������'��������33��.�������%�!��������/��5%�� �'!�%��'��!�14

���'�������:��!�������������������'��%�>,F�'��%����!���'����������������������%��?"�C ��������15

������������������ /:��������%�����������'���������������/���������������������%�� 3�����������16

���������� ������������������ ����#!� ���������'��������������� ")�*����������������'���'����17

����������������� ����������'�� /�������������������6��������������������������#�*-8������������18

���'��%�>,F�'��%���������������'�������������������'�@�������������19

�� /:����� ��'��������������� �������7��3����'�������.� ��'�����3����������������� 33����20

/ ����������������633��'�.�B8!����>,F�'��%������'� ���������������3��'��%�����������������!���21

3����������� �����?"�C ��������'��.�� ���������%������������ ��������!���3������������������ ������22

������C ������������.�� ��'�6��������������%�����������������������������C �����8!�����3�������������23

��� '����������������/� �����������3� �,��'���%�%������� ��'���������� '�������������3����24

18

�?"������.!���'������������������������C �����������'�����������.3������������5�633��'�.�>8��1

������������������C ����������'����3�'�������������������������������������������������2

��� %��������3����/����������������������������C �����������C ������ /:�������������������������3

���� ��������������3�.�C ���������� /:��������������������������6��%�!�/����C ����%��''�������4

:����8!�����������3���'������� �������������������'����� ��������������������������������5

3�������'�����������.3��������'���/��������%�����!���������� ����������'������������%�����'���/����6

����%��������.�/��5���������� �������������5�'����� /:������������������������ '���������7

�'�����%�������� /:����������������������������/ �'��%�C ����������������������������������C �������8

�����������������������'�����%������������������������C ������>.��3��������������C ���������������9

�����������������������33��'�.�>��10

� /:����������%����������F"����������� '����'�������������'����'���5�'�������� �������11

�?"�C ����������������������������������C �����������������'�3��������������������%���������� '�12

���3��������5���'��������%��������������������������������'�������������������� '����������>,F�13

'��%�����33��3�������������������������!�%��/��5����������.� ��'�����3����!��.�� ��������C �����!���'�14

�������3������?"������.���4����� /:��������5�'���������������������������������>,F�'��%���!������15

�����3�������'�����������%����'�����3��������������������������3��'��%���������������!���� '��%���16

'�����3������������'������'���������������������/ ����6����33��'�.��8���4����� /:������������������'�17

������������?"�C �����33��3�������� ���'������������������C �����������'�����'������������'��������18

������� ����������������������������������������������C ��������'�������3��'��%������'�����19

����������������������'������ ������'������������ /:������� '����������������'���������3������������20

����� �������'��� '�����%��/��������C ������������ /�����'���'������������'��������������� �����21

���������C �������22

�����������������/��%�� /:���������.3��������'���/���!��.�� ���������C �����!������������ ���23

��'���������������������'���,�.�� ���������C �����������3���������=������� '������������ �����24

19

������ ����%��?"�C ����������� ������������������/��������������%������������3�������������� ����1

��%�������3�����������C ���'��������������� ���D��'�������� ���������������������'����'����� ���%�2

�������� /:��������������.�����'�����'���������'���' ����/�������������� ����%�� ��,��/��3

C ��������'����C �����������'���C ����/���'����������� ����/�����'���������������������3���4

����*���5

����������������������6� (8�����������%�����������������' ���'�6��/���8���7���''������6

��� ���%��������������������3��'�����!�� /:����E����,��3����'�������������������'��%�>,F�'��%�����7

���� ��'��������'���������������������������'�'�������'����������%�����������������������������C ����8

��� �����6<�8���7������!����������3�������%�����������������������'�������'�6��������������������8�9

���%������������$��3����������$$�3������������������������������� �����!�������� ��������'����10

�����������������������������'����� ������.3�����'���%��'��%�������� ��������������C ������6<18�������11

�����%�������'��������%�'����������0�H#����+�#1����������,3�������������<������!�������� ���12

��'�����'��������������������'�'����������%�������������������3��'������������� �����6<08��13

Treatment Mean1 ANOVA P-values Pairwise Mean Comparisons

Hypotheses

S E A Treatment Covariate Interaction S-E S-A E-A H1: Accuracy2 0.88 0.88 0.87 0.2592 < 0.0001** 0.1775 H2: Confidence3 4.02 4.01 3.90 0.1296 < 0.0001** 0.1994 H3: Prediction4 0.065 0.058 0.071 0.0076** < 0.0001** 0.0176* 0.0210* 0.6394 0.0041** * significant at alpha = 0.05 ** significant at alpha = 0.01

1S = State Based, E = Event Based, A = Artifact Based 2average across queries, maximum is 1. 3Confidence is measured as a five-point, self-reported Likert variable, averaged across queries. 4Prediction of accuracy is measured using Mean Prediction Score, 0 equals perfect prediction

Table 1. Experimental Results

�����%������#������3�����������������3��'������������� ��������������,/���'�����������14

�.��/���'�����/����������6�#*$8G�������������,/���'������������.��/���'�����������������6�#��8G���'�����15

�����,/���'������������.��/���'���������/������������6�#-*8�������3,�� �����������3�������������16

���3������������%��������������'������������������������%���������'�������������� /:����@�3��'�������17

20

������ �����/����������������,/���'�������������'����������,/���'�����������63Q#�#1�#8���'�1

/����������������,/���'�������������'�������������,/���'�����������63Q#�##+�8���<������!������'��2

������'����������%���������'����������/����������������,/���'�������������'�������������,/���'�3

����������63Q#�-0H+8��4

�5

������������'��%!����������������������/�����������3��'�����������/����'��������������!�6

��������������������'��%�>,F�'��%����!����������%���������6#�#��-8����������'��������������������������7

�����������������'������������������ ����������������������������% ���-���������������������������������8

�����������������������'������ ������������������������'��%�>,F�'��%��������� /:����E�3��'�������9

������ �������7��%�����!����� /:����E���������������'��%�>,F�'��%��������������!����'����������10

3��'������������� �����6����!����������3��'�������������'��������8���11

����� /:������.3������%�����������������������������'��%�>,F�'��%����!�������3��'����������12

��� ���������������6����!����������3��'�������������������%���8����������� /:������.3������%�13

��'�����!���%�!�����������%����������������'��%�>,F�'��%������������������,/���'���'�������������,14

0.00

0.02

0.04

0.06

0.08

0.10

0.12

0.14

0.16

0.18

0.20

0.22

0.24

0.26

Low & Very Low Moderate High Very High

Com fort in reading E-R diagram s

Mea

n P

red

icti

on

Sco

re (

0=p

erfe

ct p

red

icti

on

)

Figure 6: Interaction between comfort in reading E-R diagrams

and treatment on prediction of accuracy

Sta

te

Eve

nt

Arti

fact

21

/���'��������������<������!��������������,/���'����������!�����3��'������������� ����������/� ������1

������������ /:�������'�3��'��������.3�����'���������������'��%�>,F�'��%����� 2

���� ��������%�������������������������������� �'�������3��������1�6�����'����8!����3

���' ���'���3���,��������������������������)��'�'���������������������������������������%�� /:�����4

�3������������������������'������������������������������������/�������%���P�������C �����������5

�.�����'��������������������������������������3��������6��/��18� ���%�'�����������������%�������6

Treatment Mean1 ANOVA P-values Pairwise Mean Comparisons

Post-hoc analysis S E A Treatment Covariate S-E S-A E-A

Total time spent on experiment 86.2 81.1 72.3 0.0185* 0.6314 0.3850 0.0061** 0.0548

Time spent on semantics2 54.0 51.8 46.3 0.0312* 0.8021 0.7429 0.0166* 0.0343*

Time Spent on queries 3 - 7 14.2 10.6 9.8 <0.0001** 0.9073 0.0004** <0.0001** 0.4329

* significant at alpha = 0.05 ** significant at alpha = 0.01

1Measured in minutes, S = State Based, E = Event Based, A = Artifact Based 2Time subjects spent viewing data representation, viewing the field structure of underlying tables,

and reading the textual description of the business process.

Table 2. Analysis of Treatment Effect on Time Spent

������������%�������������������������3�'�������������������������������� /:�����������7

������,������%�3����'��������/������������������'�����������%������3�%�������������� ���������8

'��3���'���<������!��������������������%�� /:������������� �����%�%�'����������'��3���'�3�%����9

������������������3����/��������� /:����������%���������� ������������������� ���!�3�%�,�����������10

������� �����'������������� ������������������'�������������������/������%��''���������'���' ���11

���3���������.3������������5�������/��������������%�����'������������'������!����� /:������%�%�'�12

����3�%������������������������������� �������� ����6��� ����%�������������3�%���������������%�13

��������3�%������%%�'������'���������3�%�,����8���F���%��D��%�'�����������/��������/����������'�14

�.3���������������%�!���������� ��������'����'��33��3�����������������������������3��������15

���' ���'����������� ���������'��/�������������'�������� ��������� ������������'�����������������16

��� ��G�H��3��������������3�%�,��������������������������������������� ����������'��%�!�����17

22

��������3����'������/��1����������������'�/����%�3����'����� ����������������1

������� ��������������/��1���'���������������������������'�����%�����������������������2

������������ /:������3�������3����%������.3��������63Q#�#�$*8�/ ���������������!����������������3

���'��%�>,F�'��%����!�'�'�����63Q#�-0�+8������������%��������3����/��� /:�������������� '������4

��%������������������,/���'�����������6$-�1���� ���8���'�����������������������,/���'�����������6�1�0�5

��� ���8���<������!������������������� ������������������%���������������������/����������������,/���'�6

��'���������,/���'������������63Q#�##-�8���4 ��� ��������%�����'����������� /:������3���������������7

�����������'������������'����%�����%���� �'������'��%���������������������������������������������8

�.3���������������� ��������������3����������������!����� ���'������������� /:�����3����������%�9

����>,F�'��%���!�����������3����������%�������������'�'�����3������������'���������'���/����10

������!���'�����������3����������%�������.� ��'�����3������������� 33���@��/ �������3���������11

����������������� ��������5��%������3!�������%������������%��!�������%�������� ��������C ���!����12

���'��%���������������C �����������5������5��%���� �'������'��%������.!��'������������������������13

6�����C ���'�/�������.3�������������� ����8!�����������3������������������%������������/�������������14

C ������� �������������������������C ��������� ��!����������������'���'����/�����������������'�������15

��'������������ /:�������%�%��%���������,��5��%�3������������16

>.�������������������3�������������������'�����������%��������������������������63Q#�#0�18���17

�������3�������/��������������������'������������%���������'����������/����������������,/���'���'�18

�����,/���'������������63Q#��+1H8���7����'�����������%���������'����������/�����������������3����)������19

��������,/���'����������������%�������������������/���������,/���'�6+-�0���� �������3���'����*+�#�20

��� ���G�3Q#�#�--8���'������,/���'������������6*��$���� ���G�3Q#�#0+08��������!�������� ������21

������3�������C ���������������� %�����������������'���'�����������������C ������'����.� ������22

�����3���������������>,F�'��%�������'�'���/������������������������'���������������������������23

����������3��������'��������/�%�����%���������.3���������������� /:��������/��������������/��24

23

�������������� �����/������/�%�����%�����3���������������.3�����������������'��������������'�/������1

�����������������������C ��������������������������������%���������63R�###�8�������3,�� �����������2

3����������������3�����������%��������������'�����������%���������'����������/����������������,3

/���'���'����������/���'������������6�#�-���� ������'�H�$���� ��!����3�������G�3Q#�+01H8���4

<������!�����������%�����������������������������,/���'�����������6�+�1���� ���G�3Q#�###+���'�5

3R#�###�!����3�������8��6

�)�+���)-!�#!��+-!+*��)-!�7

������� '���� �'������%���������'��������������%������������������3����������6��� ����8���8

�������3�����������'�����������������������/���.�����'�����%%��%���������������������������9

���������������5�����3���,���������������������� ��������� /:����@�C �������������' ���'����������10

���������������5���'���' �����"�5�������%%��%������� ��!�����������������%���������'��������������11

��� ��������������������������������������������������������3���������������������������� ������������12

���� '��������������������������'���������.���!��������������������� ��/������/�������������13

���3����/���.3�������������������� ������������3�.�����������'��%����������������,/���'�14

���������������������3�.�6H���������G��H�����������3�8!����������,/���'����������������������3�.�15

6�����������G�1������������3�8!���'�������������,/���'��������������/������������6�0���������G�10�16

����������3�8���7������/�������������%�������/��������������������,/���'�����������������/������������17

�����������������������'����3�.����/ ���� '���������������������7��� ���� '�!���������������18

��������������/ �������3���������'�����������������������/���%������'�����������������������,��,����19

�������!��� �����/��%���������/����3�������'�/�������%���������������������,/���'�������������20

��� %�����������/�����������������������������'��%�����3��' ��'� ���%���������,/���'�21

�����3� �,��'���%������'!������������� ���������������� ��������3����/������������,/���'�>,F�22

'��%���������C �����3�.�������������������,/���'�>,F�'��%������� '���'����� 3��������� ��������23

C �������� ���������5���������'��������3�.������� �!������������������������3����/��������������24

24

��5����� 33����������3�����������1

7�������',����C �������� ������3������!�� ���������������� '������������������33��%����2

���������������������������C ����������������������'���/�������������<�3�����������������������3

�/��������������������������3����'��'����������������� �'������'��%�������� �'�����%����������������4

'���/��������� %��� ���� '���������������/ �������3������������������� /:������5�����'���������5

����.3�������!���� �����������%��������'���3����������������/ ������@�����I���������3���������7�����6

3����/��6������5��8������� /:�����������/�����������������33������������5�����/� ��������7

����I���������3�����������������.3������������5����� �������������������������������/�������5��8

�������������'���/�������������'�3��'�����������������������"�5���������������������,��5��%�9

���3������!�����������������������%���������������.�������������'�������!�����������!������.�����10

��� %������/����� �'����������3���������� ������%�������3���������6���3��'��H$�8����11

�������3����/���.3�������������������'��%�� 33����������3����������������������������12

��������������C ����� ��'���������� '������������������������������/���/�����'!�� /:������� '����'�13

�����%�%�������������,��5��%���3�/���������������.3������������5���7����������������C ����������14

���'�'����� ��������������� /:������� '��������/�����������������������/����'��� ���������15

����� �����'��%����%���3����� �'�����%����������!����������������������� '�����/���.3����'����16

�����'���������������������� /:��������������3�������'����.������33��%�������������������17

��������������C �����������������������������!������/ ���!���'�����������3��6��/�����'��� ���8����18

����'����'����������633��'�.��8������ �����'��%������%�%�������������,��5��%���3�/���������19

��� %�������3����/��������������'���'������������ ���������������������������C ����!������/�����20

���� /:�������������3�����.������33��%������� ��'������ �'������'��%����������/����21

�'����������'��� �����������3��������� � �������������������.����������3�������������������������22

�',����C ������ �'������'���������������.�,�������������������C ����!��������,�����.��������������23

��C ����!���'��� ������� ��������������������C ������������5��'������ '���� '�� ����������24

25

�'������'��%����/���������'����'������/��������.������33��%���'�'������ �'������'��%����1

4���.�����'������������ �����������3���������� /:����� ��'�������3���������.3���������2

���5����������������������������������'�������������%���������'���������������%������������������4��3

�� '��'�������%�� /:������3�������'���������3�������������.3�������������� ����!����������C ������4

����������'������������5�'�������3�����������5!���'������ �/������������������������'�����%�����5

'���������3�%��������������� ����������������������������3����%�������������������%�����%���!���'����6

'��� ���'�/������<������!��������������������3������������'������%����������������������������7

������� '���� �'������%���������'��������������%������������������3��������1�6�����'����8���8

4��3��'����'���%���������'������������������,/���'�����������/���'����������������%������6�8�9

���� %�������.3�������������������������������'!����3����%�'����'������ /:����E�������� '�10

���3�������������������������������%������������������C ����/�����������������'����3����11

�����'�����������������3�������'�618�������������,/���'�������������� ��'������'��3��� �'������'��%�12

�������'���/����������������� /:������������������������� '���������%���������'�����/�����������13

���������������3��'��������������������14

4��������� �'������%���������'������������������'������.3�����'!�����.�����'�������%�15

� /:��������5�����������������������������'�������������� ����������3���,���������������������3����16

6��/��18���'����������������'����%�6�8�������3������������.3�������!�618�������3����������������!�17

��'�608�������3�������C ���������������� %����������������������,/���'��������������������'�������'�18

/�������������������%�����3�������������������!��������/��������'��������3���������������/������19

��3������������������������������'������������������������������������������������.�����'!�����20

��������,/���'�����������3��' ��'���%����������/������3����������������'�'����������,/���'�21

������������4�����:��� ���������������� �����' �����������������'����3�.����������������,/���'�22

�������������3���'����������������,/���'�������������<������!�������������%��������3����������23

: ���������C ����������������'��������������'�/���������������!����������,/���'���'�������������,/���'�24

26

�����������/������'����� 3������3�����������������3���'�������������,/���'����������!���'�'�'�����1

��'������%����������'���������3�����������������3���'����������������2

���������������������3�������C ���������������� %���������������������%���������������������3

�����!��������������������������:������������������������3����6$+����$$�3������8�����'�'�����'����4

� /:�����%�����%���� �'������'��%������������� ����!����5!���'�'������'��������� %��������3����5

��������������C �������������'!������������������������� �'������'��%������������'!���������������6

�����������������������' ���������������3�������� ����%�C ������������������������3�������'M7

�������'�������������� %�����������������'������������������� %%���������������''����������3�.����8

�.��/���'�/�����������,/���'�������������������������,/���'�������������%���������������������3����9

�������� �'������'��%�������'���/ ������������''�'����3�.������������������� �����/������10

��������������������� ���������!��������� %�����������,/���'������������.��/���'����������11

���3�.���!������ /:��������5�����������������3�����������%�������������� '�!���'������%�����������12

�����%�����������������������������'��%����!������������������������������%���� %������������������13

���3�.���������������������'��%��������'�3��'�������� /:����E�������������������'��%�>,F�'��%����!�14

/ ����'���� ���������������������������'!���������'��%�� %%����������������% ���������������������%�15

��������������3�������/ ������������������������������C �������4�������������������������'������16

�� �������N3������O����N�� �������O��������������'���������/!�����!�N��������3������O����N�������17

�� �������O����������/�����������������3�������������������,��5��%�3������������������������18

������������3��������%����/ �����������������%�����3�������������������'���19

������'����������������������������/ ��'����������5����� 33����������3��������1������ �'�20

����������������������������.3�������������'���������'���������� /:������������.�'���������21

������������������������������'�> ��3��3������3���'���������.3�������!�������%� 3��������22

�/�����������'�������������� /:�����������3��/�/����7�����'!�� /:��������3���'������.3��������23

���� %��������/�����������������������'�3������������������������������ %���������' ��'�����24

27

���������������.3���������������%!��������'����'��������3��/�����'������%����������3�����������1

�����' ���%��������������/�������� %��'�������%��/��������������%����������� ����������� /:����������2

�/��������'��������3������������.3������������������������������������%��������������%������������3

3�����������',����C �������� ����������� %�������/��������������'�� �����/���������������4

��3�������������%���������'�������������,/���'�������������� '�/��� 33����'����������,5

����������'��� '�!���������'��%��� '�����������������%���������/ �������������������/��� ���� ���6

���������������������������������7�������������C �����������������5��������������'�'������������7

�����'�������������������������������������/�M/ ����������������������������������������8

C ��5�����5��%��������3����������������������������������.3��������3�������'��9

<�3��������0�63��'������8������ 33����'������������������ /:�����������3����'������������10

�������������������������'��%�>,F�'��%�������� ���� /:�����������������,/���'�����������11

�.3�����'������'����������/������3��'����'�������� ��������������C �����������'�'�� ���� /:������������12

�����,/���'������������,/���'����������������������'��%������'����������������3���%�/��������5����13

� 33����������3������������'�1���7����%���������������������������������� �'��������������� ��������14

���������'����!��������� '�/�������C ���������������������� 33����������3��������0����' ���������15

�������������������3������� �������%���������'����������3����'���� �������<������!������� /:�����16

'��������������������� �������'������'�������'�����'������������ 3������3��'������������� ����!�17

����������/�����C ����������������������������'����'��������������18

��������'��%��������������������3��������5��.������%����������������/�������� ����19

��%���������'����� �����������3� ��'���/�������������F��������'��������6�HHH8��� �'������20

�� �����������/�������.3�����'�/����'���' ��������������������.3�� ������'������'���%�3�����3���21

�����/����'���' ��������3������.3�� �������� %���������� '���.�����'�'�������������������>,F�22

��'��������3��������%��� �����!����������'��%�������3����� ������������/��� ��!��5������� �������� '�!�23

��������������� ����������������3��������%����3���������� ��� �'��%��� �����������3����� ���24

28

��3��������������'���' �������������'���/�����.3���������1

<������������ '���������������,/���'�>,F�'��%����������'���� �� �������������2

��� ����������%��D�������C �������������������� ���'������������������ ��������� ����������%��D��3

�����C ������������� ���������� ���'��� '���'������%���������: '%���������������'���3��3���4

'��������������� ��������� ���������������� ���%����������� ���6�����3��'������������8!������5

���������������'�'���� �'������'������������������������������ ����/��������������,���'�������%���6

4��� ���������� '����������� ������>,F�'��%�������'�������3��'��%� ���������������%����7

3��������������������3�������������������������� �������������C ��5������ ����C ����������� ��8

����������%���� �������������'����������������'��%������3����� �������3���%������/ �������9

����������������������%�������5������5�����������������������6�����8�'�������� %��'���������%�10

��'�/ ������������%������������������7��� ���������������!�>,F�'��%������������C ����� ��'����11

���� �������������� �� ��������%���D�������'���������', �����6�����������%��1##08����12

7����� '�/��3�����'�� �������������������� /:������.3�������������'��������%���������,/���'�13

�����3� �,��'���%������'�����C ���������������������!�JB������'����3������%������'������14

���'��%�%��3�����'������'�������������%������� �������3�����������3��������%����������'�15

����������PJ������������������������������� �������������������������!�������.3���������������' ���'�16

���%������!������!���'���������,/���'�'������'�������������������%������C ������������ %��������17

3����/�������'�����3������������������ ����������������������,/���'�'������'����'��������,18

/���'�'������'�������������������'������������������!������������5��������������� ����33��������19

������������������%�����'������������'��������'�'������'���������C ����������3���������%�����20

'���������������!������������������'�����'������ ���%��������3� ����'���%������'�������������21

����%����'�������� �������!������%���������������������/ ���!���������������5��������'�'���������22

���������������������������� ���%��������'�����������������%����'��������'�����������!�����23

�����%���������������������/ �����24

29

�������'��%������������������������'����������'����������� �������3�����������3��������%�1

�����������/�������%�'���� %��'������'����������3����D��������M����������������������'������.��2

���C �����%���������� �'�����%����������'���/������� � ����������������� '�����������������3

�����,/���'���'������,/���'�'������'���6%�������!�����3��!���'������'�8����� ����3�����������4

�������������3� �����5��� ���������������������������C ���������'���������������'����'�������5

#+&!-7*�� �$�!���6

4������5�����>���'�������������� ��������������������������%��� �� %%���������������������������7

��������3�3����4�������.3������ ��'��3�%����� '�����=�����B����6"� �����������������������8!�8

���'���>�������6�����������������������8!�2����<������6��������������������8!������<������9

6���%����9� �%�����������8���'�4 �������B������6�����%�������������������8�������������3� �10

'��� �������������������'����3�������������3��:������''�������!��������� ������5���������11

3������3������������1##0����5���3��������������������'�����%����������������%��!���3������12

�������������6����'��7����������������������8!�"����� �3���6���������������/���!�� �������8�13

��'�F������(��5���������67�'���������������8��14

15 ������!+���16

�����!����F����'������!����JB ��9�)��B��� ���%��������������������/��������%����!J�����17 �+�� ��������!�600)08!�� �����1##1!�33��*+,-$��18

�����!���!�<�����!�2���!���'��������!�F��=���N�B��3���������������=�����������/�����������19 F����������'�����>.���'�'�>������F���������3���'��������������������=������������/����20 ����%�!O�B��� �����������������B��600)18!���/� �����HH#!�33���1-,�0H��21

��'���!���!�=���!��!����!���!���'�4�/��!�F��N��� '����� 3������=��3�����B����� ���������'����22 B����3� ����'���%P)�����������'�������>�3�����������!O����������� ������!�������!�6�1)+8!�23 1##�!�33�0$+,+#*��24

�������5!�����!������!�=��"�!�2����!����F�!���'����!����<��A��J����>����������7�����������F�C ����25 �/�% ������'�B����� ���7����%� ��������? ���������3����!O�������� ������ �����!�6018!�26 1##�!�33��0*,*-��27

�����!�=��"�!� @�����!�F���!���'�F��'�!����<��J<��������9� ����'������P���>�3������28 7������%�������������>���������� ����%����B��������'�33�����������������D�����? ����29 =����������!J�,����� ����������-../������������������������������������ �����!������/����1,30 �*!�1##+!�4�����%���!��B!�1##+!�33����,H#��31

30

���'�!������ ������ ��������!�=��������������������=����!�=��������!��2!��H$#��1

������!����<��4 ����!���� ���!����2�!��������!�B��"��2�!���'�=��3��!�<����N��������%� /:����F���2 ��'���%�������!O����������� ������61#)08!��HH*!�33��1�0,10*��3

� �%�!����0��������1����%�������������2��� !��� ���0��������������$����,��������!����F��'��4 = /�����%�B��3���!�������!��!��H����5

� ����,2����!�����'�4�/��!�F��J��'������'��%�F���������3�����������/ �������>�����,6 F���������3����%����!J�,����� ����������-3������������������������������������� �����!�7 B�������!��B!��HHH!�33��1�+,11$���8

B���!�<��B�!�4��!�A��A�!���'���� !�A��"��J����,����/����7��������)�����>���������/����������"�����9 ���? ����=����������!J��� �"�������!�6��)+8!������/����HH0��10

B���!�=��=�����N����>�����,F���������3���'�,�����'���������'�(���!O�������������������11 �������� ������6�)�8!��H�-!�33��H,0-��12

B����%!�F��<��"�!�������!������!���'�������!�(��B��JF�������>�%�������%����F������������/����)�13 >.���������������>>F���'���������F������������/���!J������� ������� ������������!�6�18!�14 �HH+!�33���#�,�+1��15

�����!�>��"�!�B������%���!�2�� �!��'���!����=�!���'�<���'��!����������#������$������� ������1�16 �� ��4��!����������$��������� ���������������������!�� ������� ���7����!�<������'�7"!��HH0��17

���!���!�������!���!�;�������!�(��J�B����3� ����'����������"�%��������%��������3����18 ����/����!J�������� ������ ������6�*8!��HH*!�33��0#*,01���19

���/����!�2��A��0������!�����2�����<�35����=����!���������!���!��H*���20

���!�2��=��N�������������D���������>.3��������������� �������!O������������� ������6�-�8!��H$*!�33��21 H,0*��22

������!����"����'���B�����!�4 ��>��J�� ����%������������������>��������=�����������������23 >.���'�',F>�>����3�����7������������������� ��!J��������������������������������24 ���������� �����!�60)�8!�������1##1!�33���,�-��25

������!�����'�4��'!�9��JB��3�.������'�B���������B����3� ����'���%)�B��3����������26 ���'��������'� 3������=��3������!J������� ������� �������������6*+)����������%8!�1##*��27

���'� �!����"�!�A���!������!���'������!������!�J�����>�� ����������7������ ���%��������� /:�������28 =����������!J������������� �����������60$8!�1###!�33��$�,�#���29

����!�=���'�4�����!�<��2��������� ���������������2��������!�=��������<�!��33�����''��F����!�30 �2!��HH$��31

<����!���9��J�������%�? ����������%�(����)��� ����!J�����5)�$���������6�#8!�1##�!�33��1�#,32 1H+��33

<�3��!������������������ ������� �!����������������1�%������������������������)������������67� �34 � ��8!����%��,A� ������!��������������!�1##���35

<�����!�2���!�=����������������'�����''��!����F���� ����������������������69��� 8:�=��������<�!�36 �33�����''��F����!��2!�1##1��37

<���'��!��!�B������%���!�2�� �!���'������!�>��"�!���������:���������������������:��� �$�������38 �������6-� �� '8!�������,<�I7����!�������!��!��HHH��39

31

2��!�4 ��2�!����'/��'!�����!����'��!�B���!�����3���!�������J����>����������F����������'�>�����,1 F���������3��������'������? ����=��������������>�'������!J��������������������������#2 ������� � ���60�)08!��H$H!�33�1*�,1-���3

A���!�4 �������� �!����!�>���������������"�����'!������,<���'!��H�$��4

A��!�9�������'������!�������NB��3����%��������'���%����������!O�����������������������5 60$)-8!�2 ���HH*!�33���#0,��*��6

"�5���!���!�2����:�%����� ����������������1�2������������!���������������� !���������������7 B����%��=����!�B����%�!�7"!��H$���8

"���������!�F��"����'������!�������J����7�� ������������/������� �� ���F�3�������������������/����9 �������"������%���'����!J�������������������������������� �����!�6�1)+8!��3���%!��HH-!�33��$�,10 1�0��11

���5����D!�(�������'���������!���JF�3��������%�>.���'�'�>�����,F���������3���� �� �������12 F������������/����)����' ���33�����!J��������������������������� �����!�6��)08!�13 ��3���/����HH1!�33��+10,+-+��14

��B�����!�4 ��>�!�����F>���� ����%���'�)�����������������5�������� ����%��������������15 �����'������>����������!J�������� ����%�F�����!�6*�)08!�2 ���H$1!�33�**+,*�$��16

�����������%�!�7���!����� ������;� ��������������� ����!���������+� ��6(���������1�08!�1##0!�17 �����/��������3)II��������'����� '���������5����I!�'�����'�'�3����!�1##+��18

��/��%!�"��J��33��%�>3���'���������!J�$���������$����!��������6H#8!��HH$!�33���#�,��+��19

��!�2��N������%�A����'%�!�B��/�����%�7'������)�B��� �������������������������B � ���O�7��20 ���������!���������!���''����!�����'�>'���'�!���6�'��8!���%��= /��������!����/ ���=��5!�21 B��HH#��22

=������!�2����'�4��'!�9��N>�����3����%�7�����������������������������B���������7�����������23 ��'���%!O��������������������������� ������61*)18!�2 ���1###!�33��11$,1-$��24

=�����!���������������������:�5� ��������:�<�����'������������=����!�B��/��'%�!��!��HH$��25

F�����!�(����'�������!����N>.3������%�B�� ��F���������3�����B����3� ������/����������!O�26 ��������������� �������� � �������6+*8!��HHH!�33��11*,101��27

F�/�����!�2������'�<��3�!�"��N��������������5��%������<� �������=�������O��7��<�������,���������1�28 ���� ��� �<��������=�������� ��!����/��!����F��6�'�8!�=��%���= /������!�����9��5!��9!��H$-��29

F�������!�����'�F�����!����J�������'�����������������,,�F�%��� ����'� ���������,,�����=��������30 ����/��������%�!J��������������������������� �����!�6�H)18!�2 ����HH+!�33���-�,1����31

������!����J� ���%�����/���������<�%��=����������!J������������� ������!�61$)�8!��������HH-!�32 33����0,��*��33

���3��'!�F�����N>�� ���������������/�������=�����3�������������'���'�F�% ���������������34 4��'�O��7������)����������$��!�� 3��!�2��6�'�8!������7��=����!�B��/��'%�!��!��H$���35

��� !�A��"�!�B���!�<��B�!���'�4��!�A��A��J>���������? ����B��3�.������'�"������%����������������36 ? ����=����������������B����3� ����'�"�%��������/����7��������!J��������������������37 �����:����:��� ����������1�,����G�60+)18!�������1##+!�33��1�-,1$1��38

��/�������D!�����'�A����!�<�����J�������'��!J������������� ������!�61$)�8!��������HH-!�33��39 �#*,�#$��40

32

�����!���=����'�(�����!�7��J��>�3������7������%���������>�����,����'���'� /:���, ������'������1 ��'���%)�������3�����"����B����33�����!J�=�����'��%�������������������7������������2 B�������������7������������������!�B�������!��B!������/����1,�*!�HHH!�33��11H,1++��3

����!�2����!������� ���!����������1�)�����:�,����������:��� ������������%��� ����!�����5�IB���4 = /�����%!�=������������!�B!��HHH��5

�3����!�B����'�������!�������J����7�� ��������? ����7�������������%�������������,��5��%�6 =����������!J��� �"��������61�)08!���3���/���1##0!�33��0H�,+10��7

������!����2�!�9��%!���!���'����!�2��=��J�"�%��������%�������'��%������F������������/�����8 ����%�����>.���'�'�>�����,F���������3���'�!O������������� �������6�$)�18!�2 ����H$-!�33��9 �H�,111��10

����!�2��>�����������=�����!�/��'���������������=����!��������������!��H$���11

� ���%!�>����������������� ��������!� .���'������������=����!�����9��5!��9!��H$0��12

� ���%!�>��J>3���'���������)���������'���������!J��������!��������,����������6*08!�1##1!�33���,1*��13

4��'!�9�!�������!�(��B�!���'�4�/��!�F��N�� ����%������������������F���������3�B����� ������14 B����3� ����'���%!O��������������������������� ������61+)+8!������/����HHH!�33��+H+,15 *1$��16

4��'!�9����'�4�/��!�F��N ���������3���� �� ������7������������������!O����������� ��������������17 6*8!��HH*!�33��1#0,100��18

4��'!�9����'�4�/��!�F��JF��������B���������)�7���������������������'�B����3� ����'���%�,,�19 �F��������%��'�!J����������� ������!�������!�6�0)+8������/���1##1!�33��0-0,0�-��20

4�/��!�F����'�K���%!�9��J�� ����%����>�� ����������7�E��������������B����3� ���������21 ���%����!J�,����� ����������3>>3������������������������������������ �����!�����9��5!�22 �����/����HH�!�33��*,$1��23

9����!�2������� ������� ����������(��!�=�������,<�!�>�%����'�B����!��2!��HH#��24

�25 �26

#������8�#"����������+��������+����������27

B����'�����������������C ����� �/�������������������.3������������5�633��'�.�>8)��28

Show the car rental agency, the date the car reservation was made and the last 29 name of the employee who made the car reservation for all car reservations 30 made before 3/4/95. 31 �32

�C �����������������������������������C �����������������,/���'�����������6��% ���08���)�33

select carrentalagency, carreserved, lastname 34 from saleorder s 35 join employee e on e.employeeid=s.reservecaremployeeid 36 where carreserved < '3/4/95' 37

33

�1 �C �������������������������������������33�����/���)�2

select carreserved, lastname 3 from saleorder s 4 join employee e on e.employeeid=s.instructorid 5 where carreserved > '3/4/95' 6 �7

�����C ����������������������������!������������������������������'��������0I+IH*�����/�������������'!�8

����������������������������C ���'������/ ����6�����������%����8�������'!�����:���� �����������������9

�����%��5����� �������������������������������������.3�������������3 ������������ %������10

��� ����������%��������������%���������������������!�����������������'����������33��%������� /:���E��11

�����3� ��D�������������'������������������'������� �����������'������'����'��� ������������12

�����'���'����/������������������� '���13

�� �����������������������������������C ���������� ���'������������������������������C ���'�14

����������������!������������/ ����6���������%����!�����������'!��������8!��������������6�����'��!�15

��3����8!���'�����5����6��3�����'!�������������3�����'8�������C �����'�������'������������������!�16

������������������������������������������*I�����#�����17

�18

�19

#������8��"��+������������$ �������������������20

�����=��'���������������������3����'����������������������=��/�/�����������69������HH#8��������21

3��'������������������ � ��6��������������'�������� �8������/����7����� ����%�/���!������/�������22

� �/������3��'��������������'�!������������������'������'����������������=��/�/����������!������23

3��'�������������������������������������!��� ������� �����������'�'������������������D���������������24

=��'������������!������ �����������/���������3��������������!���'��� �������'�'�������������������25

���D�������������3���������������'���' ��3��'������������������)�26

34

=��'�������������Q�63��'������������'�����L���������������������81�1

7������� �������� '�!���������,3�����"�5��������� ��'���������������'�����������'�'������'��%����2

����������%���/�)�3

� �4

��5

6

�� �!������� /:�����.3�����'���%�������'��������������� ����������C ������'��'�������'�������������7

�������������������������������C ���!�3��'����������������������C ������ '�/����� ���'���������)�8

=��'�������������Q�6#��*�L��81�Q�#�#-1*�9

7����� /:�����.3�����'��������%�������'��������������� ����������C ������'��'�������'������$�����������10

�������������������������������C ���!�3��'����������������������C ������ '�/����� ���'���������)�11

=��'�������������Q�6��L�#�$�*81�Q�#�#�*-�12

�����=��'�������������������3�����������%���������=��'�����������������������C �����13

14

�15

#������8�+(�!�������������������-�����������������������16 ����� 33������������3 �����������%����3���������'��������"�5��B���!��������������3����17

����������� ��������'�������������������������������������������������%����3�����������'���/������ �18 ���/�����5��%��������� ��'���������'������������%�������������������� 33������19

4�������������������� 33������C ����������������������������� ����!�����������3�����'����/��20 ��5��������� ����������������� ��������/��������������E�������������'������������C ����'��������%��21 ������%��������.��3���������3������� ��'������%���D���������������������%��������������22 ����� ����E�����3����'���������3��������� �����23

B������������'�����3������7������A����������>.�� ����������������������C �����%����24 ����� �����������������������,'��������������� �������'����3��%��33��������������(�� ���������25 >.�� �����������������������'�'�������������/��'������'�������������5����'�A�������3�'���������26 6��������� ����������� %��������������������8��� '�/�������/���%�����B���������5�'��������E��27 ����' ����'���'�����'������������������/����'������������ '���5���������������������%����������28 ��������������������������������������������������C ����'��������������B�����3��3���'�����29 3�3�����5����������%�������'�����'���.�'�������A�����������%��'������'���.�'����/��5�����������30 �� ���31

������������������������3���!�����/�%�����5��%��������������������%���������� � �!�32 ���'���6�������������8���3�'����������'�������4�������'������'����������%���������5��33

�������%�� ��##���%�� #��*���'� �� #�*#���� #�1*��������� #�##�

35

�����%������������������E�����������5��!�B�����3���'������'������������������������������1 �� ��������'������'����>.�� �������������������E���������%��������������������.������������� ��'���!�2 B�������'����'������5�'������5��� �����������������%��������3���������������E�����3�6��������'�'�3 ����������������������3�������������� �������3����'���������������� �����8�����'������'���������4 �����5��� ������������������'���������������5������'�����������'�A��������>.�� ��������������������5 �����5��� �������������������������������������� ����B�������'�����������%��������������������'�6 ������������7

>��������%������������������������� %����������������������������'��������'���%����������8 ����������� '�����6��� � �8�����������������������������!�B���������'��������������������3��������9 ����� �������4��������������� ���'�����!����� /�����'������.3�������3��������'���������'�'�����10 ��3�������>.�� ���������������������������/� �����������5��������5�������������������������11 �������%���'��/� �������5�����!�������5��������/ �����.3���������������������3�������/��������12 ����� 33�������' ��������/ ��������13 �14

�15

#������8��"����������������������������8��������������������"�16

����/��������������� ����/�����'�/������/�����3������'���������������?"�����������3���������17

�%������3������������������������������(��� ����/�������'�����'� ���%���������������������������18

�����.��3���������� ����/��B���������������/������������������,/���'��������������'�����'�19

������������ �'�����/����������)�20

BF>�>�(7>4�B�������������21 �>">B��B���������������!�B�����������>�3����7�!����7��22 �F ����� �'��G�23

�24 ���� /:�����������������,/���'���������������������������������� ����/����� ���������!����25

��'�����'�/���!�� /:�����������������,/���'����������������������������������� �'�����/�����������26

���������/������ /:�����������������,/���'������������27

���� �����������������������������������3�������'�'���������������������������!������'���28

�����������������6����7�����������F�C ����0����33��'�.�>8�������'����������'�����/��%������29

3�������������)����������������%����!�����'�����������������������'!���'�������3�����������'��30

����������������6� �/�����'�����8������������3�������'�����������������������������31

�32

36

State-Based Treatment Event-Based Treatment Artifact-Based Treatment SaleOrder (table) CarRentalAgency CarReserved ReserveCarEmployeeID Employee (table) EmployeeID LastName

ReserveCar (virtual table) CarRentalAgency CarReserved EmployeeID Employee (table) EmployeeID LastName

Reservation (virtual table) CarRentalAgency CarReserved CarReservedEmployeeID Employee (table) EmployeeID LastName

�1

����������%�����������������'���������� �'�����%�'������� �� ���� ��'����������2

������������=�������5�������� �'�����'�����/����'����� ����/��������������3��'�'�����������������3

�����������������������@�������3� �,��'���%�����3��6>,F�'��%���8���>����� /:������'������������4

���������/�����'����� ����/��������3�������'������������������������������'���������'�'�����3������5

�����3�������'����� /:������������������5�'��������������3��'��%���������������>,F�'��%�������6

� ������'�/������������B� ������/��6�����/�����������������8��7

Course Table 202 records CertNoReq Reference to a table not included in this database. CourseID Unique Identifier (Primary Key) Days The number of days it takes to teach the course Name The name of the Course Price Current list price for the course ProductID Reference to the Product table. Identifies the product the course is about VendorCourseNumber Identifier that the Vendor uses for this course VendorID Reference to the Vendor table. Identifies the company who produced the courseware �8 �9 ��%�������0���������%���#�����%������#��������������10 B� ����6B�����F�C!�B� ���7�!�����!�����!�=����!�=��' ��7�!�(��'��B� ���� �/��!�(��'��7�8�11

��/�!�1#1������'��12 B �������6''�����!�''����1!�B���!�B ������7�!���.!�����!�=����!�=�����3�B������!�F�%���7�!�13

�����!����=������!�K�38���/�!�H+������'��14 >�3�����6''����!�B���!�>�3����7�!����������!�"�������!�=����!������!�����!�K�38��15

��/�!�0#������'��16 <����6''�����!�''����1!�B���!�<���7�!�<�������!�=����!������!�K�38���/�!�$*������'��17 =��������3��6=������������3����!�=��������3�7�8���/�!�0������'��18 =��' ���6��� 37�!�����!�=��' ��7�!�(��'��7�8���/�!�*+������'��19 (��'���6����!�=����!�(��'��7�8���/�!��H������'��20 �21 ��%�������0���������%���#�����%���-���������������� ���������������22 =�������6�� ��!�����!�>�3����7�!�=����3�7�!�=������7�!����7�8���/�!��H�������'��23 ��� �'���6�����5���F������'!���%������!�B��B�����������!�B��F����%����!�B��F������'!�24

B����3�!�B�����������>�3����7�!�B���������������!�B������!�B� ���7�!�25

37

B� ���(������'>�3����7�!�B� �������<��'�'!�B� �������(������'!�B ������7�!�1 >.3����F�3���>�3����7�!�>.3����F�3�������!�<���B�����������!�<���7�!�2 <���F������'!�7���� ����7�!�7������>�3����7�!�7����������!� �'����5��%>�3����7�!�3 �'�����5���>�3����7�!�=����!�F������B��>�3����7�!�F������<���>�3����7�!�4 �������!����7�!����5��� �'���'!����5���F��'>�3����7�8���/�!�-�#������'��5

�6 ��%�������0���������%���#�����%���-���������������� ����������������7 B����������6B���������������!�>�3����7�!����7�8�(��� ����/�!�-�#������'��8 �'�����5����6>�3����7�!����7�!����5��� �'���'8�(��� ����/�!�-�#������'��9 F������ �'���6��%������!�B������!�B� ���7�!�B ������7�!�7���� ����7�!�10

�'����5��%>�3����7�!�=����!��������!����7�8�(��� ����/�!�-�#������'��11 F������=�������6�� ��!�����!�>�3����7�!�=����3�7�!�F������=������7�!����7�8��12

(��� ����/�!��H�������'��13 F���������5����6�����5���F������'!�>�3����7�!����7�8�(��� ����/�!�-�#������'��14 F������B���6B��B�����������!�B��F����%����!����F������'!�B����3�!�>�3����7�!����7�8�15

(��� ����/�!�-�#������'��16 F������<����6>�3����7�!�<���B�����������!�<���7�!�<���F������'!����7�8��17

(��� ����/�!�-�#������'��18 ���'>.3����F�3����6>�3����7�!�>.3����F�3�������!����7�8�(��� ����/�!�-�#������'��19 ���'7�������6��3����7�!�7����������!����7�8�(��� ����/�!�-�#������'��20 (�����B� ��������6B� �������<��'�'!�B� �������(������'!�>�3����7�!����7�8�21

(��� ����/�!�-�#������'��22 �23 ��%�������0���������%���#�����%���-�����������#������� ���������������24 B� ��������6B� �������<��'�'!�B� �������(������'!�>�3����7�!����7�8�(��� ����/�!�-�#������'��25 =�3��4��5�6B�����������>�3����7�!�B���������������!�>.3����F�3���>�3����7�!�26

>.3����F�3�������!�7������>�3����7�!�7����������!����7�8�(��� ����/�!�-�#������'��27 =�������6�� ��!�����!�>�3����7�!�=����3�7�!�=������7�!����7�8���/�!��H�������'��28 F�����������6B��B�����������!�B��F����%����!�B��F������'!�B��F������'>�3����7�!�B����3�!�29

<���B�����������!�<���7�!�<���F������'!�F������<���>�3����7�!����7�8��30 (��� ����/�!�-�#������'��31

���� �'���6��%������!�B������!�B� ���7�!�B ������7�!�7���� ����7�!� �'����5��%>�3����7�!�32 =����!��������!����7�8�(��� ����/�!�-�#������'��33

���5���6�����5���F������'!� �'�����5���>�3����7�!����7�!����5��� �'���'!�34 ���5���F��'>�3����7�8�(��� ����/�!�-�#������'��35

38

#������8��"�)�����������9���������������������������1 1. List the name and telephone number of all customers in the state of Colorado ("CO"). Sort the list alphabetically by name. 2 2. List the Microsoft products for which TechSupport offers courses. Show product name and course name. 3

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 4 reservations made before 3/4/95 5

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 6 and the city in which the particular Holiday Inn is located. 7

5. Show the date on which the courseware for saleID 305 was verified. 8 6. What is the total amount of money received from Executrain of Atlanta? 9

7. What is the total price charged to Executrain of Atlanta for courses? 10 Example Answers: 1. (All Treatments) SELECT Name, Phone FROM Customer WHERE State = 'CO' ORDER BY Name 2. (All Treatments) 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 FROM VerifyCourseware WHERE SaleID = 305

SELECT CoursewareVerified 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'

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'

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 customer c ON c.customerid = r.customerid WHERE c.Name = 'Executrain of Atlanta'

SELECT sum(price) FROM salesorder s JOIN customer c ON c.customerid = s.customerid WHERE c.Name = 'Executrain of Atlanta'

�11