Before anyone comments, I must use HSQLDB RDBMS; it’s for university java project. My question is how would I get list of invoices created in last 30 days
CREATE TABLE Invoices(
rid INTEGER GENERATED BY DEFAULT AS IDENTITY PRIMARY KEY,
invoicedate TIMESTAMP NOT NULL);
You could use HSQL’s dateadd function: