troubleshooting Question

SQL Query rename/update

Avatar of mikeydk
mikeydkFlag for Denmark asked on
Microsoft SQL ServerMicrosoft SQL Server 2005
3 Comments2 Solutions369 ViewsLast Modified:
Hey

I have this query (SQL)

Select PackageID, Name, Version, Manufacturer, Language, Description,
PkgSourcePath , LastRefreshTime,
(SELECT COUNT(PkgID) FROM vPkgStatusSummaryDistPts WHERE PkgID = v_Package.PackageID) AS [No of DP]
FROM v_Package
WHERE
PackageID NOT IN (SELECT PackageID FROM v_Advertisement) AND
PackageID NOT IN (SELECT ReferencePackageID FROM v_TaskSequenceReferencesInfo) AND
PackageType = 0 AND
ORDER BY Name

....

How to I make the query rename all "Name" in the result to "OLD_Name"? (add "OLD_" to the record).

Thanks in advance.

Mike
ASKER CERTIFIED SOLUTION
jvejskrab

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 2 Answers and 3 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 3 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros