Database development

What is a Materialized View and Why Should you Use It?

Database development, Views • One Comment

As data volumes continue to increase, more developers look towards materialized views to process...
Read More

How to Write Complex Queries in SQL

Database development, Statements

Typical queries in the SELECT * FROM table format are sometimes not enough. When the data for a query is not in one table, but in several,...
Read More

SQL Stuff Function

Database development, Statements

The main idea around the SQL Server function called STUFF is concatenating multiple columns into a single column with more flexibility than...
Read More

A Simple Use Case for Indexes on Primary Keys

Database administration, Database development, Indexes, Performance Tuning, SQL Server • 3 Comments

Introduction Recently we encountered an interesting performance problem on one of our SQL Server...
Read More

Hash What? Understanding Hash Indexes

Database development, Indexes

Hash indexes are an integral part of databases. If you’ve ever used a database, chances are that you have seen them in action without...
Read More

How to Find SQL Server Instance Name and More with Stored Procedures

Database development, Stored Procedures

SQL Server instances serve as the backbone of a business model, housing databases that contain vital data for backend operations or...
Read More

Execute Dynamic Query in SQL Server

Database development, Statements, Stored Procedures

Dynamic SQL is a statement constructed and executed at runtime, usually containing dynamically...
Read More

How to Create a Table with Multiple Foreign Keys and Not Get Confused

Constraints, Database development, Tables

Understanding Table Relations SQL server adds foreign keys to implement relations between tables in a relational database. A table can have...
Read More

How to Get Backup Status in SQL Server using Stored Procedure

Database development, Stored Procedures

Any SQL Server DBA (of course, this applies to all platforms) will agree that database backups are the most essential things for data...
Read More

Easy Answers to 5 Vital Questions about Composite Index in SQL

Database development, Indexes

Imagine you need to query a table with a WHERE clause on columns a, b, and c. Sometimes, you filter...
Read More
Close