Take the 2-minute tour ×
Database Administrators Stack Exchange is a question and answer site for database professionals who wish to improve their database skills and learn from others in the community. It's 100% free, no registration required.

Is it possible to get a result as a column?

The SELECT query will only need to return one record, however, at the time of querying the database it will not know what attributes are in the table, and could get a different number of attributes back: between 6-10.

share|improve this question
2  
Sounds like you need to look at pivot - dba.stackexchange.com/questions/25809/… But I'm guessing since you didn't provide a lot of details. –  bluefeet May 6 at 19:08
    
Not sure if I understand you question. Can you give sample data and/or expected results? –  iSid May 9 at 14:30

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.