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
  1. Home
  2. Database & SysAdmin
  3. Database
  4. How I create new column in sql server?

How I create new column in sql server?

Scheduled Pinned Locked Moved Database
databasesql-serversysadminhelpquestion
4 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    Chandrakanta Sen
    wrote on last edited by
    #1

    I have two table such as table1 and table2 using sql joining query i have fetched or shown some desired result but for good looking i want to create some extra user defined columns, which i can't create... Please help as early as possible...

    A M U 3 Replies Last reply
    0
    • C Chandrakanta Sen

      I have two table such as table1 and table2 using sql joining query i have fetched or shown some desired result but for good looking i want to create some extra user defined columns, which i can't create... Please help as early as possible...

      A Offline
      A Offline
      Andrius Leonavicius
      wrote on last edited by
      #2

      Hi, I'm not sure what are you trying to do... Maybe you could give some example?

      1 Reply Last reply
      0
      • C Chandrakanta Sen

        I have two table such as table1 and table2 using sql joining query i have fetched or shown some desired result but for good looking i want to create some extra user defined columns, which i can't create... Please help as early as possible...

        M Offline
        M Offline
        Mycroft Holmes
        wrote on last edited by
        #3

        In your query you include the calculation and give the result a name, it is then treated as a column in your result set.

        Select Town, Region + ' ' + State as Place
        from TableName

        This will create a column called Place in your result set.

        Never underestimate the power of human stupidity RAH

        1 Reply Last reply
        0
        • C Chandrakanta Sen

          I have two table such as table1 and table2 using sql joining query i have fetched or shown some desired result but for good looking i want to create some extra user defined columns, which i can't create... Please help as early as possible...

          U Offline
          U Offline
          User 10361121
          wrote on last edited by
          #4

          First Create a new table with using select command and then you can fatch data from those tables. And after that you can add any column in new table.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

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