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
Oracle SQL - Convert given list (CSV) into Rows
Oracle PL/SQL

Oracle SQL - Convert given list (CSV) into Rows

Just a quick note as to something that worked for me. Taken from the Oracle forums @ https://forums.oracle.com/forums/thread.jspa?messageID=6861756 Situation I have one column of values that I've suffixed a comma to but I want to display this as a rows in a table. This is for Oracle PL/SQL.

Read note 19,865 hits
MySQL parameters in Excel 2007 PivotTables
MySQL

MySQL parameters in Excel 2007 PivotTables

Hopefully the title doesn't put you off but after much Googling and Bing-ing, I still couldn't figure out how to do this. Hopefully this article will help you more than my search engine skills do. My Setup Windows XP Workstation ...needs to open... Excel 2007 SP2 ...with ODBC to... MySQL v5+ ...hosting database... Acti...

Read note 56,046 hits
The ReportServer Database
Databases

The ReportServer Database

Amazing, I have just spent all morning on Microsoft websites to determine what number is the TimeDataRetrieval column displaying. Thank you I know it's an INT. There is just a serious lack of documentation as to what this database is and how it populates its data. View: ExecutionLog InstanceNamenvarchar(38)NOT NULLName...

Read note 48,555 hits
Inserting incremental weeks in MySQL
MySQL

Inserting incremental weeks in MySQL

Situation: I have a silly database table (not mine) storing CMIS Facility week numbers and their starting dates. For those of you unfamiliar with this system, the reason week numbers are different to normal people's week numbers is because these are academic week numbers. So I can't use the built-in functions. The curr...

Read note 31,338 hits
T-SQL DateTimestamps
Transact-SQL

T-SQL DateTimestamps

My setup Windows XP SP3 MS SQL Server Management Studio 2008 SQL Server 2008 R2 Regional Setting: London BST (British Summer Time)

Read note 16,924 hits
MySQL: Find records in one table that are not in another.
MySQL

MySQL: Find records in one table that are not in another.

The Why So I find myself writing increasingly complex SQL scripts and it's at the stage where we need to optimize the queries because some scripts are noticeably slow (as observed by the customer...) and then others not. The What I'm going to run these benchmark tests against a system that is both up and running via th...

Read note 36,911 hits
SQL Calendar in Business Intelligence Development Studio
Transact-SQL

SQL Calendar in Business Intelligence Development Studio

So I find myself searching the web for a way of producing an outlook-style calendar within Business Intelligence Development Studio (BIDS). Weekdays along the top and then dates inside. Additionally we would like this linked to events in a database. I'm calling this project "Reinventing the Wheel" because the request w...

Read note 61,389 hits
Formatting a date in an MDX query
Transact-SQL

Formatting a date in an MDX query

Thought I'd add a note as I was getting confused with the built-in function "FormatDateTime()". The example is shown as: =FormatDateTime(Fields!BirthDate.Value, DateFormat.ShortDate) The other formats are: =FormatDateTime(Fields!BirthDate.Value, DateFormat.GeneralDate) =FormatDateTime(Fields!BirthDate.Value, DateFormat...

Read note 47,215 hits
Merge the content of two similar tables in MySQL
MySQL

Merge the content of two similar tables in MySQL

In standard SQL we can combine the contents of two tables with a CROSS JOIN, (BTW these are not instructions to create some table I'll never use again unlike the rest of the solutions I found on the web). In MySQL, I only know how to do this with a UNION ALL clause. Scenario: I have a Joomla module which should take th...

Read note 37,079 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.