Next Previous Contents

10. Doing a search

Click SEARCH & STAT in the main menu to go to the Search-page.

10.1 Some WILDCARDS

I first want to give you an idea of the wildcards you can use. There are a lot more wildcards, but the following ones are the most important.

% : general wildcard ; very often this is "*".

"____" : lenght. Here 4 underscores, between "" : 4 characters long.

>= : Bigger then or equal to ; <= : smaller then or equal to.

= : equal to

!= or <> : not equal to.

The use of like : like 'item' .

10.2 SEARCH

The start-page looks like this:

picture

Please note : the "call field" is no longer "CALL", but "CALL_NAME" due to technical reasons. This has to do with the fact that in MySQL 5 CALL is a function.

10.2.1 On which items can you search ?

How does this works ?
Very easy. First you have to decide on how many items you want to count.
Only one ? Only search on a call ? Then you're ready to go.
Fill in the call you are looking for and press Perform query .
But you can do more here. You can make a search on every item that is in the QSO-TABLE of the DB.
Click the arrow and you will see. Or go to Description of the Tables of the DB LiHaLo .
Lets say you want to see the qso's on 40m , cw , with CQ 18 for which you received qsl : So that are 4 queries. Press MORE 3 times. Select BAND, MODE, QSLR, CQ and fill in their resp. values.
It will look like this:

picture

Press "Perform query" and you'll see the qso's you made on 40m, cw,with CQ-zone 18 for which you did receive a qsl-card.
Maybe it's a good idea to re-read this page after a few days of logging. When there's nothing in your DB, it's difficult to get something back .... . And most of it is obvious.

NOTE: You can open a second browser window (usually CTRL + N), direct the new one also to localhost/LiHaLo and press "SEARCH & STAT". Now let's say 6m is open. Press 1 time on "MORE". Let the first one be "BAND" and fill-in "6m" , the second one "LOC". Fill-in the locator you hear. You will see whether you worked that locator or not. (use JO20% e.g.). If there is some return, you worked it. If not : you didn't. Now press you browser"s back-button. You check a new locator. You can also press 3 times on "MORE" ans select QSLR "Y" to only display the locators that you have confirmed.

10.2.2 Some examples of search

Maybe it's a good idea to re-read this page after a few days of logging. When there's nothing in your DB, it's difficult to get something back .... . And most of it is obvious.

10.3 CMD-SEARCH

Clicking CMD-SEARCH will give you this :

picture

This is powerful. It is the MySQL Command Line made graphic ..... .

10.3.1 Select statements

The query starts with : "select * from " ....

This means : Select all fields from ..... You can change this be overwriting the "*":
Select CALL_NAME, BAND, MODE, QSLR from " ....

Please note : CALL_NAME,BAND, MODE MUST be in CAPITALS

Then you choose the TABLE, which will be in most cases : QSO .

you have the choise of : sat_name_, sat_mode, qso, party, modes, config, bandlist, adifdxcc, PROPA and PFXTOADIF.

To understand this better : check chapter 14 : Description of the Tables of the DB LiHaLo .
Then you continue with "where" and you "make your search-statement".

