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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T06:09:26+00:00 2026-06-18T06:09:26+00:00

My table consists of 5 fields: Submission ValueId 1 2 3 4 5 FormId

  • 0

My table consists of 5 fields:

Submission ValueId  1 2 3 4 5
FormId  1 2 3 4 5
SubmissionId  22 or 23 or 24 
FieldName  fullname,Date,ville,
FieldValue 1 Paul  01/10/2013 Bern

Table I want to:

SELECT FormId, SubmissionId, FieldValue FROM qesnd_rsform_submission_values WHERE      FieldValue = Bern AND FormID='1' ORDER BY SubmissionId ASC"

With formid : 1
With FieldValue : Paul
With FieldValue : 01/10/2013
With FielValue : Bern

My problem how to make my request phpMyAdmin with multiple select?

  • 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-18T06:09:27+00:00Added an answer on June 18, 2026 at 6:09 am

    It looks like your data is a bit over-normalized, with a separate row for each field. I thnk the best way to access this data is by aggregation, assuming that field names are not repeated for any formid:

    select formid, submissionId,
           max(case when fieldName = 'FullName' then fieldvalue end) as FullName,
           max(case when fieldName = 'Date' then fieldvalue end) as DateStr,
           max(case when fieldName = 'ville' then fieldValue end) as Ville
    from t
    where formid = 1
    group by SubmissionId
    

    If you want to select the information on a filter, then try:

    select *
    from (select formid, submissionId,
                 max(case when fieldName = 'FullName' then fieldvalue end) as FullName,
                 max(case when fieldName = 'Date' then fieldvalue end) as DateStr,
                 max(case when fieldName = 'ville' then fieldValue end) as Ville
          from t
          group by SubmissionId
         ) t
     where formid = 1 and FullName = 'Paul' and DateStr = '01/10/2013' and Ville = 'Bern'
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am having a table called Tl which consists of fields ID,Name and Course.
I got some sample data in a Table Testing which consists of two fields:
I have a table that consists of, among other things, two fields named StartTime
I have a table called faq . This table consists from fields faq_id ,
There are 3 tables: catalog product product2catalog Table product2catalog consists of the following fields:
I have a MyISAM table in MySQL which consists of two fields (f1 integer
I have a MySQL table of names , which consists of two fields: name
My Jet DB has a table that consists of 5 text fields, CID, UCall,
I have a MS access database. In that, one table consists of questions and
I have a table which consists of a few columns, including a Key Value

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.