Unix Technical Forum

SEO

vBulletin Search Engine Optimization


Go Back   Unix Technical Forum > Database Server Software > Sybase

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-08-2008, 06:17 PM
dufffman@gmail.com
 
Posts: n/a
Default get all rows that have status < 3

Hi,

We have a bunch of events that take place everyday. At the end of each
day we want to find out all the events that have not been completed.

This is the structure of the table (eventId, eventName, status)


1 Event1 P
1 Event1 R
1 Event1 C
2 Event2 P
2 Event2 R
2 Event2 C
3 Event3 P
3 Event3 R
3 Event3 C
....
...
...


I am trying to write a query that will return me all events that dont
status R or C. I know how to do it with cursor logic, and using
various temp tables, but I am sure there is something in set logic that
could be applied here.

select id
from eventTable e
where e.date = '20060206'
group by eventId
having count(*) < 3

The above would give me all entries that have less than 3 events
associated w/them. But I also watned to check that the three status'
that it has are P, R, and C. thats where I am stuck.. any ideas?

Help is much aprpeciated.

Cheers,

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-08-2008, 06:17 PM
Kristian Damm Jensen
 
Posts: n/a
Default Re: get all rows that have status < 3

dufffman@gmail.com wrote:
> Hi,
>
> We have a bunch of events that take place everyday. At the end of
> each day we want to find out all the events that have not been
> completed.
>
> This is the structure of the table (eventId, eventName, status)
>
>
> 1 Event1 P
> 1 Event1 R
> 1 Event1 C
> 2 Event2 P
> 2 Event2 R
> 2 Event2 C
> 3 Event3 P
> 3 Event3 R
> 3 Event3 C
> ...
> ..
> ..
>
>
> I am trying to write a query that will return me all events that dont
> status R or C. I know how to do it with cursor logic, and using
> various temp tables, but I am sure there is something in set logic
> that could be applied here.


select *
from eventTable e1
where not exist (select * from eventTable 2 where e1.eventId = e2.eventId
and status = 'R')
and not exist (select * from eventTable 2 where e1.eventId = e2.eventId and
status = 'C')

> select id
> from eventTable e
> where e.date = '20060206'
> group by eventId
> having count(*) < 3
>
> The above would give me all entries that have less than 3 events
> associated w/them. But I also watned to check that the three status'
> that it has are P, R, and C. thats where I am stuck.. any ideas?


But how? Since count(*) < 3 you can only have two status'.

But it sounds to me like you will need some kind of self-join, maybe along
these lines:

select
from eventTable e1
join eventTable e2
on e1.eventId = e2.eventId
join eventTable e3
on e3.eventId = e2.eventId
where e1. status = 'P'
and e2.status = 'R'
and e2.status ='C'
and e1.date = '20060206'


--
Kristian Damm Jensen


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-08-2008, 06:17 PM
dufffman@gmail.com
 
Posts: n/a
Default Re: get all rows that have status < 3


Kristian Damm Jensen wrote:
> dufffman@gmail.com wrote:
> > Hi,
> >
> > We have a bunch of events that take place everyday. At the end of
> > each day we want to find out all the events that have not been
> > completed.
> >
> > This is the structure of the table (eventId, eventName, status)
> >
> >
> > 1 Event1 P
> > 1 Event1 R
> > 1 Event1 C
> > 2 Event2 P
> > 2 Event2 R
> > 2 Event2 C
> > 3 Event3 P
> > 3 Event3 R
> > 3 Event3 C
> > ...
> > ..
> > ..
> >
> >
> > I am trying to write a query that will return me all events that dont
> > status R or C. I know how to do it with cursor logic, and using
> > various temp tables, but I am sure there is something in set logic
> > that could be applied here.

>
> select *
> from eventTable e1
> where not exist (select * from eventTable 2 where e1.eventId = e2.eventId
> and status = 'R')
> and not exist (select * from eventTable 2 where e1.eventId = e2.eventId and
> status = 'C')
>
> > select id
> > from eventTable e
> > where e.date = '20060206'
> > group by eventId
> > having count(*) < 3
> >
> > The above would give me all entries that have less than 3 events
> > associated w/them. But I also watned to check that the three status'
> > that it has are P, R, and C. thats where I am stuck.. any ideas?

>
> But how? Since count(*) < 3 you can only have two status'.
>


Precisely.. I want all entries that have 1 or 2 status' in it. Thus
all entries that are not in the completed state yet.


> But it sounds to me like you will need some kind of self-join, maybe along
> these lines:
>


