0
Good morning guys, I have searched and found nothing very useful. I have an inventory database of my Network Stations. The agent installed on each station sends the installed program names to the table software name.. When I make a select
, comes several similar inputs, as:
- Microsoft Visual C++ 2013 Redistributable (x86) - 12.0.40660,
- Microsoft Visual C++ 2013 x64 Additional Runtime - 12.0.40660,
- Microsoft Visual C++ 2013 x64 Minimum Runtime - 12.0.40660,
- Microsoft Visual C++ 2013 x86 Additional Runtime - 12.0.40660,
- Microsoft Visual C++ 2013 x86 Minimum Runtime - 12.0.40660;
When the ideal would be to have only one way out
"Microsoft Visual C++ 2013"
You can do it?
Follow my select
:
SELECT s.NAME
FROM hardware as h, softwares as s
WHERE h.ID = s.HARDWARE_ID
ORDER BY s.NAME
What is your goal exactly? Just pick up the text
Microsoft Visual C++
? Or there may be entries with different text?– João Martins
My goal is to get almost equal entries reduced to a single, like:
Microsoft Office 2016
,Microsoft Office 2016 exchange 12346
skirt asMicrosoft Office 2016
only.– Anderson Fidelis
There’s no search pattern, I don’t think you’ll be able to do that!
– João Martins
Actually I imagine it is something more relative to strings and treat the output. Where when there are two outputs
nome123
andnome231
would be treated to be shown asnome
– Anderson Fidelis