Radarspotting

Mode-S Software => Basestation => Topic started by: Roadrunner on December 29, 2014, 08:19:56 AM

Title: BaseStation.sqb deleting npn military records
Post by: Roadrunner on December 29, 2014, 08:19:56 AM
Can anyone tell me what the format is for deleting non Military aircraft from a sqb. file using sqlite.spy program
I want to start the new year with a .sqb file just containing my military contacts.


Any help would be appreciated.


Mike
Title: Re: BaseStation.sqb deleting npn military records
Post by: Anmer on December 29, 2014, 08:31:59 AM
Bit of a challenge there as I don't recall that the BaseStation .sqb file identifies military aircraft as such.

The hex codes are allocated to civil or military ranges.  Or you can use the aircraft type code.  Have you used another field to identity military?
Title: Re: BaseStation.sqb deleting npn military records
Post by: Roadrunner on December 29, 2014, 09:06:44 AM
Anmer,


From what I can remember it used the Mode S Country . In english it translated into something like "Delete where ModeSCountry not equal to *Mil


I have looked through all my notebooks in which I keedp tips and hints but cant find it'


Mike

Title: Re: BaseStation.sqb deleting npn military records
Post by: Roadrunner on December 29, 2014, 09:08:22 AM
or maybe that should be In english it translated into something like "Delete where ModeSCountry not include to *Mil
[/size]
[/size]Just I dont know the syntaxes necessary for this program.

[/size]Mike
Title: Re: BaseStation.sqb deleting npn military records
Post by: Roadrunner on December 29, 2014, 09:19:11 AM
Anmer,


Just found this in the Kinetic user forum from way back in 2012


Try this:

SELECT *
[size=0pt]from[/size] Aircraft
WHERE ModeSCountry not like '%Mil';

That should list all your non Mil
[size=0pt][/color]entries[/size]. You could also try:

SELECT *
[size=0pt][/color]from[/size] Aircraft
WHERE ModeSCountry like '%Mil';

This should do the reverse and show all your Mil
[size=0pt][/color]entries[/size]. If you are happy then run the [size=0pt][/color]Delete[/size] command instead or Select - and on a backup [size=0pt][/color]SQB[/size] first.

Just had grandchildren arrive at front door so think any playing with this will be on hold for a few hours.

Will test out at earliest convenience and report back

Regards Mike




Title: Re: BaseStation.sqb deleting npn military records
Post by: Roadrunner on December 29, 2014, 09:22:27 AM

Dont know what happened to last post but entry should read:

SELECT * from Aircraft
WHERE ModeSCountry not like '%Mil';

That should list all your non Mil entries. You could also try:

 
SELECT * from Aircraft
WHERE ModeSCountry like '%Mil';

   
This should do the reverse and show all your Mil entries. If you are happy then run the Delete command instead or Select - and on a backup SQB first.


[/size]Regards Mike
Title: Re: BaseStation.sqb deleting npn military records
Post by: Anmer on December 29, 2014, 09:31:10 AM
Thanks Mike.

The different forums may be using different syntax, hence the strange post from the copy text.

Make sure you backup your sqb file to a different folder before you run the sql command.