my asp code looks like :
-----------------------------------
set conntemp=server.createobject("adodb.connection"
conntemp.open myDSN
StrQuery = "SELECT f.CustId, max(fd.UploadDate)as LastDate into tempererer from FileDescription f, FileDescription fd, Customer where f.CustId = fd.CustId and f.FileID = fd.FileID Group by f.CustId Order By f.CustId"
srt = "Select tempererer.CustId,Customer.CustName,tempererer.LastDate from Customer, tempererer where Customer.CustID = Tempererer.CustId"
set allcust=conntemp.execute(StrQuery)
set allcust=conntemp.execute(srt)
allcust.movefirst
-----------------------------------
As you can see I have two queries executed on the recordeset, this creates a new table called tempererer and this creates problems when the query is run more then once, How would I write my SQL query to give me the same effect without creating a new table? I have posted this message before but never got a complete answer, so I'm sorry if you're reading this again. I was also wondering that I could delete the table after I have created it? How would I do this? Would/Could this create problems?
Grateful for any help thanks.
Taha
-----------------------------------
set conntemp=server.createobject("adodb.connection"
conntemp.open myDSN
StrQuery = "SELECT f.CustId, max(fd.UploadDate)as LastDate into tempererer from FileDescription f, FileDescription fd, Customer where f.CustId = fd.CustId and f.FileID = fd.FileID Group by f.CustId Order By f.CustId"
srt = "Select tempererer.CustId,Customer.CustName,tempererer.LastDate from Customer, tempererer where Customer.CustID = Tempererer.CustId"
set allcust=conntemp.execute(StrQuery)
set allcust=conntemp.execute(srt)
allcust.movefirst
-----------------------------------
As you can see I have two queries executed on the recordeset, this creates a new table called tempererer and this creates problems when the query is run more then once, How would I write my SQL query to give me the same effect without creating a new table? I have posted this message before but never got a complete answer, so I'm sorry if you're reading this again. I was also wondering that I could delete the table after I have created it? How would I do this? Would/Could this create problems?
Grateful for any help thanks.
Taha