select - mysql subquery in single table -
I have 2 columns in the "Entries" table: a non-unique ID, and a date stamp (YYYY-MM-5)
I am trying to use a subquery, but I do not think that I am using it properly because they are both displaying on the same table, do somebody tell me the correct selection statement Can help out with? I can provide more information if needed.
entries where e.date = curdate () and not e.id (select ID from entries E2 where e2.date and lt; E.date)
Comments
Post a Comment