Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Combining Rows
Message
From
18/03/2015 16:14:09
 
 
To
All
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Title:
Combining Rows
Environment versions
SQL Server:
SQL Server 2014
Application:
Web
Miscellaneous
Thread ID:
01616946
Message ID:
01616946
Views:
39
I have a table that looks like this

Location ServiceDay

Farmingdale Monday
Farmingdale Tuesday
Bethpage Monday
Bethpage Saturday

I'd like to have a query that gives me one row for each location like this

Location Sunday Monday Tuesday Wednesday Thursday Friday Saturday
Farmingdale Yes Yes
Bethpage Yes Yes


I want yes or space to show in column relating to the service day
Any ideas?
Anyone who does not go overboard- deserves to.
Malcolm Forbes, Sr.
Next
Reply
Map
View

Click here to load this message in the networking platform