Database Table Space Character Removal via NO SPACE Attribute

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Current database systems require manual integration of TRIM functions to remove leading and trailing space characters, which makes SQL statements unreadable and can lead to slower performance due to table scans instead of index searches.

Innovation Solution

A method to automatically remove space characters from data entered into a database system by using a 'NO SPACE' attribute during table creation, ensuring space characters are stripped before data entry, thus eliminating the need for TRIM functions in SQL statements.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Manufacturing precision

If TRIM functions are integrated in the program or SQL request to remove space characters, then space characters are removed from data, but the program or SQL statements become unreadable and performance deteriorates due to table scans

Engineering Contradiction:
Improvedata cleanlinessVSAvoidSQL statement complexity
Core Design Contradiction:
Manufacturing precisionVSDevice complexity

Solution Approach 1:

The space character removal is performed as a preliminary action during the data entry process itself, before the data is stored in the database. The database system automatically trims leading and trailing space characters from incoming data values, eliminating the need for manual TRIM function integration in applications or SQL statements.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The database system performs the space character removal function autonomously during data entry operations. The system self-manages the trimming process through internal mechanisms, freeing applications and users from the burden of manually integrating TRIM functions while maintaining data cleanliness.

Inventive Principle:
Principle #25Self-service

2Manufacturing precision

If TRIM functions are used on column values to remove space characters, then data is cleaned, but table scans are performed instead of index searches causing slower performance

Engineering Contradiction:
Improvedata cleanlinessVSAvoidquery performance
Core Design Contradiction:
Manufacturing precisionVSProductivity

Solution Approach 1:

The trimming operation is performed as a preliminary action during data insertion, update, or delete operations. By removing space characters before data is stored in the database, the actual data stored in tables and indexes is already clean, allowing subsequent queries to use indexes efficiently without triggering table scans.

Inventive Principle:
Principle #10Preliminary action

3Manufacturing precision

If manual TRIM functions are required to remove space characters, then data can be cleaned, but the system requires additional programming effort and integration work

Engineering Contradiction:
Improvedata cleanlinessVSAvoidsystem implementation ease
Core Design Contradiction:
Manufacturing precisionVSEase of manufacture

Solution Approach 1:

The database system provides self-service by automatically performing space character removal during data entry operations. This eliminates the need for applications or users to manually integrate TRIM functions, significantly reducing programming effort and system implementation complexity while maintaining consistent data cleanliness.

Inventive Principle:
Principle #25Self-service

Data Source

PatentUS7475086B2Method of automatically removing leading and trailing space characters from data being entered into a database system
Publication Date: 2009.01.06 SAP SE
  • US7475086B2 patent drawing
  • US7475086B2 patent drawing
  • US7475086B2 patent drawing

AI summary

A computer Implemented method of automatically removing space characters from data being entered into a database system are provided. When a user creates a table in a database system into which data having leading and/or trailing character spaces may be entered, the user may specifically instruct the database system to remove any character spaces before entering the data into the table. Consequently, when a piece of data is being entered into the table, the database system will determine whether the piece of data includes leading and/or trailing character spaces. If so, the database system will automatically remove the character spaces from the piece of data before it is entered into the table. Hence, the use of TRIM functions when retrieving data from the database system will be obviated.