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 8303143
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T17:27:19+00:00 2026-06-08T17:27:19+00:00

I have a software that gives me data that look like those. | Date

  • 0

I have a software that gives me data that look like those.

| Date |   Programme    | Groupe | Rat | Actif | RFS | Inactif |  Relevance  |   Etape  | 
|120227| ANS-FR2-85s TO |   5    |  9  |  20   |  5  |   10    | Rats finaux | Training |
|120228| ANS-FR2-85s TO |   5    |  9  |  10   |  3  |    4    | Rats finaux | Training |
|120229| ANS-FR2-85s TO |   5    |  9  |  100  | 20  |   50    | Rats finaux |    ShA   |
|120230| ANS-FR2-85s TO |   5    |  9  |  100  | 20  |   50    |    Exclus   | Training |
|120231| ANS-FR2-85s TO |   5    |  9  |  100  | 20  |   50    | Rats finaux | Training |
|120227| ANS-FR2-85s TO |   5    | 10  |  20   |  5  |   10    | Rats finaux | Training |
|120228| ANS-FR2-85s TO |   5    | 10  |  10   |  3  |    4    | Rats finaux | Training |
|120229| ANS-FR2-85s TO |   5    | 10  |  100  | 20  |   50    | Rats finaux |    ShA   |
|120230| ANS-FR2-85s TO |   5    | 10  |  100  | 20  |   50    |    Exclus   | Training |

I would like to be able to create a view that will regroup the ‘RFS’ according to the ‘Rat’ values and applying criteria for ‘Etape’ and ‘Relevance’

Criteria

  • WHERE Relevance=’Rats finaux’
  • WHERE Etape=’Training’

It also is important to notice that the number of row is variable. So I could have like in this exemple 2 or 3 rows but also up to 20 rows. I think that maybe a loop might be great rather than calling each specific lines.

So it would look like this:

| Groupe | Rat | D1  | D2  |  D3  |
|   5    |  9  |  5  |  3  |  20  |
|   5    | 10  |  20 | 10  |      |

Thanks a lot

  • 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-08T17:27:21+00:00Added an answer on June 8, 2026 at 5:27 pm

    SO usable data becomes (after where conditions):

     Date      Programme         Groupe      Rat     Actif   RFS     Inactif      Relevance        Etape  
    120227   ANS-FR2-85s TO        5          9       20      5        10        Rats finaux     Training 
    120228   ANS-FR2-85s TO        5          9       10      3         4        Rats finaux     Training 
    120231   ANS-FR2-85s TO        5          9       100    20        50        Rats finaux     Training 
    
    120227   ANS-FR2-85s TO        5         10       20      5        10        Rats finaux     Training 
    120228   ANS-FR2-85s TO        5         10       10      3         4        Rats finaux     Training 
    

    How are we making the columns D1, D2, D3…? I see that for Group 5, Rat 9, you use the RFS values for D1, D2, D3… But for Group 5, RAT 10, you use the Actif values for the row data..? How and why is that done? Ultimately you probably need some kind of pivot table (which Mysql does not have) and probably, maybe, dynamic columns. I don’t know. Let’s try and understand your data needs first…

    another link:
    http://www.jasny.net/articles/creating-a-cross-tab-in-mysql/

    is that something you want? i could help more but i don’t understand how you’re getting the end result you provided as an example.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been given some 'reports' from another piece of software that contains data
I have a webcrawling software, written in Java, that goes through any given website,
We have software that runs fine under a normal Windows installation but when we
I have a software that is tracking an NTFS volume changes on a Windows
We have this software that has a webservices component. Now, the administrator of this
I have a software that runs on mac (using terminal program) the program is
I have a software renderer that I am porting from PC to the iPhone.
I have this running software that is currently being used by about 400 people.
I have seen a lot of software that show that which registry has error.
I have searched on the web for software that batch convert image at different

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.