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

  • SEARCH
  • Home
  • 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 8565455
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T17:25:52+00:00 2026-06-11T17:25:52+00:00

There have been some questions on this but I couldn’t find a relevant result

  • 0

There have been some questions on this but I couldn’t find a relevant result for me. I have a query that gives me 2 columns of results:

 Day            Tot_dLS   
 01-Sep-12      10000
 02-Sep-12      9920

I want to transpose the Date so it reads:

01-Sep-12    02-Sep-12 
10000         9920

Is this possible?

  • 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-11T17:25:53+00:00Added an answer on June 11, 2026 at 5:25 pm

    Since you can return a fixed number of columns and you can use generic column names, you can do a standard pivot query

    SELECT max( case when rn = 1 then tot_dls else null end ) col_1,
           max( case when rn = 2 then tot_dls else null end ) col_2,
           max( case when rn = 3 then tot_dls else null end ) col_3,
           <<25 more>>
           max( case when rn = 29 then tot_dls else null end ) col_29,
           max( case when rn = 30 then tot_dls else null end ) col_30
      FROM (SELECT day,
                   tot_dls,
                   rank() over (order by day) rn
              FROM your_table
             WHERE day between date '2012-09-01' 
                           and date '2012-09-02' -- Use whatever criteria you want here
           )
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I know there have been some similar questions to this, but they haven't helped
There have been some similar questions asked regarding Grid views, but none have been
I know that there has been a lot of questions like this but I
I thought this question would have been asked before, but I couldn't find it
I have been using blocks for some time now, but I feel that there
I have some websites that have been attacked and infected with malware. There are
There have been a few similar questions with solutions, but none answered my question,
There have been a couple of threads on this topic in the past that
There have been many debates about this topic already here, but none of them
I realize there have been a few other questions on this topic, and the

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.