I think this is something like what I was looking for. Which leads me
to my next quesetion. This would give me all the events that are good
(meaning they had entered the pending state, running state and are now
in the complete state).

So What i really need is something like..

All events
MINUS
select
from eventTable e1
join eventTable e2
on e1.eventId = e2.eventId
join eventTable e3
on e3.eventId = e2.eventId
where e1. status = 'P'
and e2.status = 'R'
and e2.status ='C'
and e1.date = '20060206'

not very good at sql syntax.. any ideas?

Thanks,

> select
> from eventTable e1
> join eventTable e2
> on e1.eventId = e2.eventId
> join eventTable e3
> on e3.eventId = e2.eventId
> where e1. status = 'P'
> and e2.status = 'R'
> and e2.status ='C'
> and e1.date = '20060206'
>
>
> --
> Kristian Damm Jensen


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 04-08-2008, 06:17 PM
Mark A. Parsons
 
Posts: n/a
Default Re: get all rows that have status < 3

Some assumptions:

1 - an eventId will have 1, 2 or 3 records in the eventTable

1a - if there is only one record then status will always be 'P'

1b - if there are 2 records then status will always be 'P' and 'R'

1c - if there are 3 records then status will always be 'P', 'R' and 'C'

[In other words, you always start with a 'P', then add an 'R', then add a 'C'.]

2 - you only want the eventId's that have one record in eventTable (ie,
they only have a status of 'P' with no associated records having a status
of 'R' or 'C')

-----------------

First idea:

select eventId, count(*)
from eventTable
group by eventId
having count(*) = 1

If you don't like/want the 'count(*)' in the output list you can try:

select eventId
from eventTable
group by eventId
having count(*) = 1

The problem with this query is that you're depending on Sybase's
un-Ansi-like behaviour to return the values you want.

Another alternative, if you're running ASE 12.5.1+, is to use a derived table:

select eventId
from (select eventId, count(*)
from eventTable
group by eventId
having count(*) = 1) derived_table



dufffman@gmail.com wrote:

> Hi,
>
> We have a bunch of events that take place everyday. At the end of each
> day we want to find out all the events that have not been completed.
>
> This is the structure of the table (eventId, eventName, status)
>
>
> 1 Event1 P
> 1 Event1 R
> 1 Event1 C
> 2 Event2 P
> 2 Event2 R
> 2 Event2 C
> 3 Event3 P
> 3 Event3 R
> 3 Event3 C
> ...
> ..
> ..
>
>
> I am trying to write a query that will return me all events that dont
> status R or C. I know how to do it with cursor logic, and using
> various temp tables, but I am sure there is something in set logic that
> could be applied here.
>
> select id
> from eventTable e
> where e.date = '20060206'
> group by eventId
> having count(*) < 3
>
> The above would give me all entries that have less than 3 events
> associated w/them. But I also watned to check that the three status'
> that it has are P, R, and C. thats where I am stuck.. any ideas?
>
> Help is much aprpeciated.
>
> Cheers,
>

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 04-08-2008, 06:17 PM
Mark A. Parsons
 
Posts: n/a
Default Re: get all rows that have status < 3

And if none of this gives you what you're looking for, please post back
with a set of sample raw data and what you would expect as a result set
from your proposed query.

(Make sure you include some raw data that will show up in the result set,
and some raw data that won't show up in the result set.)

Mark A. Parsons wrote:

> Some assumptions:
>
> 1 - an eventId will have 1, 2 or 3 records in the eventTable
>
> 1a - if there is only one record then status will always be 'P'
>
> 1b - if there are 2 records then status will always be 'P' and 'R'
>
> 1c - if there are 3 records then status will always be 'P', 'R' and 'C'
>
> [In other words, you always start with a 'P', then add an 'R', then add
> a 'C'.]
>
> 2 - you only want the eventId's that have one record in eventTable (ie,
> they only have a status of 'P' with no associated records having a
> status of 'R' or 'C')
>
> -----------------
>
> First idea:
>
> select eventId, count(*)
> from eventTable
> group by eventId
> having count(*) = 1
>
> If you don't like/want the 'count(*)' in the output list you can try:
>
> select eventId
> from eventTable
> group by eventId
> having count(*) = 1
>
> The problem with this query is that you're depending on Sybase's
> un-Ansi-like behaviour to return the values you want.
>
> Another alternative, if you're running ASE 12.5.1+, is to use a derived
> table:
>
> select eventId
> from (select eventId, count(*)
> from eventTable
> group by eventId
> having count(*) = 1) derived_table
>
>
>
> dufffman@gmail.com wrote:
>
>> Hi,
>>
>> We have a bunch of events that take place everyday. At the end of each
>> day we want to find out all the events that have not been completed.
>>
>> This is the structure of the table (eventId, eventName, status)
>>
>>
>> 1 Event1 P
>> 1 Event1 R
>> 1 Event1 C
>> 2 Event2 P
>> 2 Event2 R
>> 2 Event2 C
>> 3 Event3 P
>> 3 Event3 R
>> 3 Event3 C
>> ...
>> ..
>> ..
>>
>>
>> I am trying to write a query that will return me all events that dont
>> status R or C. I know how to do it with cursor logic, and using
>> various temp tables, but I am sure there is something in set logic that
>> could be applied here.
>>
>> select id
>> from eventTable e
>> where e.date = '20060206'
>> group by eventId
>> having count(*) < 3
>>
>> The above would give me all entries that have less than 3 events
>> associated w/them. But I also watned to check that the three status'
>> that it has are P, R, and C. thats where I am stuck.. any ideas?
>>
>> Help is much aprpeciated.
>>
>> Cheers,
>>

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 04-08-2008, 06:17 PM
Mark A. Parsons
 
