Support 805.461.7300
Sales
Our Technology. Your Success.

Create an Excel file with count by State

ON ERROR com_message=message()
SET SAFETY OFF
com_alias=alias()
alter table alias() add column stcnt N(10)
SELECT st, count (st) as stcnt ;
from (com_alias) group by 1 into table FORCEEXT(DBF(),"")+"-st_count"
USE (FORCEEXT(DBF(),"")+"-st_count") IN 0 ALIAS "merge"
SELECT("merge")
copy to FORCEEXT(DBF(),"") type xls
SELECT(com_alias)
USE IN IIF(USED("merge"),SELECT("merge"),0)

« Back to Commands

"You should know and I have told this to many of the people I have spoken to on the phone over the years. All of your employees are always super helpful, knowledgeable and professional every time I need to call in. I always have my questions answered or my issue resolved. Thanks to you and your staff!"
A.B., Long Island City, NY