Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 2 of 2 total
Thread Memory table
Thu, Nov 22 2007 6:38 PMPermanent Link

Sanford Aranoff
How does one run a query to populate a memory table,
emptying it before the query, and then running a query
joining the memory table to a disk table?

Thanks.
Thu, Nov 22 2007 10:21 PMPermanent Link

"Robert"

"Sanford Aranoff" <aranoff@analysis-knowledge.com> wrote in message
news:474611AF.1886A7B5@analysis-knowledge.com...
> How does one run a query to populate a memory table,
> emptying it before the query, and then running a query
> joining the memory table to a disk table?
>

DROP TABLE IF EXISTS MEMORY\TEMP;
SELECT TFIELD1, TFIELD2 INTO MEMORY\TEMP
FROM TABLE1;
SELECT TFIELD2, DFIELD3 FROM DTABLE
JOIN MEMORY\TEMP ON TFIELD1 = DFIELD1

> Thanks.

Image