10.3.2 Examples of a cmd-search

  1. where DATE = "2003-10-13"
  2. This gives you all qso on date 2003-10-13, if that day you logged something .... .
  3. But you can do more .... where DATE >="2003-10-21" and DATE <="2003-11-03" This gives you the qso's between 2003-10-21 and 2003-11-03. Sometime 00 is ok in a date : 2003-10-00 . Find thisone out ....
  4. where ADLIB like "DOC%" Gives you the qso's where the adlib field starts with "DOC".This if for if you want to keep track of the DL-DOC's. You can chooce to fill-in whatever you want. If you want to keep track off OBLAST : >>> add OBL/ to adlib.
    To mention that a OM is member off BAFARA : ADD BAF/. Whatever you imagine is ok.
  5. where IOTTA like "na%" This will give all qso's with iota's in North America.
  6. where LOC like "______" { 6 underscores inbetween "" } This is to find those qso's for whom you have all 6 digits in the locatorfield.
  7. where BAND = "10m" and ADIF = "291" and MODE ="cw" and DATE >"2001-09-23"
    gives you all cw qso's on 10m with usa , after 2001-09-23

  8. But you can even do more with this.
  9. SELECT distinct(ADXCC) FROM QSO where BAND like '40m' and MODE like 'ssb' order by ADXCC .
    This gives you all dxcc's on 40m, ssb, ordered by ADXCC. But for this the "DXCC Stats" are better.
  10. SELECT * FROM ADIFDXCC . That's all. You 'll get something like this (you'll get more then you see here):

    picture

    This is a list of all links between a dxcc and its adifnumber. So if you know the adxcc, you can find the adifnumber. And then you can find all the prefixes for that dxcc.

  11. An example:
    SELECT * FROM ADIFDXCC where ADXCC like 'jap%' . This gives you :

    picture


    Now you know that the ADIFNR. for Japan = 339.
    So now you do : SELECT * FROM PFXTOADIF where ADIF = 339 and you get : (this is part of what you really see)

    picture

  12. SELECT CALL_NAME,BAND, MODE, DATE, TIME, QSLR FROM QSO where CQ = 32 .
    This can give you :

    picture

I hope this is clear enough. You can try a few things out. These are just a few examples.
A good source for learning this, of course, is : MySQL's documentation

10.4 DXCC Stats

The main thing this page is for, is to count ; to count how many "items" you have. To count how many different "items" you have in your logbook. Let's take a look at the start page (the default settings) :

picture

At the outmost left you see "ITEM". This is the "thing" on which you're going to count.
ADXCC = DXCC // That "A" comes from ADIF
The other things, more to the right , are there to "narrow your question". Those are the "selection-criteria".
You see checkboxes (the squares, all of them are selected) , and you see the Radioboxes (the circles), only "ITEM" is selected.

The radioboxes are to select (or deselect) a criterion and the radioboxes are to select "order by" that criterion.
It must be said that if you have all 6 criteria selected, the "order by" will not be so clear ..... .

All checkboxes are standard SELECTED. So if you DO NOT want to limit your question e.g. to "CONTEST_ID", you have to UN-CHECK the CHECKBOX.
This counts for every selection-criterion.

If you un-check every checkbox, you get a list of all the dxcc's you worked, all band, all mode. If you then check QSL back in, you get the total dxcc's, all band & all mode that you have confirmed.

So by clicking on ITEM you have the choise of a few things :
ADXCC : will give you an answer to the question : how many different dxcc's do I have in my logbook ? You will get a list of all the dxcc's you worked and the number (count) of dxcc's..
Selecting LOC, STATE, IOTA, CQ, ITU, CALL_NAME and CONTEST_ID will do the same as described above for the resp. ITEM.

You can refine your search by selecting a specific BAND or a specific MODE etc. So you can , for example, count how many different CQ-zones you worked on 15 meter SSB.

Maybe at this point it's to soon to understand this. Maybe it's a better idea to start doing some logging and to re-try this after a few days, when there are some qso's logged in the DB. You don't get anything back if your DB is empty.

10.5 BAND Stats

So the BAND Stats are complementary to the other search-methods. So in some cases you must use the other search-methods. But BANDS STATS will give you a lot of information on your dxcc-, cqz-, ituz-status.
Maybe you know the spreadsheets some people have to keep track of their dxcc-status. It is with that in my mind that I started working on the BAND Stats ; to provide an easy overview of what you worked and have confirmd. But, as usually was the fact in LiHaLo, this grew out to a little bit more, and different, then meant at the start.

It doesn't do the same as those spreadsheets. It is different. But I found it very handy. Maybe I'll make a spreadsheet later.
I think the use of BAND Stats is easy.

Let's take a look on how it looks like : The whole thing can be devided in 7 parts, separated by a horizontal line.
As stated several times before : there must be something in your DB to get something back.

picture

I think it's all very obvious. Just try it out !

10.5.1 BASICS

It is always best to narrow down your question, especially when you have a lot in your DB ~ many qso's.
"%" stands for : search on everything. "__" means : the lenght of that field is 2 , independent of its contents. So in this case : all contonents.

10.5.2 CQZ, ITUZ, LOC, STATE

Here your query is concentrated on resp. CQZ, ITUZ, LOCATOR, STATE.
I think the best way to see what you get is by trying it out. The first column will be what you selected.

This may also be the place for the V/U/SHF people.
When you select e.g. 6m (or 2m,70cm ...) and you do a search for the locator, you'll see the locators limited to the first 4 digits.
You'll see all modes, for each locator, and whether you have confirmd them, or not.

10.5.3 GENERAL ADXCC

I could devide this in 2 part : GENERAL ADXCC and ADXCC.
But I (once more) think it is obvious.
With GENERAL ADXCC : you pick out a DXCC and you press GENERAL ADXCC.
Let's say you choose : ENGLAND. You then see something like this (depending on YOUR log of course):

picture
With ADXCC you can choose a DXCC for one band.

10.5.4 GENERAL COUNT

Pressing this button gives you a count of all the dxcc's you worked and all the dxcc's you have confirmd, on all bands, all modes.
For a more specific selection : go to DXCC Stats.
You might be seeing something like this :

picture

10.6 QSO_ID

Pressing this button gives you the total of different qso's you have.
This is for in case your QSO-ID has been mixed-up by deleting a qso.
Next Previous Contents