Most Popular Databases

3 Things Developers Should Know Before Using the SQL Server Table Variable

There are many myths and incorrect information shared online about the SQL Server table variable, and it would be easy for a SQL Server developer to assume that, based on the misinformation, using a table variable instead of a temporary table was a good idea. Using table variable is in fact easy, but there are things a developer should […]

Read More

2 Common Errors and Reasons for SQL Server Login Failures

When asked about common errors encountered in a SQL Server environment, you might expect to hear about high CPU issues, but in reality, these are rare and few. In fact, many DBAs report connectivity issues with SQL Server as among the most frequently encountered errors. These errors can further be classified into two sub-categories: Login request not reaching SQL Server. Login request reaching SQL […]

Read More

About Normalization in Oracle Database Application Design

Relations between countries, or between departments in a company, or between users and developers, are usually the product of particular historical circumstances, which may define current relations even though the circumstances have long since passed. The result of this can be abnormal relations, or, in current parlance, dysfunctional relations. History and circumstance often have the […]

Read More

About Materialized Views in Oracle

To improve the performance of an application, you can make local copies of remote tables that use distributed data or create summary tables based on GROUP BY operations. Oracle provides materialized views to store copies of data or aggregations. Materialized views can be used to replicate all or part of a single table or to […]

Read More

Columns, Group Functions, and ORDER BY in Oracle 12c

The ORDER BY clause is executed after the WHERE, GROUP BY, and HAVING clauses. It can employ group functions, or columns from the GROUP BY, or a combination. If it uses a group function, that function operates on the groups and then the ORDER BY sorts the results of the function in order. If the […]

Read More

The Power of Views of Groups in Oracle 12c

Let’s take a moment to discuss the real power of a relational database. Once you’ve created a view with the count by category, and a second view displaying the count for the entire table, you can join them together to reveal information never before apparent. For instance, what percentage of the books are in each category? […]

Read More

Using Temporary Tables in Oracle 12c

You can create a table that exists solely for your session or whose data persists for the duration of your transaction. You can use temporary tables to support specialized rollups or specific application-processing requirements whose results will not persist beyond the session or even past a COMMIT statement. To create a temporary table, use the […]

Read More

Complex Groupings in Oracle 12c

Views can build on each other.  You can easily join views to other views and tables to produce additional views to simplify the tasks of querying and reporting. As your groupings grow more complex, you will find that views are invaluable to your coding efforts; they simplify the representation of data at different grouping levels […]

Read More

Oracle PL/SQL Performance Tuning and the Unknown UNDO

Scaling of existing software solutions is never a linear process. Contemporary database systems consume different kinds of resources (CPU time, memory, I/O channels) and behave differently when some of these resources become sparse. Considering that hardware is always limited by available budgets and technologies, it is critical to understand potential bottlenecks. Typically, this is accomplished […]

Read More