JOEL LIPMAN Systems / Automation / AI

Knowledge base / Since 1999

Databases Tutorials & Guides

Practical Databases tutorials, troubleshooting notes and implementation guides from real projects.

Advanced search

75 entries / Databases

Clear filters
Search a database with SOUNDEX
Databases

Search a database with SOUNDEX

End-users said that they could see the options "Data Not Yet Available" as well as "Data not yet available". These are obviously the same values, so I should go through the database and change all variations to be typed the same way in the same case. Wouldn't it be nice to search through your entire database for simila...

Read note 89,967 hits
Search a database for a string (MySQL, T-SQL)
Databases

Search a database for a string (MySQL, T-SQL)

I have a PHP script which behaves like PhpMyAdmin, in that it automatically lists a database structure and the fields to modify similar to an excel spreadsheet. Now without using PHP, I need standalone SQL scripts that can simply be used to search an entire database for a particular string of word(s). I've posted my ow...

Read note 60,227 hits
Data Randomization Function in Oracle PL/SQL
Oracle PL/SQL

Data Randomization Function in Oracle PL/SQL

This article describes a function that will return random data based on a given value. The function intends to determine the data type and return data that is absolutely irrelevant to the original data but the same length and the same type of data.

Read note 36,278 hits
Copy a table with structure and data into a temporary table
Transact-SQL

Copy a table with structure and data into a temporary table

This will copy a given table into a temporary table all the while maintaining the structure and data. Thinking inside of the box I think everyone suggests the following (or at least the idea of): SELECT * INTO #MyTempTable FROM @GivenTable If @GivenTable is a parameter then the above will simply return an error. Also...

Read note 35,748 hits
Drop If Object Exists
Transact-SQL

Drop If Object Exists

Some people have been suggesting you can use "CREATE OR REPLACE ... VIEW ... FUNCTION" but my SQL Server 2008 Management Studio doesn't like this and refuses to understand what I'm trying to do.

Read note 32,679 hits
DataJumble - Shuffling characters in a data value
Transact-SQL

DataJumble - Shuffling characters in a data value

This was called a Data-Scrambling Function but it depends on what you mean by "scrambling". This is a function which merely uses the same characters but switches their order randomly, so I've renamed it DataJumble as opposed to my article on Data-Scrambling. Why? We want to scramble sensitive data that we send to suppl...

Read note 44,036 hits
MySQL: Display Users and Duration in Matrix Timesheet
MySQL

MySQL: Display Users and Duration in Matrix Timesheet

Given Data Activities by employees with start dates and end dates in a mySQL database. Objective User Mon Tue Wed Thu Fri Sat Sun Total --------------- ------- ------- ------- ------- ------- ------- ------- --------- Me 09:00 07:30 08:00 07:00 06:00 00:00 02:00 36:00 Myself 07:30 07:30 07:30 07:30 07:00 00:00 00:00 37...

Read note 37,513 hits

Working principle

Our Purpose

This site exists as a practical knowledge base built from real-world experience across systems, platforms, and technologies since 1999. Much of the content documents solutions, edge cases, and working patterns that were learned through investigation where documentation was incomplete or absent, and is shared to reduce the same friction for others.

27 Years in IT
1021 CRM clients
810 Site articles
29.7m+ Reads / hits

Knowledge base

Search notes

Find matching words in article titles and content.