query-optimization
Very slow subqueries when using "NOT IN"
I\'m working on generating reports for data contained within a large pre-existing Access database (~500 mb after compact & repair), and I\'m having trouble with a slow subquery.[详细]
2023-03-26 23:40 分类:问答Multiple Queries to a Large MySQL Table
I have a table with columns ID(int), Number(decimal), and Date(int only timestamp).There are millions of rows. There are indexes on ID and Date.[详细]
2023-03-26 00:17 分类:问答How to Optimize a aggregate SQL?
Assume a table schema like: name amount_1, amount_2, cond_1, cond_2 the table have 500,000+rows. How to optimize query like:[详细]
2023-03-25 15:47 分类:问答How Can I Optimize these queries?
I have 2 areas that I know are process whores but I don\'t know how to better them. The 2 places in question are shown here[详细]
2023-03-25 10:38 分类:问答This query run in 30s. How can I optimize it?
As a follow up on my previous question here: Link These are my tables: -----------------------------------[详细]
2023-03-25 04:35 分类:问答Handle "Divide by zero error encountered error"
SELECT((CASE WHEN (qid2.AgeBelow_16 - qid1.AgeBelow_16)= 0 THEN 1 ELSE (qid2.AgeBelow_16- qid1.AgeBelow_16) END )/ (CASE WHEN [qid1].AgeBelow_16= 0 THEN 1 ELSE [qid1].AgeBelow_16END))*100 AS AgeBelow_[详细]
2023-03-24 23:12 分类:问答Optimizing / improving a slow mysql query - indexing? reorganizing?
First off, I\'ve looked at several other questions about optimizing sql queries, but I\'m still unclear for my situation what is causing my problem.I read a few articles on the topic as well and have[详细]
2023-03-24 14:56 分类:问答Fast selection of elements from a set, based on a property
How can I store multiple values of a large set to be able to find them quickly with a lambda expression based on a property with non-unique values?[详细]
2023-03-23 19:40 分类:问答SQl Server 2000 Execution: Statistics Missing
I have a sitauation in production where a procedure is taking different time in two different envionments, when I trie开发者_运维百科d to run the execution plan some stastics are missing. When I click[详细]
2023-03-23 17:17 分类:问答Optimizing order of WHERE clause evaluation in DB2
I\'m working with two extremely large tables (A is ~20E6 rows, B is ~65E3 rows) and I have very elaborate where clauses to get just the items I need. One thing that could speed it up is to first evalu[详细]
2023-03-23 14:55 分类:问答