Oct 2, 2001 #1 lieip Programmer Joined Oct 2, 2001 Messages 12 Location US I get an error message query is too complex when i try to create a query that adds 3 fields from three other queries. What can i do to fix this error?
I get an error message query is too complex when i try to create a query that adds 3 fields from three other queries. What can i do to fix this error?
Oct 2, 2001 #2 rac2 Programmer Joined Apr 26, 2001 Messages 1,871 Location US Hello lieip, What database are you using? What is the query? In SQL Server a query like this works just fine. Code: SELECT @valueFinal = (SELECT MAX(valueOne) FROM tableOne) + (SELECT MAX(valueTwo) FROM tableTwo) + (SELECT MAX(valueThree) FROM tableThree) You might want to post your question in a database forum instead of the ASP forum since queries are not part of ASP. Upvote 0 Downvote
Hello lieip, What database are you using? What is the query? In SQL Server a query like this works just fine. Code: SELECT @valueFinal = (SELECT MAX(valueOne) FROM tableOne) + (SELECT MAX(valueTwo) FROM tableTwo) + (SELECT MAX(valueThree) FROM tableThree) You might want to post your question in a database forum instead of the ASP forum since queries are not part of ASP.