AirNav Systems Forum

AirNav Radar => AirNav Radar Discussion => Topic started by: GlynH on June 06, 2009, 04:00:14 PM

Title: SQL program recommendations?
Post by: GlynH on June 06, 2009, 04:00:14 PM
Hi there,

I have seen many posts regarding running queries on the RB database and am now getting interested in trying just that.

What programs do you guys use to run these queries and do you share your query scripts with other users?

Tarbat - if you are reading this - you mentioned SQLite Maestro 8.1 but I see they are now on v9.x and the cost is $79 I believe - is your 8.1 a paid up/registered version or a free version?

Despite the RB database using a .db3 extension it is SQL right?

I already have MS SQL Server Desktop Engine (KSS) installed on this PC as I use it for call logging & website stats if that has any bearing on anything...

Any other hints/tips/advice gratefully received.

Thanks & kind regards,
-=Glyn=-
Title: Re: SQL program recommendations?
Post by: tarbat on June 06, 2009, 04:25:44 PM
Quote from: GlynH on June 06, 2009, 04:00:14 PMTarbat - if you are reading this - you mentioned SQLite Maestro 8.1 but I see they are now on v9.x and the cost is $79 I believe - is your 8.1 a paid up/registered version or a free version?

I'm on SQLite Maestro v7.12, fully paid for - it cost me £39.  Main benefit for me was the Visual Query Builder, which lets you build SQL without any knowledge of SQL.  I've got about a dozen different queries that I've create with the VQB.  Other thing I use it for is importing/exporting data, cleaning up data, etc.
Title: Re: SQL program recommendations?
Post by: nortonbeak on June 06, 2009, 04:46:44 PM
SQLite is freeware and available at

http://www.sqlite.org/download.html (http://www.sqlite.org/download.html)
Title: Re: SQL program recommendations?
Post by: Tallyho on June 08, 2009, 05:11:30 PM
If you are looking for a fully featured FREE SQLITE managing package then try this...
SQLite2009 Pro Enterprise Manager

Download from here...

http://osenxpsuite.net/?xp=3

I actually use an older version of this programme called SQLite Pro... I am not sure what version of SQLite db navbox currently use, so you may need to check the compatability of this 2009 version, my older version works fine.
Keith
Title: Re: SQL program recommendations?
Post by: GlynH on August 21, 2009, 07:05:40 AM
Quote from: tarbat on June 06, 2009, 04:25:44 PM
I'm on SQLite Maestro v7.12, fully paid for - it cost me £39.  Main benefit for me was the Visual Query Builder, which lets you build SQL without any knowledge of SQL.  I've got about a dozen different queries that I've create with the VQB.  Other thing I use it for is importing/exporting data, cleaning up data, etc.

Hi Tarbat,

I had decided to purchase SQL Maestro but there are a bewildering array of different programs to choose from!

http://www.sqlmaestro.com/purchase/

http://www.sqlmaestro.com/download/

Please help me out here ;^)

I thought I might need SQL Maestro for MySQL v9.2 (single non-commercial) @ $99?

However I seem to have purchased SQLite Maestro v9.3 (single non-commercial license) @ $79

Talk about confusing...but I believe you use SQLite Maestro right?

So...I have downloaded & installed SQLite Maestro v9.3 and couldn't for the life of me see how to load MyLog.db3 into it - it just wanted to create a new database - until I realised I had to Create a Database profile first...how do I know which options I may need to alter or should I leave them all at default?

And do I need to change any other options within the program?

The first thing I wanted to do was zap MyLog.db3 and remove all of the '...' entries from aircraft type - what exactly do I need here and how best to work on this database?

I've just done a search to see if I could find any of the scripts you have posted previously but as usual for me the search was next to useless. Any chance you could point me towards an earlier post where you may have posted some of your scripts please Chris?

Thanks & regards,
-=Glyn=-
Title: Re: SQL program recommendations?
Post by: tarbat on August 21, 2009, 07:39:14 AM
You want SQLite Maestro - http://www.sqlmaestro.com/products/sqlite/maestro/

To open a database:
On the menu - Database - Create Database Profiles.
Give it a GROUP name (eg Radarbox)
In Database Name, locate the Radarbox database (MyLog or Navdata)
Just accept the standard defaults

Then double click the database in the left pane to connect to it.

Also note, there is a free trial of SQLite Maestro available, so best to try it out, learn how to use it, etc. whilst in the trial period.  The trial version of SQLite Maestro is fully-functional and can be used for an evaluative period of 30 days.
Title: Re: SQL program recommendations?
Post by: John Racars on August 21, 2009, 10:02:36 AM
Quote from: tarbat on June 06, 2009, 04:25:44 PM
I've got about a dozen different queries that I've create with the VQB.  Other thing I use it for is importing/exporting data, cleaning up data, etc.

Hi Tarbat,

