Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9121303
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T05:49:52+00:00 2026-06-17T05:49:52+00:00

I have a table with two columns and for example three rows as shown

  • 0

I have a table with two columns and for example three rows as shown above. Then I want to create a view on this table.

This view should show for each line in the table as many lines as there is written in this line.

I have no idea how to solve this problem, has someone an example how to build a view with TSQL?

Example:

enter image description here

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T05:49:53+00:00Added an answer on June 17, 2026 at 5:49 am

    You should join this table with some table which has field with 1,2,3,4,5,6,…. numbers.
    For example:

    SQLFiddle demo

    with t0 as 
    ( select 1 n
      union all
      select 2 n
      union all 
      select 3 n 
     ),
    tCount as
    (select ROW_number() over (order by t1.n) rn
    from t0,
         t0 as t1,
         t0 as t2,
         t0 as t3,
         t0 as t4
    )
    select t.* from t
    join tCount on t.Number>=tCount.rn
    order by name
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a table that has two columns, ID and Value. For this example
This is a very simple example: I have a table with two columns, id
I have a table with 50 columns. It has two rows inserted. I want
I have a table that contains common entries in two columns. For Example: Column1
I have table with two columns (varchar from, varchar to). This table represents connections
I have a table with a few thousand rows. The table contains two columns,
I have three columns in a table - ID, Column1, Column2 - with this
I have a table with 11000 rows (two columns are URN and date) and
So I have a table with two columns title and url. The rows go
I have table in MySQL database with two integer columns for example: userid |

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.