Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Latest visited products query
Hi,
How can I get a list by the latest viewed products.
This is my table:
CREATE TABLE PRODUCT_VISIT (
PRODUCTID NUMBER (38) NOT NULL, USERID NUMBER (38) NOT NULL, MYDATE DATE NOT NULL,
SELECT DISTINCT PV.PRODUCTID FROM PRODUCT_VISIT PV ORDER BY PV.MYDATE However, the query isn't working. What I want is a list of product ids ordered by the date visited (last visited should be first). One product should only appear one time.
What am I doing wrong?
/ Jacob Received on Mon Oct 15 2001 - 05:15:30 CDT
![]() |
![]() |