Useful tips for everyday
How do I move files from one filegroup to another in SQL Server? For this, we need to to do the following: Create a secondary…
How many partitions are supported in SQL Server 2016? For a list of features that are supported by the editions of SQL Server, see Editions…
How can I change column to row in SQL? Let’s Start! UNION ALL. Previously, SQL Server did not offer an efficient way to convert columns…
Can I use aggregate function in WHERE clause? You cannot use aggregate functions in a WHERE clause or in a JOIN condition. However, a SELECT…
What is database Autovacuum? Autovacuum is a daemon that automates the execution of VACUUM and ANALYZE (to gather statistics) commands. Autovacuum checks for bloated tables…
How can I get remote access to MySQL? MySQL, the most popular open-source database server by default, listens for incoming connections only on localhost. To…
How to insert data into parent and child tables? Then, the procedure should split the child level data based on the DepartmentType (“A” = insert…
What is hasMany? One to many(hasMany): A user has many(can have many) article. So, Many article belongs to one user; Many to many(BelongsToMany): A User…
How to restore database using IBD FRM files and data files? 2. If we stop mariadb service, just copy these files to data directory in…
How to take Postgres database snapshot? Let’s back up the entire contents of the /db directory within a database snapshot using the following steps: Start…