Forum Discussion

pat_energetics's avatar
pat_energetics
Advocate II
10 years ago
Solved

Selectcolumns function

Hi all,

Does anyone have any tips or examples on the use of the select columns function to create a new table.

I'm trying to create a new table based on an extract of an existing one and their is limited information on this function available.

Alternately, if there is another function that provides the same and allows the result to be viewed and edited in the table editor?

Cheers

  • You can better use the query editor window and Duplicate/Reference an existing query in order to create a table with data from another table.

5 Replies

Replies have been turned off for this discussion
  • Mi2n's avatar
    Mi2n
    Microsoft Employee

    You can better use the query editor window and Duplicate/Reference an existing query in order to create a table with data from another table.

    • pat_energetics's avatar
      pat_energetics
      Advocate II

      Thanks Mi2n

       

      The suggestion given seems more appropriate for ourapplication. By going back to the source query and duplicating what we need upstream, it seems the resulting table is much easier to work with.

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi pat_energetics,

     

       if you want to extract some columns from a table to put them in another table you can use the SELECTCOLUMNS() function.

    Here the neededarguments for the function:

     

     

    and an example..

     

     

    ..let me know if it works.

     

    #I'M Not An Expert#

    • pat_energetics's avatar
      pat_energetics
      Advocate II

      Thanks B129,

       

      Although that works the suggestion given by mi2n seems more appropriate for ourapplication. By going back to the source query and duplicating what we need upstream, it seems the resulting table is much easier to work with.

    • charleshale's avatar
      charleshale
      Continued Contributor
      I am getting an error message that "The expression refers to multiple columns. Multiple columns can not be converted to a scalar value". Isnt the point of the command to select multiple columns?