Useful tips for everyday
What does with Tablock do? Using TABLOCK will reduce concurrency but will immediately take a table lock on the target table. As long as you…
What does function do in PostgreSQL query language? Query Language (SQL) Functions. SQL functions execute an arbitrary list of SQL statements, returning the result of…
Which is better temp table or table variable? A temp table can have indexes, whereas a table variable can only have a primary index. If…
How to run multiple queries using the central management server? The Connection properties Repeat the steps 3, 4 and 5 to add all the SQL…
How do I export a Postgres database to JSON? SELECT name AS fruit_name, quantity FROM data; Then, put this in a subquery and convert it…
What is the default compatibility level for Azure SQL databases? 150 As of November 2019, in Azure SQL Database, the default compatibility level is 150…
What is a SELECT CASE statement? A Select Case statement allows a variable to be tested for equality against a list of values. Each value…
How do I add a column to a date in SQL? A DATE data type contains both date and time elements. If you are not…
Can we use case statement in SQL? The case statement in SQL returns a value on a specified condition. We can use a Case statement…
Why is MY SQL Server Agent not working? A severe error occurred on the current command. The results, if any, should be discarded. (Microsoft SQL…