Question: I'm new to sql but, I'm trying to create code that will look at a Calendar table and determine if the Last Day of Billing Month, (Last field in the table) was the day before the day I am providing.

Here is what I have so far:

```
Select * from Calendar_table (for any given day) 

```

Any help would be great

Answer: 
If your question is about those errors at the top, those are server-side error responses.

The first says that the coordinator you contacted cannot satisfy the request at CL.ONE, with the nodes it believes are alive. This can happen if all replicas are down (more likely with a low replication factor).

The other two errors are timeouts, where the coordinator didn't get responses from 'live' nodes in a time [configured in the cassandra.yaml](http://docs.datastax.com/en/cassandra/2.0/cassandra/configuration/configCassandra_yaml_r.html?scroll=reference_ds_qfg_n1r_1k__range_request_timeout_in_ms).

All of these indicate that the cluster you're connected to is not healthy. This could be because it is overwhelmed (high GC pauses), or experiencing network issues. Check the server logs for clues.
I got the following error, which looks very similar:

```
cassandra.Unavailable: Error from server: code=1000 [Unavailable exception] message="Cannot achieve consistency level LOCAL_ONE" info={'consistency': 'LOCAL_ONE', 'alive_replicas': 0, 'required_replicas': 1}

```

When I added a `sleep(0.5)` in the code, it worked fine. I was trying to write too much too fast...