Questions tagged [multiple-select-query]

64 questions
0
votes
0 answers

How do select multiple with search relationship?

I need make a select multiple with checkbox like this: http://wenzhixin.net.cn/p/multiple-select/docs/. But I need work with select relationship like this: http://devingredients.com/2011/05/populate-a-select-dropdown-list-with-jquery/ I made in the…
0
votes
1 answer

Selecting Multiple Options in Selection Boxes and Getting Results From Database?

I have made a webpage for a school project where I have a series of selection boxes (some are independent and some are depended on another) to make selections and then apply filter to make a query. It is still in test-mode and working fine for…
0
votes
1 answer

Getting data from 2 or more tables: select or join?

Let's say there are 2 or more tables. Table A: aID, name, birthday Table B: bID, petType, petName Table C: cID, stackOverFlowUsername I want to get something like aID, name, birthday, number of cats a person has, stack overflow's username We…
0
votes
4 answers

Execute Multiple SQL Statements In Stored Procedure With Single Result Return

I am looking to return a single set of data from my stored proceedure, but the result are returning just the first of the two sets. How do I return just one set of data from the following: SELECT TOP 1 categoryname, displaypartno FROM…
0
votes
3 answers

How to query database if we need to query with an array of id's in jsp?

After selecting some products a user clicked on proceed button. Now I need to display the selected data on next page. I was successful in getting the id's of selected data using the following code. String[] array =…
Sree
  • 51
  • 11
0
votes
4 answers

What is wrong in my MYSQL Query?

SELECT ( SELECT SUM(IF(status = 'Active', 1, 0)) AS `univ_active`, SUM(IF(status = 'Inactive', 1, 0)) AS 'univ_inactive', Count(*) FROM online_university ) AS tot_university, ( SELECT SUM(IF(status = 'Active',…
sathish
  • 6,705
  • 3
  • 30
  • 35
0
votes
2 answers

MySQL SUBSTRING using queried length and position values vs programming language substring after retrieval

I am accessing a chado structured mysql database. I search by the gene product, for this example the product is "bifunctional GDP-fucose synthetase: GDP-4-dehydro-6-deoxy-D-mannose epimerase and GDP-4-dehydro-6-L-deoxygalactose reductase". I can…
sage88
  • 4,104
  • 4
  • 31
  • 41
0
votes
2 answers

"Multiple SELECT, INNER JOIN" sql query not working

I tested my sql query in phpMyAdmin and it works there. But when I copy it and paste in my code then it return NULL. My other code is error-free as it works perfect when I remove this sql query. Thus, I believe there is some problem with this query.…
Geek
  • 8,280
  • 17
  • 73
  • 137
0
votes
1 answer

How to query from HTML multiple select combobox against values stored as comma delimited value

I have a multiselect combobox on the html page. The actual list of countries is about 60 items.