• Resolved ferda2

    (@ferda2)


    I have a table and the data_id, name and value columns in it. Data sample:

    2 cars_type SUV
    2 cars_color red
    3 cars_type Sedan
    3 cars_color white

    How do I view data by rows (separate sql query)? The desired result:

    row1: SUV, red
    row2: Sedan, white
    etc…

    Thank you

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Vsourz Digital

    (@vsourz1td)

    Hello Freda,

    Hope you are well.

    We have reviewed your comments and unfortunately you could not view desired data because of you would require to filter out your data for more than one column and the plugin can able to searching on any single value at a time.
    But we believe the simple solution for this is to first do export your overall form data(able to apply date filter also) in CSV sheet and after that, you can short out the form data as you need.

    Thread Starter ferda2

    (@ferda2)

    Thank you for answer. I need to display the data from the form in real time. In the administration (Advanced CF7 DB), the data is rendered nicely. I need the same for display on a separate page. There must be some solution ??

    Plugin Author Vsourz Digital

    (@vsourz1td)

    Below given the sample SQL query, possibly you will get your solution by this

    SELECT t1.data_id, t1.value, t2.value
    FROM table_name t1
    INNER JOIN table_name t2 ON t1.data_id = t2.data_id
    WHERE t1.name = ‘cars_type’ and t2.name = ‘cars_color’;

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to sort data from a table?’ is closed to new replies.