Any chance that you make this queries public on this forum?
Title: Re: SQL program recommendations?
Post by: John Racars on August 22, 2009, 07:02:49 AM
Sorry, must be a verry stupid question.....
Title: Re: SQL program recommendations?
Post by: DaveReid on August 22, 2009, 07:17:40 AM
Patience is a virtue  :-)
Title: Re: SQL program recommendations?
Post by: tarbat on August 22, 2009, 07:55:54 AM
Quote from: John Racars on August 21, 2009, 10:02:36 AM
Quote from: tarbat on June 06, 2009, 04:25:44 PM
I've got about a dozen different queries that I've create with the VQB.  Other thing I use it for is importing/exporting data, cleaning up data, etc.
Any chance that you make this queries public on this forum?

Okay, but I don't know how useful they will be.  Attached are two text files containing my queries.
Title: Re: SQL program recommendations?
Post by: John Racars on August 22, 2009, 09:16:50 AM
Quote from: tarbat on August 22, 2009, 07:55:54 AM
Okay, but I don't know how useful they will be.  Attached are two text files containing my queries.

Hi Tarbat,

Wow, that is a lot of queries. Thank you verry much! Of course I will all try them out. Sorry for my impatience...
Title: Re: SQL program recommendations?
Post by: tarbat on August 22, 2009, 09:17:13 AM
I've had a quick go at making a couple of "how to" videos showing how to open a Radarbox database in SQLite Maestro, and how to create your first query using the VQB.

http://www.youtube.com/watch?v=GRzqKyYD2pU
http://www.youtube.com/watch?v=2d2hPHg66Zg
(Press the "Watch in HD" button", and view full screen)

A bit rushed I'm afraid, but time is short at the moment.
Title: Re: SQL program recommendations?
Post by: John Racars on August 22, 2009, 09:25:12 AM
Thank you Tarbat for that as well! Verry helpfull video's!!
Title: Re: SQL program recommendations?
Post by: John Racars on August 22, 2009, 02:56:26 PM
Hi Tarbat and All,

I tryed out some queries. They are working verry well but......

The source of all is in most of the cases the "MyLog.db3" file from the AirNavRadarBox. This file is (I am still 3.01 Beta user) not OK. This is no criticism, as said I am Beta user but still hope and trust that all problems will be solved with the release of the next version.

I reported this with exemples to Support and (when I good remember) to you as well in the past after 3.0 Beta was launched.

Tarbat, thank you again!
Title: Re: SQL program recommendations?
Post by: tarbat on August 22, 2009, 03:03:41 PM
Quote from: John Racars on August 22, 2009, 02:56:26 PMThe source of all is in most of the cases the "MyLog.db3" file from the AirNavRadarBox. This file is (I am still 3.01 Beta user) not OK.

My MyLog.db3 is okay.  What's the problem?

The queries in the file "NavData Queries.txt" use the Navdata database.
Title: Re: SQL program recommendations?
Post by: John Racars on August 22, 2009, 06:18:41 PM
Quote from: tarbat on August 22, 2009, 03:03:41 PM
My MyLog.db3 is okay.  What's the problem?

Hi Tarbat,

I am verry sorry but with me it is not okay. I send you (and Support as well) a report in the past. So I think you (and Support) knows the problems I reported. If you read the reports I send to you careful you must see what I mean??????????????? Am I the only one in the world of ANRB-users have this problems?

I see much doubling lines of flights; flight with wrong route information, flights with NO route information while there is information in the local database....It is a big  heap of ruins when a make a querie........

I reported this to Support and they told me the problem is known and should be solved....
Title: Re: SQL program recommendations?
Post by: tarbat on August 22, 2009, 07:07:38 PM
Quote from: John Racars on August 22, 2009, 06:18:41 PMI see much doubling lines of flights

Yes, I get this, but usually caused by an aircraft changing it's FlightID many times.  See VT-ESO in my log from yesterday.  It correctly shows that the aircraft cycled through many Flight IDs, so not an error in my opinion.
http://www.tarbat.gofreeserve.com/data.html

Quote from: John Racars on August 22, 2009, 06:18:41 PMflight with wrong route information

Yes, sometimes the route lookup is wrong.  That's not a problem with MyLog, more a problem with the route lookup service that ANRB uses.

Quote from: John Racars on August 22, 2009, 06:18:41 PMflights with NO route information while there is information in the local database

Not seen this, but may be caused by transition from network to local flight - something Airnav have said will be investigated.
Title: Re: SQL program recommendations?
Post by: John Racars on August 23, 2009, 07:16:32 AM
OK Tarbat, thank you for your explanation.

The crux:

Why did I not see all this phenomena in version 2? Reports I made there with the help of SQLite Maestro looks allways verry clean......

And, I have switched off the network most of the time (because I have more then enough with the receptions with my own setup).