D dwn.220.v.ua

sql max date or null

Only if no rows contain a NULL should we return the MIN (or MAX). The effec...

📦 .zip⚖️ 69.5 MB📅 14 Dec 2025

Only if no rows contain a NULL should we return the MIN (or MAX). The effect you want is to treat the NULL as the largest possible date then.

⬇ Download Full Version

Give this a shot: SELECT ID, case when MAX(DATE IS NULL) = 0 THEN max(DATE)...

📦 .zip⚖️ 120.2 MB📅 19 Oct 2025

Give this a shot: SELECT ID, case when MAX(DATE IS NULL) = 0 THEN max(DATE) END AS DATE FROM test GROUP BY ID;.

⬇ Download Full Version

You can try selecting what you want, excluding duplicates, and then doing a...

📦 .zip⚖️ 80.4 MB📅 27 Dec 2025

You can try selecting what you want, excluding duplicates, and then doing a union, similar to this; SELECT VAL, MAX(DAT) FROM T1 WHERE.

⬇ Download Full Version

Try this: SELECT [ID], CASE WHEN MAX(CASE WHEN [Date] IS NULL THEN 1 ELSE 0...

📦 .zip⚖️ 94.4 MB📅 11 Oct 2025

Try this: SELECT [ID], CASE WHEN MAX(CASE WHEN [Date] IS NULL THEN 1 ELSE 0 END) = 0 THEN MAX([Date]) END FROM YourTable.

⬇ Download Full Version

Hello all, I need to in my query get the Max Date from a column but treat a...

📦 .zip⚖️ 64.6 MB📅 11 Feb 2026

Hello all, I need to in my query get the Max Date from a column but treat a null value as the Max value and return Null if that is the case. What is.

⬇ Download Full Version

By default the functions MAX and MIN do not count NULL in their evaluation ...

📦 .zip⚖️ 25.6 MB📅 11 Dec 2025

By default the functions MAX and MIN do not count NULL in their evaluation of your data. If we have a column containing only dates for instance.

⬇ Download Full Version

Join Date: Apr ; Posts: sql, an Aggregate Function (i.e. Min, Max, Avg, Cou...

📦 .zip⚖️ 53.7 MB📅 18 Feb 2026

Join Date: Apr ; Posts: sql, an Aggregate Function (i.e. Min, Max, Avg, Count) will always return at least 1 row. If there are no rows in.

⬇ Download Full Version

I'm using the max function to find the last follow up date. to tell SQ...

📦 .zip⚖️ 75.3 MB📅 12 Oct 2025

I'm using the max function to find the last follow up date. to tell SQL what that definition is (by replacing the null value with the defined value).

⬇ Download Full Version

SELECT MAX(a) FROM R. If R is empty, the query must return NULL, not empty....

📦 .zip⚖️ 94.4 MB📅 06 Mar 2026

SELECT MAX(a) FROM R. If R is empty, the query must return NULL, not empty. [5]; If R is a one-row table holding NULL, Date and.

⬇ Download Full Version

I want to use MIN and MAX to show the oldest and youngest age of customers....

📦 .zip⚖️ 47.2 MB📅 26 Apr 2026

I want to use MIN and MAX to show the oldest and youngest age of customers. However, when I run sql, the null value show up instead of MIN.

⬇ Download Full Version

In the event all the npldate values are null the max difference should equa...

📦 .zip⚖️ 46.2 MB📅 22 Feb 2026

In the event all the npldate values are null the max difference should equal 0 . The problem is sql is treating the null value as the oldest date.

⬇ Download Full Version

SQL> with x as (2 select null dt from dual union all 3 select sysdate fr...

📦 .zip⚖️ 35.7 MB📅 03 Sep 2025

SQL> with x as (2 select null dt from dual union all 3 select sysdate from dual 4) 5 select min(dt) 6 Assume that some of the dates are null.

⬇ Download Full Version

NULL values are ignored unless all the records are NULL, in which case a NU...

📦 .zip⚖️ 48.3 MB📅 23 Sep 2025

NULL values are ignored unless all the records are NULL, in which case a NULL MIN or MAX can be called as a window function (i.e. by specifying an OVER.

⬇ Download Full Version

a simple calculation: if [Date] = Max([Date]) then [Value] else null end I ...

📦 .zip⚖️ 78.1 MB📅 21 May 2026

a simple calculation: if [Date] = Max([Date]) then [Value] else null end I used Custom SQL) to generate another column for the latest date.

⬇ Download Full Version

If IsNULL(MAX(date)) then NULL else MAX(date) . is a rather awkward process...

📦 .zip⚖️ 89.4 MB📅 16 Feb 2026

If IsNULL(MAX(date)) then NULL else MAX(date) . is a rather awkward process (barring solving it in SQL or using multiple data providers).

⬇ Download Full Version