troubleshooting Question

selecting returning single rows of data where multiple rows exist

Avatar of blossompark
blossomparkFlag for Ireland asked on
Microsoft SQL Server 2005Microsoft SQL Server 2008SQL
10 Comments3 Solutions249 ViewsLast Modified:
I have a table with about 50,000 rows.
I want  a query that returns one row for each NAME, based on which row has the least number of NULLs.
If  rows with the same NAME have equal number of NULLS I do not mind which row is returned as long as only one is..
Any help appreciated thanks
 beforeAfter
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 3 Answers and 10 Comments.
Join the Community
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 3 Answers and 10 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