Re: Database Query Help
Posted: 27 Feb 2016, 07:36
It looks as if custom search can handle quite complex SQL expressions. Here is an all-band version of my previous 160m solution:
73, Markus HB9BRJ
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'))