Useful tips for everyday
What set Ansi_nulls on? When SET ANSI_NULLS is ON, a SELECT statement that uses WHERE column_name = NULL returns zero rows even if there are…
What can I do instead of a PowerPoint presentation? The 9 Best PowerPoint Presentation Software Alternatives Prezi. Prezi is about as different from PowerPoint as…
Where are the permissions assigned in SQL Server? At the server level, permissions are assigned to SQL Server logins and server roles. At the database…
How does the count function in MongoDB work? Returns the count of documents that would match a find () query for the collection or view.…
What are the different types of triggers in MySQL? There are 6 different types of triggers in MySQL: Before Update Trigger: As the name implies,…
Does a full backup truncate the transaction log? A full database backup does not truncate the log. If you don’t take regular transaction log backups,…
What to do if you want to change a password in MongoDB? The name of the user whose password you wish to change. The user’s…
How to select all columns from one table? Just use the table name: SELECT myTable.*, otherTable.foo, otherTable.bar… That would select all columns from myTable and…
How to group by month from date field? Use the DATEPART function to extract the month from the date. I used the FORMAT function to…
How do I convert a string to a date in a specific format? Java String to Date Example import java.text.SimpleDateFormat; import java.util.Date; public class StringToDateExample1…