Posts: n/a
Default Re: get all rows that have status < 3

[OK, just re-read the other posts ... cancelled my first post ...]

Some assumptions:

1 - an eventId will have 1, 2 or 3 records in the eventTable

1a - if there is only one record then status will always be 'P'

1b - if there are 2 records then status will always be 'P' and 'R'

1c - if there are 3 records then status will always be 'P', 'R' and 'C'

[In other words, you always start with a 'P', then add an 'R', then add a
'C'; you can't have an 'R' unless you have a 'P'; you can't have a 'C'
unless you have an 'R']

2 - you only want the eventId's that have one or two records in eventTable
(ie, they only have a status of 'P' or 'R' with no associated records
having a status of 'C')

-----------------

First idea:

select eventId, count(*)
from eventTable
group by eventId
having count(*) = 2

If you don't like/want the 'count(*)' in the output list you can try:

select eventId
from eventTable
group by eventId
having count(*) = 2

The problem with this query is that you're depending on Sybase's
un-Ansi-like behaviour to return the values you want.

Another alternative, if you're running ASE 12.5.1+, is to use a derived table:

select eventId
from (select eventId, count(*)
from eventTable
group by eventId
having count(*) = 2) derived_table

------------------------------

And if none of this gives you what you're looking for, please post back
with a set of sample raw data and what you would expect as a result set
from your proposed query.

