cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • JMP will suspend normal business operations for our Winter Holiday beginning on Wednesday, Dec. 24, 2025, at 5:00 p.m. ET (2:00 p.m. ET for JMP Accounts Receivable).
    Regular business hours will resume at 9:00 a.m. EST on Friday, Jan. 2, 2026.
  • We’re retiring the File Exchange at the end of this year. The JMP Marketplace is now your destination for add-ins and extensions.

Discussions

Solve problems, and share tips and tricks with other JMP users.
Choose Language Hide Translation Bar
HansD
Level II

Query Builder filtering on date stored in Varchar(20)

Query Builder - date filter.

SQL Server

JMP version 16.2

In the database (SQL Server) I get the Date field called RETURNDATE in ‘varchar20’ – I would like to use the Calendar functionality in the filter to select my dates

HansD_0-1643119365032.png

 

I tried to create a calculated column (Calc1) and specify CAST([RETURNDATE] as date), which he doesn’t like.

HansD_1-1643119365033.png

 

Using SQL outside Query Builder

SELECT TOP (1000) [LABJOBNO]

      ,[DESPATCHNO]

      ,CAST([RETURNDATE] as date) as CRETURNDATE

No problem

 

Using

Open Database( in JMP JSL with

WHERE ( CONVERT(DATE, DESPATCHRETURN.RETURNDATE, 106) between '01/01/2019' AND '12/31/2019')

Also no problem

 

Query builder doesn’t allow the entering of the quoted date string in the filter

Any advice?

Hans

 

0 REPLIES 0

Recommended Articles