PureData / Netezza – What date/time ranges are supported by Netezza?

Technology - PureData Netezza - What datetime ranges are supported by Netezza

Netezza supports various date and time data types, such as dates, months, and days.

Netezza supports interval data types differently from other databases by internally normalizing intervals to units of seconds.

When working with interval data in SQL queries, make sure you do not exceed its limits – or else your query could throw an error.

Date time ranges

Netezza date time ranges are data types designed to store dates and times values. They can be utilized in many different applications; however, due to their complex structure they require extensive formatting efforts when dealing with.

Date values, for instance, can include information such as year, month, day, hour, minute, and second. It is possible to manipulate these data types using Netezza’s SQL and stored procedures to manage these records.

Netezza provides date arithmetic on both DATE and DATETIME values, returning an integer representing the number of days, while using DATETIME values produces an INTERVAL value as output from any calculation involving these dates.

Netezza supports both mathematical expressions and date/time values such as ISO date time strings. These values are stored in TIMESTAMP columns which accept DATE or DATETIME values as column values for reading by Netezza and other RDBMSs.

The TIMESTAMP data type supports an extended date- and time range, from 1900-01-01 00:00:00.0 to 1859-00-12 00:00:00:01. It supports many precisions; missing time parts default to 00:00:00.0.

As such, you must be mindful of the restrictions placed upon different data types and how they might influence your application. Although they may seem inconsequential at first glance, their effect could prove pivotal in effectively storing and analyzing large volumes of information.

You might need to calculate the average daily sales for a particular product by using date values with significant price differentials; you can do this using the date function dt_avg_price.

Use the date function dt_min_price to quickly calculate an average sale price for products currently on sale, which can be useful when analyzing trends in your data.

Netezza offers a scalable architecture that enables it to process vast amounts of data quickly and effectively, which makes it an invaluable asset for organizations dealing with large volumes. By giving better insight into your business operations and facilitating informed decision-making processes, this platform helps organizations gain better insight and make smarter business decisions.

Date ranges with timestamps

Netezza date time ranges are an integral component of any data warehousing solution, enabling complex queries on large amounts of historical data while providing an accessible way for non-DB users to digest it all easily.

Date ranges that combine dates, timestamps and other logical data fields are ideal for creating objects of interest. A popular combination is days-hours-minutes which is especially helpful for comparing two or more date types such as tzm time zones or when trying to calculate time differences across multiple locations.

One of the more daunting challenges lies in selecting which temporal data type to use, but fortunately there is an invaluable online resource that can assist with this decision-making. You’ll need to determine what data types fit your Netezza system, so an excellent online tool is available to assist in that search process.

If you are uncertain which temporal data type to select, it’s often easiest to start with the most frequently occurring values and use your best judgment from there. Selecting an inappropriate temporal data type could lead to mismatched values or data loss.

If you are comparing date and time data from different regions, one key decision will be which country’s data should be utilized when selecting which temporal data type to store the information in. A data type calculator can make this task simpler by helping to find an optimal value that fits with your situation.

Date ranges with date fields

Netezza Date Time Ranges efficiently filter and select data from a Data Provider by date field. Use it to quickly locate records that meet a specified date or that fall within a particular range.

Filter and select data by clicking on calendar icons, which opens the Specify Date Range/Duration dialog. Next, choose your options before saving this file – alternatively you may clear existing values and reopen this dialog to modify them if necessary.

You can also create customized date functions from the Manage Date Functions page. View and search your custom date functions before deleting them from the list. You can even maintain multiple languages using drop-down list language selection as well as providing names and descriptions for these date functions.

This app lets you calculate a single date or range using base and relative date configurations, with options from SAP-defined date functions and user-defined functions available.

Enter relative values for days, weeks, months, and years into the base date field or enter an integer in the relative date field and compare against your base date; these results are then displayed.

In addition to the base date field’s configuration options, new From Today and From First Day of settings are now available in the relative date field. These settings correspond with your property’s reporting time zone.

When using relative dates, the system compares it with the previous day’s date and decrements the month and year accordingly – for instance if you entered January 31 as your relative date, its result would be February 23.

To use this feature, a Data Provider must serve as its parent, and the column or field in your table that needs filtering should be selected from the Settings Panel. Alternatively, when connecting to your data provider you can select your default preset.

Date ranges with time fields

Netezza provides multiple ways of using date time ranges. These include Date/Time Fields in Collections, the Date Range component, and date functions within Netezza SQL or stored procedures.

Add a Date/Time field to any collection or data source by selecting “New Field” in the Collection Settings Panel. It can either be set to required or optional status; plus it includes an interactive time picker!

Date/Time fields allow you to easily create custom date ranges in your Databoard and Metrics screens, making them useful when sharing via Shareable Links or previewing in shared environments and wanting to limit how much data is shown to viewers.

Date Range allows users to specify start and end dates to create custom date ranges used to filter table columns and fields in Data Provider. It can be configured for either one property, or multiple properties at the same time.

Created custom date ranges will appear in the Master Date Range Switcher and available when viewing data boards via Shareable Link or Preview mode. If you would like to restrict this feature for users not logged into Databox, go to Share > Additional Settings and check “Restrict ability to view additional Date Ranges for external viewers”.

To use a date range, click the calendar icon to bring up the Specify Date Range/Duration dialog and set your start and end dates and duration for your date range.

Netezza supports various date and time types when creating Custom Date Ranges, such as Informix DATE TO FRACTION(n), Informix DATETIME HOUR TO FRACTION(n) and Informix DATETIME MINUTE TO FRACTION(n). When setting up Custom Date Ranges, remember this support when designing this field type in Netezza. These include Informix DATE TO FRACTION(n), Informix DATETIME HOUR TO FRACTION(n), DATETIME HOUR TO FRACTION(n).

Netezza data types for date and time values can be addressed using the Data Type Helper API, with each having an acceptable range. Although they aren’t strictly enforced, violating them could cause errors that lead to incorrect formatting of values.

Here is a synopsis of the temporal ranges ( date, time, and timestamp), that Netezza / PureData supports.

Temporal Type

Supported Ranges

Size In Bytes


A month, day, and year. Values range from January 1, 0001, to December 31, 9999.4 bytes


An hour, minute, and second to six decimal places (microseconds). Values range from 00:00:00.000000 to 23:59:59.999999.8 bytes

Valid date ranges for Netezza

Field data TypeStorage Data TypeMinimum Valid ValueMinimum Value Shown as a DateMaximum Valid ValueMaximum Value Shown as a DateDisk Usage
Datenumeric(8,0)-7301190001-01-01 00:00:0029219399999-12-31 00:00:004

Related References

Temporal data types

PureData System for Analytics, PureData System for Analytics 7.2.1, IBM Netezza database user documentation, Netezza SQL basics, Data types, Temporal data types

Netezza date/time data type representations

PureData System for Analytics, PureData System for Analytics 7.2.1, IBM Netezza user-defined functions, Data type helper API reference, Temporal data type helper functions, Netezza date/time data type representations

Date/time functions

PureData System for Analytics, PureData System for Analytics 7.2.1, IBM Netezza database user documentation, Netezza SQL basics, Netezza SQL extensions, Date/time functions

%d bloggers like this: