Database Query Help

Need help? - Post here and we will find a solution for you.
HB9BRJ
Old Man
Posts: 174
Joined: 23 Nov 2014, 10:46
Location: Schaffhausen

Re: Database Query Help

Post by HB9BRJ »

It looks as if custom search can handle quite complex SQL expressions. Here is an all-band version of my previous 160m solution:

Code: Select all

(Band = '160m' And Country Not In (Select Distinct Country From Log Where (LotwQslRcvd = 'V' Or QslRcvd = 'Y') And Band = '160m')) Or (Band = '80m' And Country Not In (Select Distinct Country From Log Where (LotwQslRcvd = 'V' Or QslRcvd = 'Y') And Band = '80m')) Or (Band = '40m' And Country Not In (Select Distinct Country From Log Where (LotwQslRcvd = 'V' Or QslRcvd = 'Y') And Band = '40m')) Or (Band = '30m' And Country Not In (Select Distinct Country From Log Where (LotwQslRcvd = 'V' Or QslRcvd = 'Y') And Band = '30m')) Or (Band = '20m' And Country Not In (Select Distinct Country From Log Where (LotwQslRcvd = 'V' Or QslRcvd = 'Y') And Band = '20m')) Or (Band = '17m' And Country Not In (Select Distinct Country From Log Where (LotwQslRcvd = 'V' Or QslRcvd = 'Y') And Band = '17m')) Or (Band = '15m' And Country Not In (Select Distinct Country From Log Where (LotwQslRcvd = 'V' Or QslRcvd = 'Y') And Band = '15m')) Or (Band = '12m' And Country Not In (Select Distinct Country From Log Where (LotwQslRcvd = 'V' Or QslRcvd = 'Y') And Band = '12m')) Or (Band = '10m' And Country Not In (Select Distinct Country From Log Where (LotwQslRcvd = 'V' Or QslRcvd = 'Y') And Band = '10m'))
73, Markus HB9BRJ
User avatar
G4POP
Log4OM Alpha Team
Posts: 11593
Joined: 21 Jan 2013, 14:55
Location: Burnham on Crouch, Essex UK

Re: Database Query Help

Post by G4POP »

One of its biggest strengths Marcus
73 Terry G4POP
w0ls
Advanced Class
Posts: 88
Joined: 05 Jan 2015, 21:07

Re: Database Query Help

Post by w0ls »

Once again...THANKS Markus. I plugged that script into custom search and saved it and of course it works great. Log4OM is certainly flexible and powerful.

73's
Harry
W0LS
User avatar
IW3HMH
Site Admin
Posts: 2988
Joined: 21 Jan 2013, 14:20
Location: Quarto d'Altino - Venezia (ITA)
Contact:

Re: Database Query Help

Post by IW3HMH »

Well, this feature was created to provide more "advanced features" to skilled users.
And reporting those informations is something that made me happy. This is, as Terry said, a perfect p2p support.

I love building Log4OM with powerful features, hard to use sometime, but extremely powerful if well used. It's a great satisfaction when someone plays with queries or regular expression engine :)

In V2 there will be possibility to type a query directly into log4om and show result in the usual Log4OM grid. Hopefully there will be no needs to have a sqlite/mysql software, except in case you need something more than query your database.
Daniele Pistollato - IW3HMH
Locked