Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Saving results of SQLite query

Author  Topic 

MitSrini
Starting Member

1 Post

Posted - 2010-12-07 : 18:36:56
Hi All,

I am a first time user of SQLite3 via PuTTY.

I have a table with 2 variables UT and T9. UT is unique, but each T9 can appear one or more times against the UTs. For eg., T9=x can appear against UT=a and UT=b. I want to count the number of times each T9 appears in the table. For this, I use a count statement as follows:

select *, count(T9) as numoccur from <tablename> group by T9;

My understanding is that the above statement sorts the data by T9, and then counts the number of rows on which each T9 appears.

How do I save the results of this statement (that appears as a column numoccur) to a new table?

Thanks
MS

robvolk
Most Valuable Yak

15732 Posts

Posted - 2010-12-07 : 19:23:42
You'll have to reference the SQLite documentation: http://www.sqlite.org/docs.html

SQLTeam is a Microsoft SQL Server web site, we don't specialize in SQLite.
Go to Top of Page
   

- Advertisement -