Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
C

chencoh

@chencoh
About
Posts
2
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • pivoting more than one column in sql server
    C chencoh

    Hey, Sorry for the late response, I wasn't around a computer. While article you added really shed some light about the topic, I still have a small problem. the article showed how to concatenate to columns into one and then pivot the column, what I want to do is to pivot them both. So if i refer to the article, instead of having a column for "1996-F" and one for "1996-M" I want two columns, one for "M" and one for "F" and "1996" wrapping them. something like: 1996 M F 6 5

    Database database sql-server sysadmin

  • pivoting more than one column in sql server
    C chencoh

    hi everyone, i have sql server db with a table which contains a field for a workplace and the number of people employed in a specific month and year separated by gender. it kinda looks like : workplace month year male female Microsoft feb 2011 5 1 Google feb 2011 6 2 Intel feb 2011 7 3 Microsoft march 2011 8 4 obviously with different actual data. is there a way to concatenate the year and month columns and pivoting the data so it'll look something like : workplace date male female date male female Microsoft feb 2011 5 1 march 2011 8 4 Google feb 2011 6 2 Intel feb 2011 7 3 sorry if that was a bit too much, I'll be happy to explain myself more clearly if needed.

    Database database sql-server sysadmin
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups