Note that there are some explanatory texts on larger screens.

plurals
  1. USJason B-H
    primarykey
    data
    text
    plurals
    1. CO@Clockwork-Muse Thank you for pointing this out and this was a good read. I will be fixing this in our production code for consistency sake. I highly doubt that we'll have a scenario where a single date falls on this boundary, but either it's "right" or it's "wrong" and I don't like to get in the habit of writing bad code. Thank you
      singulars
    2. COMike, thank you for your advice. I dug further into the issue this morning per your bullet points and noticed a peculiarity. We have two columns that reference the USA state - the account_state which you recommended we put an index on and another column representing the customers home address state. The home address state had an index where as the account_state did not (despite being used in our SQL). As a proof of concept, I swapped in the indexed state column to search against in place of nonindexed - 160 seconds reduced to 1.5 seconds. I will look into getting DBAs to create an index.
      singulars
    3. CO@MikeSherrill'Catcall' We use SQuirreL 3.4 at our company for DB2 access. I'm not a DBA, so I'm restricted as to what permissions are granted to us. I've tried to run the "EXPLAIN PLAN FOR" against the query, unfortunately I'm getting a DB2 error code of -219. Looking this up against the DB2 documentation it says that the table doesn't exist; unfortunately, I do not have permissions for creating tables in our database.
      singulars
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload