[sqlite] Primary Key uniqueness

2012-03-29 Thread Joe Bennett
Hi, I have three sqlite3 datbases that currently have no primary key (actually done with two and stuck on the third). I am converting them to 'new' tables with a primary key like so: create table if not exists new_table (Column_1,Column_2,Column_3..,Column_47, primary key(Column_1,

Re: [sqlite] Create Temp Table from Query

2012-03-06 Thread Joe Bennett
AS >SELECT ... > > Is that what you're looking for? > > > -Original Message- > > From: sqlite-users-boun...@sqlite.org [mailto:sqlite-users- > > boun...@sqlite.org] On Behalf Of Joe Bennett > > Sent: Friday, March 02, 2012 10:44 AM > > To: sqlite-users@

[sqlite] Create Temp Table from Query

2012-03-02 Thread Joe Bennett
Hi, I am looking for some info on how to take an sqlite query result and move that into a temp table. My hope is to focus the subsequent queries down to a smaller dataset... I've been searching Google a bit but have not been able to find what I am loking for... I'm not sure if that means this is

Re: [sqlite] Pivot table from multiple columns

2011-02-17 Thread Joe Bennett
Cool, thank you! This works perfect... Now I have to disect it and figure this syntax out more... Thanks to all for the education! -Joe On Wed, Feb 16, 2011 at 5:15 PM, Simon Davies <simon.james.dav...@gmail.com>wrote: > On 16 February 2011 23:00, Joe Bennett <jammer10...@gmai

Re: [sqlite] Pivot table from multiple columns

2011-02-16 Thread Joe Bennett
from the table example I gave below: *Result**Count(result)* Value A 2 Value B 1 Value C 2 Value D 2 Value E 1 -Joe On Wed, Feb 16, 2011 at 3:40 PM, Jay A. Kreibich <j...@kreibi.ch> wrote: > On Wed, Feb 16, 2011 at 03:24:51PM -0600, Joe Bennett

[sqlite] Pivot table from multiple columns

2011-02-16 Thread Joe Bennett
Hi all, I am trying to locate any examples (if possible) that can clue me in on taking column a and appending column b then do a pivot/group by to get the total for each unique values... I'll try to demonstrate the base data: *Column_1* *Column_2* Value AValue C Value B

[sqlite] Update not completely commit(ing)

2010-12-24 Thread Joe Bennett
Hi all, Have a question regarding a particular issue I am dealing with... I have a database in which I create a pivot table to get a no dupe list using a 'select distinct'. I then take that list into Python and then iterate over it to look up data in another table to add in the latitude and

Re: [sqlite] Comparing two tables?

2009-09-30 Thread Joe Bennett
I'm not sure I'm far enough along with sqlite to maybe get what ya'll are telling me... I'll try explaining it this way... Have two tables that have the same columns, but different number of rows (rows do not match but columns do. 86 matching columns in each table): TableA: Column1Column 2

Re: [sqlite] Comparing two tables?

2009-09-29 Thread Joe Bennett
Figuratively I'm looking to take a row in table A, find it in table B and compare the values in each column... If there is a delta, let me know What I am trying to do is take an old table and compare it to the new one and show the changes... -Joe On Tue, Sep 29, 2009 at 12:37 PM,

[sqlite] Comparing two tables?

2009-09-29 Thread Joe Bennett
Hi, Have two tables structured exactly the same. Want to compare both of them and get the delta. Been Googling for about an hour now and I see tools that do this (maybe a freeware one I haven't found?) and was looking for a solution that more meets the budget I was given for this project,

Re: [sqlite] Tedious CSV import question

2009-09-26 Thread Joe Bennett
Hi, Please send me a copy if you would. Been looking at doing this exact same thing! -Joe On Thu, Sep 24, 2009 at 7:42 PM, C. Mundi wrote: > On Thu, Sep 24, 2009 at 12:37 PM, C. Mundi wrote: > >> >> Hi.  I have scanned the list archives and Googled.  I