noobie needs help with SP - Scho |
21-Aug-08 11:08:42
|
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 |
 |
| |
noobie needs help with SP - Livin |
21-Aug-08 11:08:57
|
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 |
 |
| |
noobie needs help with SP - Scho |
21-Aug-08 11:09:19
|
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 |
 |
| |
noobie needs help with SP - Livin |
26-Aug-08 08:18:55
|
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 |
 |
| |