Useful tips for everyday
How do you failover in MongoDB? MongoDB drivers can automatically retry certain write operations a single time. Retryable writes provide built-in handling of automatic failovers…
How to optimize stdistance execution in SQL Server? For STDistance the important trace flag is 6533. In a simple test, this improved execution time from…
What is a deferrable foreign key? I read this about the SQL keyword DEFERRABLE in Database Systems – The Complete Book. The latter [NOT DEFERRABLE]…
How do you groupby based on a condition? Conditionally grouping values based other columns We need to filter out the columns of our interest. If…
When running your primary Amazon RDS instance as a multi-AZ deployment can you use the standby instance for read and write operations? Q: When running…
What does || mean in Db2? The || is shorthand for CONCAT . What is this || in SQL? || or concatenation operator is use…
What do I need to know about MySQL replication? The most common task when managing a replication process is to ensure that the replication is…
What happens when you shrink tempdb? Shrinking the file is fine as long as Tempdb is not being used, else existing transactions may be impacted…
How do you sum data based on year? How to do Sumif by Year =SUMIFS(sum_range,date_range,”>=”&DATE(year,1,1),date_range,”<=”&DATE(year,12,31) =SUMIFS($B$4:$B$11,$A$4:$A$11,”>=”&DATE(D4,1,1),$A$4:$A$11,”<=”&DATE(D4,12,31)) =SUMIFS($B$4:$B$11,$A$4:$A$11,”>=”&DATE(D4,1,1),$A$4:$A$11,”<=”&DATE(D4,12,31)) How do you summarize data in Excel by…
How do you create a user-defined type? To create a user-defined data type In Object Explorer, expand Databases, expand a database, expand Programmability, expand Types,…