I have a frustrating problem. I want to write a script to use a JMP date code, to query an Oracle database.
For instance:
StDt = today() - in weeks(4);
.
If I manually do it using Query Builder, I get something like the code below. What syntax do I need to replace the integer date code with to do this? The documentation is pretty sparse on this topic.
Query1 = New SQL Query(
Version( 130 ),
Connection(...),
QueryName( "Generic Query" ),
Select(
Column( "AA", "t1" ),
Column( "AB", "t1" ),
Column( "BB", "t1" ),
Column( "BC", "t1" ),
Column(
"TIMESTAMP",
"t1",
Numeric Format( "m/d/y h:m:s", "0", "NO", "" )
),
From(
Table(
"XXTABLE",
Schema( "XX" ),
Alias( "t1" )
)
),
Where(
Contains(
Column( "AA", "t1" ),
"Stuff",
UI( Contains( Base( "Categorical" ) ) )
) & Contains(
Column( "AB", "t1" ),
"Other Stuff",
UI( Contains( Base( "Categorical" ) ) )
) & GE(
Column(
"TIMESTAMP",
"t1",
Numeric Format( "m/d/y h:m:s", "0", "NO", "" )
),
3605823947,
UI( Comparison( Base( "Continuous" ) ) )
);