sales table

sales is defined as follows:

create table sales
(stor_id char(4) not null
    references stores(stor_id),
ord_num numeric(6,0) identity,
date datetime not null,
unique nonclustered (ord_num))

Table B-6 lists the contents of sales:

Table B-6: sales table

stor_id

ord_num

date

5023

100002

Oct 31 1995

5023

100003

Nov 6 1995

5023

100007

Dec 1 1996

5023

100009

Dec 12 1996

5023

100010

Feb 15 1997

5023

100018

Mar 18 1997

5023

100020

Mar 21 1997

5023

100022

Jul 27 1994

5023

100025

Mar 21 1997

5023

100026

Mar 21 1997

5023

100027

Mar 21 1997

6380

100028

Dec 13 1994

6380

100029

Feb 17 1995

7066

100001

Oct 12 1996

7066

100012

Oct 27 1995

7066

100021

Aug 5 1996

7067

100008

Jan 2 1997

7067

100024

Jun 13 1995

7131

100006

Nov 16 1996

7131

100011

Dec 20 1995

7131

100019

Sep 8 1996

7896

100005

Aug 14 1996

7896

100017

Feb 14 1997

8042

100004

Jul 13 1996

8042

100013

May 23 1995

8042

100014

Jan 13 1997

8042

100015

Feb 20 1997

8042

100016

Mar 20 1997

8042

100023

Mar 20 1997