Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. COHow would I go about including this in a query though? Say for example that I wanted to retrieve all data from date = 2009-12-31 to today. How does date() fit into the query string? Am I right in thinking that date() takes three integer values as parameters (year, month, day)? Where do I reference the fields associated with the date? Some of the database tables contain more than one piece of date information so I obviously need to be querying the correct fields.
      singulars
    2. CODate() takes a string - I am concatenating your existing three fields using the double-pipe || operator. You should be able to literally copy and paste my statement into your where clause to get the last 60 days. if you want everything from the end of last year (including year end) then you could use "WHERE date(year||month|date) >= date('20091231')". I am assuming your single-digit months and days are stored with a leading zero, so you may have to format those columns and left pad each with '0' to get to two digits. For comparisons, you could drop the date(), since alpha sort will do.
      singulars
    3. COI tried using the DATE() function and it doesn't work. I get an error ("Argument *N of function CONCAT not valid"), so obviously specifying the fields in the DATE() function, concatenated together, doesn't work (unless I've totally misunderstood where it is that I'm supposed to be referencing the fields that are to be queried). Not to worry - I'll just go with the accepted answer. I thought your response was worth a try though.
      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