Output all data in single column.

  • Greetings,

    CREATE TABLE Test

    (

    Code char(1),

    Name char (3),

    Data int

    )

    INSERT INTO Test

    SELECT 'A','abc',1 UNION

    SELECT 'B','bcd',2 UNION

    SELECT 'C','cde',3 UNION

    SELECT 'D','def',4

    SELECT * FROM Test

    DROP TABLE Test

    I need to output data like this (with the blank lines if possible). Possible?

    A

    abc

    1

    B

    bcd

    2

    C

    cde

    3

    D

    def

    4

  • See my reply in your original thread.



    Lutz
    A pessimist is an optimist with experience.

    How to get fast answers to your question[/url]
    How to post performance related questions[/url]
    Links for Tally Table [/url] , Cross Tabs [/url] and Dynamic Cross Tabs [/url], Delimited Split Function[/url]

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply