logo

Warning: The forum is now for consultation only. Please use GitHub Discussions to post any questions or comments.


Welcome Guest ! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
JohnChen  
#1 Posted : Thursday, November 14, 2019 3:02:20 AM(UTC)
JohnChen

Rank: Newbie

Groups: Registered
Joined: 10/26/2019(UTC)
Posts: 9
China
Location: China

Thanks: 1 times
Was thanked: 1 time(s) in 1 post(s)
Hi,

My sql is:
select 'SYEN' as hospital, count(PHONE_NO) as countnumber from smsrequestqueue
where success_ind = 'Y'
and sms_type is null
and entitymstr_id = 1
and sendtime is not null
and content like 'Thank%'
and created_datetime >= trunc(to_date({CommonValue_date1},'yyyy-mm-dd hh24:mi:ss'), 'd')+1
and created_datetime < trunc(to_date({CommonValue_data1},'yyyy-mm-dd hh24:mi:ss'), 'd')+8
group by entitymstr_id;

The output is:
https://drive.google.com...mJMA9sQ/view?usp=sharing

[img=https://drive.google.com/file/d/1gYUYB-UfmcIlWIli3I-Y3lH8VmJMA9sQ/view?usp=sharing]a1[/img]

I assume the input box will be single one. But there are 2 boxes. The second is not required. How can I change to single one?

Thanks,

John
epf  
#2 Posted : Thursday, November 14, 2019 7:46:21 AM(UTC)
epf

Rank: Administration

Groups: Administrators
Joined: 12/20/2013(UTC)
Posts: 1,209
Switzerland

Thanks: 14 times
Was thanked: 206 time(s) in 199 post(s)
You have CommonValue_date1 and CommonValue_data1
this is not the same name...
JohnChen  
#3 Posted : Thursday, November 14, 2019 8:28:51 AM(UTC)
JohnChen

Rank: Newbie

Groups: Registered
Joined: 10/26/2019(UTC)
Posts: 9
China
Location: China

Thanks: 1 times
Was thanked: 1 time(s) in 1 post(s)
Sorry. It's just a typo. I do have only one CommonValue. And set it to type date & time. But there are 2 input boxes for picking up date, just like the picture shows.
JohnChen  
#4 Posted : Thursday, November 14, 2019 9:26:48 AM(UTC)
JohnChen

Rank: Newbie

Groups: Registered
Joined: 10/26/2019(UTC)
Posts: 9
China
Location: China

Thanks: 1 times
Was thanked: 1 time(s) in 1 post(s)
The link has been shared now.
epf  
#5 Posted : Thursday, November 14, 2019 10:07:43 AM(UTC)
epf

Rank: Administration

Groups: Administrators
Joined: 12/20/2013(UTC)
Posts: 1,209
Switzerland

Thanks: 14 times
Was thanked: 206 time(s) in 199 post(s)
This is correct as you can enter several values for a restriction (up to 4)...
If you want only one value, set the restriction property 'Prompt restriction' to 'Prompt only one value'
thanks 1 user thanked epf for this useful post.
JohnChen on 11/15/2019(UTC)
JohnChen  
#6 Posted : Friday, November 15, 2019 12:51:40 AM(UTC)
JohnChen

Rank: Newbie

Groups: Registered
Joined: 10/26/2019(UTC)
Posts: 9
China
Location: China

Thanks: 1 times
Was thanked: 1 time(s) in 1 post(s)
Thanks. I should look all the options there.
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.