Custom query problem

F6FLU
Old Man
Posts: 476
Joined: 03 Aug 2015, 15:33
Location: Near Paris
Contact:

Custom query problem

Post by F6FLU »

Hello
I can no longer use filters with personal queries

For example, if I want to select the records whose
QSO date is >= 02/22/205
AND
<= 02/23/2025
AND
whose SRx field is = 10
or
Srx = 19

this does not work

QdoDate >= "22/02/2025"
AND
QsoDate <= "23/02/2025"
AND
( SRx = "10" OR SRx = "19" )

If I select the condition in the field provided in the drop-down menu and I build my query, I cannot add it using the + button at the top right

even if I do a simple query like
QsoDate >= "22/02/2025" AND QsosDate <= "23/02/2025" it doesn't work

I must probably make mistakes in these queries

Before we could create our query in the "use Params" tab and if we then went to "Use custom query" we saw the query created in "use Params" transformed and it was proposed to us in the "Use custom query" tab, we only had to put the parentheses in the right place to make a complete query

If you had any advice ...
Thanks
2025-03-01 10_08_17.jpg
2025-03-01 10_08_17.jpg (29.43 KiB) Viewed 4062 times
Dan - F6FLU
Log4OM V2.35.1.0 - Windows 11 - i9-11900K - SSD 512Go - 32 Go
FTdx101D - Hexbeam - Wire dipole 40-30M
https://F6FLU.org
User avatar
G4POP
Log4OM Alpha Team
Posts: 11571
Joined: 21 Jan 2013, 14:55
Location: Burnham on Crouch, Essex UK

Re: Custom query problem

Post by G4POP »

incomplete without time because the adif format includes date and time in a single field

This works fine

Untitled.png
Untitled.png (18.29 KiB) Viewed 4048 times
73 Terry G4POP
F6FLU
Old Man
Posts: 476
Joined: 03 Aug 2015, 15:33
Location: Near Paris
Contact:

Re: Custom query problem

Post by F6FLU »

YES but that doesn't works with "use custom query"

this Pb is only with "Custom Query"
if I use "Params" that works fine
2025-03-01 11_22_40.jpg
2025-03-01 11_22_40.jpg (34.53 KiB) Viewed 4044 times
Dan - F6FLU
Log4OM V2.35.1.0 - Windows 11 - i9-11900K - SSD 512Go - 32 Go
FTdx101D - Hexbeam - Wire dipole 40-30M
https://F6FLU.org
User avatar
G4POP
Log4OM Alpha Team
Posts: 11571
Joined: 21 Jan 2013, 14:55
Location: Burnham on Crouch, Essex UK

Re: Custom query problem

Post by G4POP »

well it works for me I just filtered 277 QSO's by date range using same parameters as your image from the 67,050 QSO's in my log

Are you sure that you had QSO's for those specific 2 days?

BTW you dont need the EXTRA 'and' because it defaults to 'And' without that

And you dont need to have the first line either it will sort all unless you add a filter for mode or band etc

Untitled.png
Untitled.png (18.72 KiB) Viewed 3996 times
73 Terry G4POP
F6FLU
Old Man
Posts: 476
Joined: 03 Aug 2015, 15:33
Location: Near Paris
Contact:

Re: Custom query problem

Post by F6FLU »

G4POP wrote: 01 Mar 2025, 12:19 well it works for me I just filtered 277 QSO's by date range using same parameters as your image from the 67,050 QSO's in my log

Are you sure that you had QSO's for those specific 2 days?

BTW you dont need the EXTRA 'and' because it defaults to 'And' without that

And you dont need to have the first line either it will sort all unless you add a filter for mode or band etc


Untitled.png
YES.
Because you use the param option and not the custom query…
Dan - F6FLU
Log4OM V2.35.1.0 - Windows 11 - i9-11900K - SSD 512Go - 32 Go
FTdx101D - Hexbeam - Wire dipole 40-30M
https://F6FLU.org
User avatar
G4POP
Log4OM Alpha Team
Posts: 11571
Joined: 21 Jan 2013, 14:55
Location: Burnham on Crouch, Essex UK

Re: Custom query problem

Post by G4POP »

But why use a custom query when its not required? the default parameters will do most things

Custom queries use SQL strings not the syntax your using

e.g DXCC=291 and callsign like'%1%'

This returns all US stations worked with a '1' in the call sign

Your mixing parameter strings with SQL Queries
73 Terry G4POP
F6FLU
Old Man
Posts: 476
Joined: 03 Aug 2015, 15:33
Location: Near Paris
Contact:

Re: Custom query problem

Post by F6FLU »

Because I want to search that :

For example, if I want to select the records whose
QSO date is >= 22/02/2025 00:01:00
AND
<= 23/02/2025 23:59:59
AND
whose SRx field is = 10
OR
Srx = 19
OR SRX = xx etc ..
==================================
QdoDate >= "22/02/2025"
AND
QsoDate <= "23/02/2025"
AND
( SRx = "10" OR SRx = "19" )
==================================
Dan - F6FLU
Log4OM V2.35.1.0 - Windows 11 - i9-11900K - SSD 512Go - 32 Go
FTdx101D - Hexbeam - Wire dipole 40-30M
https://F6FLU.org
User avatar
CT1BXX
Old Man
Posts: 483
Joined: 21 Jan 2013, 15:27

Re: Custom query problem

Post by CT1BXX »

F6FLU wrote: 01 Mar 2025, 14:26 Because I want to search that :

For example, if I want to select the records whose
QSO date is >= 22/02/2025 00:01:00
AND
<= 23/02/2025 23:59:59
AND
whose SRx field is = 10
OR
Srx = 19
OR SRX = xx etc ..
==================================
QdoDate >= "22/02/2025"
AND
QsoDate <= "23/02/2025"
AND
( SRx = "10" OR SRx = "19" )
==================================
Hi Dan,
Please try this query
query.jpg
query.jpg (50.57 KiB) Viewed 3605 times
73 Manuel Fernando CT1BXX
F6FLU
Old Man
Posts: 476
Joined: 03 Aug 2015, 15:33
Location: Near Paris
Contact:

Re: Custom query problem

Post by F6FLU »

Hello Manuel
NO that doesn't works ...
Dan - F6FLU
Log4OM V2.35.1.0 - Windows 11 - i9-11900K - SSD 512Go - 32 Go
FTdx101D - Hexbeam - Wire dipole 40-30M
https://F6FLU.org
User avatar
CT1BXX
Old Man
Posts: 483
Joined: 21 Jan 2013, 15:27

Re: Custom query problem

Post by CT1BXX »

F6FLU wrote: 01 Mar 2025, 22:45 Hello Manuel
NO that doesn't works ...
Hello Dan.
I am sorry that do not work. :oops:

Here I have tested and worked for me, however I want to tell you I'm not an exepert I'm just a curious person who likes to test, and in this process I've created the queries that I personally use.

Today I have family at home for lunch, but when I finish I will return to the subject and try to analyze within my small experience, however I will leave here the line of the query and suggest that you do "Copy/Paste" and try one more time.

Here is the complete text I am using: do not forget ; at end
Have a nice sunday and again sorry I have tried my best. :(

qsodate >= '2025-02-22' AND qsodate <= '2025-02-23' and SRx like '10';
73 Manuel Fernando CT1BXX
Post Reply