Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Access Crosstab query to SQL Query string

Status
Not open for further replies.

meldrape

Programmer
May 12, 2001
516
US

Hello,

I've created this crosstab query in Access and it works great but my back end is SQL2000. How can this be rewritten to pull from a SQL2000 database in an ASP? Thank you very much in advance.

TRANSFORM Sum(qyMatrixTest.numitems) AS SumOfnumitems
SELECT qyMatrixTest.cname
FROM qyMatrixTest
WHERE (((qyMatrixTest.ocustomerid)=271))
GROUP BY qyMatrixTest.cname, qyMatrixTest.ocustomerid
PIVOT qyMatrixTest.orderid;
 
the query doesnt run directl in SQL2000?

Known is handfull, Unknown is worldfull
 
No it doesn't. SQL2000 doesn't support TRANSFORM. Thanks for your response!
 
i myself dont know what transform does, can u give me an idea, i amy be able to suggest an alternate query...

Known is handfull, Unknown is worldfull
 
Thanks again for your reply. I actually found something on this forum, thread333-686822. Somebody had a similar situation and somebody else had a great answer. Once again, thanks for trying to help.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top