(Make sure you include some raw data that will show up in the result set,
and some raw data that won't show up in the result set.)





dufffman@gmail.com wrote:

> Hi,
>
> We have a bunch of events that take place everyday. At the end of each
> day we want to find out all the events that have not been completed.
>
> This is the structure of the table (eventId, eventName, status)
>
>
> 1 Event1 P
> 1 Event1 R
> 1 Event1 C
> 2 Event2 P
> 2 Event2 R
> 2 Event2 C
> 3 Event3 P
> 3 Event3 R
> 3 Event3 C
> ...
> ..
> ..
>
>
> I am trying to write a query that will return me all events that dont
> status R or C. I know how to do it with cursor logic, and using
> various temp tables, but I am sure there is something in set logic that
> could be applied here.
>
> select id
> from eventTable e
> where e.date = '20060206'
> group by eventId
> having count(*) < 3
>
> The above would give me all entries that have less than 3 events
> associated w/them. But I also watned to check that the three status'
> that it has are P, R, and C. thats where I am stuck.. any ideas?
>
> Help is much aprpeciated.
>
> Cheers,
>

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 04-08-2008, 06:17 PM
Mark A. Parsons
 
Posts: n/a
Default Re: get all rows that have status < 3

[OK, just re-read the other posts ... cancelled my first post ...]

Some assumptions:

1 - an eventId will have 1, 2 or 3 records in the eventTable

1a - if there is only one record then status will always be 'P'

1b - if there are 2 records then status will always be 'P' and 'R'

1c - if there are 3 records then status will always be 'P', 'R' and 'C'

[In other words, you always start with a 'P', then add an 'R', then add a
'C'; you can't have an 'R' unless you have a 'P'; you can't have a 'C'
unless you have an 'R']

2 - there are only the 3 different status values of 'P', 'R' and 'C'

3 - you only want the eventId's that have one or two records in eventTable
(ie, they only have a status of 'P' or 'R' with no associated records
having a status of 'C')

-----------------

First idea:

select eventId, count(*)
from eventTable
group by eventId
having count(*) < 3

If you don't like/want the 'count(*)' in the output list you can try:

select eventId
from eventTable
group by eventId
having count(*) < 3

The problem with this query is that you're depending on Sybase's
un-Ansi-like behaviour to return the values you want.

Another alternative, if you're running ASE 12.5.1+, is to use a derived table:

select eventId
from (select eventId, count(*)
from eventTable
group by eventId
having count(*) < 3) derived_table

------------------------------

And if none of this gives you what you're looking for, please post back
with a set of sample raw data and what you would expect as a result set
from your proposed query.

(Make sure you include some raw data that will show up in the result set,
and some raw data that won't show up in the result set.)


dufffman@gmail.com wrote:

> Hi,
>
> We have a bunch of events that take place everyday. At the end of each
> day we want to find out all the events that have not been completed.
>
> This is the structure of the table (eventId, eventName, status)
>
>
> 1 Event1 P
> 1 Event1 R
> 1 Event1 C
> 2 Event2 P
> 2 Event2 R
> 2 Event2 C
> 3 Event3 P
> 3 Event3 R
> 3 Event3 C
> ...
> ..
> ..
>
>
> I am trying to write a query that will return me all events that dont
> status R or C. I know how to do it with cursor logic, and using
> various temp tables, but I am sure there is something in set logic that
> could be applied here.
>
> select id
> from eventTable e
> where e.date = '20060206'
> group by eventId
> having count(*) < 3
>
> The above would give me all entries that have less than 3 events
> associated w/them. But I also watned to check that the three status'
> that it has are P, R, and C. thats where I am stuck.. any ideas?
>
> Help is much aprpeciated.
>
> Cheers,
>

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 04-08-2008, 06:17 PM
--CELKO--
 
Posts: n/a
Default Re: get all rows that have status < 3

Please post DDL, so that people do not have to guess what the keys,
constraints, Declarative Referential Integrity, data types, etc. in
your schema are. Sample data is also a good idea, along with clear
specifications. It is very hard to debug code when you do not let us
see it.

What you did post looks screwed up. Where is the date of these events?
Your data elements are also wrong according to ISO-11179 rules. What
kind of status? Why is an event_id needed at all (surely you did not
use an IDENTITY column!!)? etc.

Here is a guess at a correct DDL:

CREATE TABLE Events
(event_name CHAR(10) NOT NULL
CHECK (event_name IN (..)),
event_date DATETIME DEFAULT CURRENT_TIMESTAMP NOT NULL, --understood
to be the entire daet duration,
event_status CHAR(1) DEFAULT 'P' NOT NULL
CHECK (event_status IN ('P', 'R', 'C')),
PRIMARY KEY (event_name, event_date));

>> I am trying to write a query that will return me all events that don't [have] status [both] R or C <<


That leaves only 'P' according ot your vague narrative.

SELECT event_name, @my_event_date
FROM Events
WHERE event_date = @my_event_date
AND event_status = 'P';

Or did you mean that events that lack either 'R' or 'C' codes, but have
'P'?

SELECT event_name, @my_event_date
FROM Events
WHERE event_date = @my_event_date
GROUP BY event_name
HAVING ( MIN(event_status <> 'C')
OR MAX(event_status <> 'R'))
-- AND COUNT(*) = 2

The COUNT(*) is for the ('P', 'R') and ('C', 'P') cases. You did not
say what to do about ('C'), ('R', 'C') and the empty case. You can
modify this easily, tho.

It should run about 10 to 100 times faster than your cursor on large
data sets.






>>.. I know how to do it with cursor logic, and using various temp tables <<


Why?? You should never write a cursor when a query can do the job.
That is about 99.98% of the time.

>> I also wanted to check that the three statuses that it has are P, R, and C. <<


That makes no sense; if it is missing 'R' or 'C', then is cannot have
all three. You use a CHECK() constraitn to limit the possible values.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 04-08-2008, 06:17 PM
--CELKO--
 
Posts: n/a
Default Re: get all rows that have status < 3

Please post DDL, so that people do not have to guess what the keys,
constraints, Declarative Referential Integrity, data types, etc. in
your schema are. Sample data is also a good idea, along with clear
specifications. It is very hard to debug code when you do not let us
see it.

What you did post looks screwed up. Where is the date of these events?
Your data elements are also wrong according to ISO-11179 rules. What
kind of status? Why is an event_id needed at all (surely you did not
use an IDENTITY column!!)? etc.

Here is a guess at a correct DDL:

CREATE TABLE Events
(event_name CHAR(10) NOT NULL
CHECK (event_name IN (..)),
event_date DATETIME DEFAULT CURRENT_TIMESTAMP NOT NULL, --understood
to be the entire daet duration,
event_status CHAR(1) DEFAULT 'P' NOT NULL
CHECK (event_status IN ('P', 'R', 'C')),
PRIMARY KEY (event_name, event_date));

>> I am trying to write a query that will return me all events that don't [have] status [both] R or C <<


That leaves only 'P' according ot your vague narrative.

SELECT event_name, @my_event_date
FROM Events
WHERE event_date = @my_event_date
AND event_status = 'P';

Or did you mean that events that lack either 'R' or 'C' codes, but have
'P'?

SELECT event_name, @my_event_date
FROM Events
WHERE event_date = @my_event_date
GROUP BY event_name
HAVING ( MIN(event_status <> 'C')
OR MAX(event_status <> 'R'))
-- AND COUNT(*) = 2

The COUNT(*) is for the ('P', 'R') and ('C', 'P') cases. You did not
say what to do about ('C'), ('R', 'C') and the empty case. You can
modify this easily, tho.

It should run about 10 to 100 times faster than your cursor on large
data sets.






>>.. I know how to do it with cursor logic, and using various temp tables <<


Why?? You should never write a cursor when a query can do the job.
That is about 99.98% of the time.

>> I also wanted to check that the three statuses that it has are P, R, and C. <<


That makes no sense; if it is missing 'R' or 'C', then is cannot have
all three. You use a CHECK() constraitn to limit the possible values.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 04-08-2008, 06:17 PM
Kristian Damm Jensen
 
Posts: n/a
Default Re: get all rows that have status < 3

dufffman@gmail.com wrote:
> Kristian Damm Jensen wrote:
>> dufffman@gmail.com wrote:
>>> Hi,
>>>
>>> We have a bunch of events that take place everyday. At the end of
>>> each day we want to find out all the events that have not been
>>> completed.
>>>
>>> This is the structure of the table (eventId, eventName, status)
>>>
>>>
>>> 1 Event1 P
>>> 1 Event1 R
>>> 1 Event1 C
>>> 2 Event2 P
>>> 2 Event2 R
>>> 2 Event2 C
>>> 3 Event3 P
>>> 3 Event3 R
>>> 3 Event3 C
>>> ...
>>> ..
>>> ..
>>>
>>>
>>> I am trying to write a query that will return me all events that
>>> dont status R or C. I know how to do it with cursor logic, and
>>> using various temp tables, but I am sure there is something in set
>>> logic that could be applied here.

>>
>> select *
>> from eventTable e1
>> where not exist (select * from eventTable 2 where e1.eventId =
>> e2.eventId and status = 'R')
>> and not exist (select * from eventTable 2 where e1.eventId =
>> e2.eventId and status = 'C')
>>
>>> select id
>>> from eventTable e
>>> where e.date = '20060206'
>>> group by eventId
>>> having count(*) < 3
>>>
>>> The above would give me all entries that have less than 3 events
>>> associated w/them. But I also watned to check that the three
>>> status' that it has are P, R, and C. thats where I am stuck.. any
>>> ideas?

>>
>> But how? Since count(*) < 3 you can only have two status'.
>>

>
> Precisely.. I want all entries that have 1 or 2 status' in it. Thus
> all entries that are not in the completed state yet.
>
>
>> But it sounds to me like you will need some kind of self-join, maybe
>> along these lines:
>>

>
> I think this is something like what I was looking for. Which leads me
> to my next quesetion. This would give me all the events that are good
> (meaning they had entered the pending state, running state and are now
> in the complete state).
>
> So What i really need is something like..
>
> All events
> MINUS
> select
> from eventTable e1
> join eventTable e2
> on e1.eventId = e2.eventId
> join eventTable e3
> on e3.eventId = e2.eventId
> where e1. status = 'P'
> and e2.status = 'R'
> and e2.status ='C'
> and e1.date = '20060206'


i.e. all events that are not good?

If so you are on the right track and were so from the start.

Try

select *
from eventTable e1
where e2.date = '20060206'
and not exists
(select eventID from eventTable e2
where e1.eventId = e2.eventID
group by eventID
having count(*) = 3)

The subselect will find all those that are good (my select above will too,
but theres no reason to do a triple selfjoin for that),

On the other hand, if I understand correctly the records for an event will
include the statuses (?) 'P', 'R' and 'C' and in that order, and you are
interested in those events without status 'C'. If so, it can be made even
more simple:

select *
from eventTable e1
where e1.date = '20060206'
and not exists
(select eventID from eventTable e2
where e1.eventId = e2.eventID
and e2.status = 'C')


--
Kristian Damm Jensen


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 08:42 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0

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 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589