search
Japanese Chinese Nederlands Espanol Italiano Deutsch Francais Twitter Rss Feeds
SQL Server GroupsView
SQL Server Ce
SQL Server Clients
SQL Server Clustering
SQL Server Connect
SQL Server Dts
SQL Server Fulltext
SQL Server Integrationsvcs
SQL Server Msde
SQL Server Newusers
SQL Server Olap
SQL Server Programming
SQL Server Replication
SQL Server Reportingsvcs
SQL Server Security
SQL Server Server
SQL Server Setup
SQL Server Tools
SQL Server Xml

Group SummariesView
.NET Framework
Access
BizTalk
Certifications
CRM
DDK
Exchange Server
FoxPro
French
French .NET
Games
German
German .NET
Graphic Design
IIS
Internet
ISA Server
Italian
Italian .NET
Maps
MCIS
Miscellaneous
Mobile Application Development
Money
MSN
Networking
Office
Ops Mgr
Publisher
Security
SharePoint
Small Business
Spanish
Spanish .NET
SQL Server
Systems Management Server
Transaction Server
Virtual PC / Virtual Server
Visual Studio
Win32
Windows 2000
Windows 2003 Server
Windows 7
Windows Live
Windows Media
Windows Update
Windows Vista
Windows XP
 

View All Microsoft SQL Server Programming Posts  Ask A New Question 

noobie needs help with SP - Livin

Thursday, August 21, 2008 11:08 PM

I have no idea where to start. Usually I can do a web search but this
one is not so obvious with search terms. And, I've never built an SP,
only basic queries and used excel formulas but this it too complicated
for excel.

I have an Excel workbook of software application names and versions.
Many have the same 'root' name but different version number.

e.g.  root = "McAfee VirusScan"

I need to find out all the 'matching' names and list each version that
exists, and count # of each version

There are thousands of items so I will not know what all the possible
versions are so I'd like to do this problematically.

Anyone do this before and have some example code or formulas?

Thx a ton!
reply
 

Are you sure you need a procedure? - Scho

Thursday, August 21, 2008 11:08 PM

Are you sure you need a procedure?
Maybe a view would be better; this way it would be called at any one
time and do a list with a count for you as well as be simply an
extension of your current TSQL skills.

BOL link for procedures; http://msdn.microsoft.com/en-us/library/ms187926.aspx
BOL link for Views; http://msdn.microsoft.com/en-us/library/ms187956.aspx

I'd suggest something like...

Create View Vw_ListSoftware
AS
SELECT Name, Version, Count(Name) FROM SoftwareDataTable

Bit basic and you've not really explained the table your holding the
data but should give you an idea but sure there are a few MVPs hanging
around that can do something a lot more clever!
Scho
reply

the table is very simple... - Livin

Thursday, August 21, 2008 11:08 PM

the table is very simple...
Columns:  APP NAME  -- VERSION # --  MANUF -- INSTALL COUNT

A view might be best, just not sure how to create it so that we SUM
all the 'simular' items and use fuzzy logic to determine "like" APP
NAMEs

thx for the help!



aspx
reply

Yeah can see what you mean but if you cut out the version number youmay be - Scho

Thursday, August 21, 2008 11:09 PM

Yeah can see what you mean but if you cut out the version number you
may be okay although I can see how this would be a bad thing too.

How about combining the name & version number and then doing a count
on that? If it doesn't work below you could create temp table with
that field and then select it from that; bit long winded but it would
work.... eventually lol

CREATE VIEW Vw_ListSoftware
AS
Select [App Name], [Version#], COUNT ( DISTINCT ( [AppName] + ' ' +
[Version#] ) ) AS Total
FROM TBL_DataDataTable
WHERE [Install Count] >= 1


Good luck!
Scho
reply

noobie needs help with SP - Livin

Tuesday, August 26, 2008 8:18 PM

4 tables... EMEA, US, CANLA, APAC
each with columns...  SUITE NAME  -- VERSION --  PUBLISHER -- COUNT

Is a cross join good here?

Combining the Name & Version imigh work. I'd like to try both that and
first several characters (or 2 words) & Version so that the "suites"
that might be called something different get captured together. I'd
like to try both to see what turns out best.

any code thoughts?
thx
reply

Previous Microsoft SQL Server Programming conversation.