Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 2 years ago.
Improve this question
I'm trying to run a query that returns the maximum number in the ballNumber field when the value in the inningsNo field is 1. I just can't get it to work. Can anyone tell me what I should enter into the Criteria box?
Thanks
Rob,
To do this, you will need to do the following:
Click on the "Totals" button on the Query ribbon (a new row will appear in the Query grid labelled "Total");
Change the "Group By" Total value to "Where" in the InningsNo column (the tick in the "Show" will also disappear);
Change the "Group By" Total value to "Max" in the ballNumber column.
Regards
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
I have a database of some devices, each with details on their status for things like maintenance schedule, last calibration date, age, warranty status, etc. One of the points of this database is to give us a yes/no answer whether it should be in service or not, based on all these other data points being a certain way. If this was Excel, I could make a cell and use IF statements to get this automatically, and any time one field like warranty fell out of date, the "in service" field would also switch to "No".
Is it possible for a MySQL database to do this automatically?
Yes. If all the values you need are in one row, you can use a generated column.
If values needed for the calculation come from other rows or tables, then you can use a view.
Other than that, it is hard to provide more specifics because you question lacks helpful details.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
I know there are threads with the answer for this question but as a beginner I am having a really hard time understanding the difference between these two. I am learning Access and have not learnt about SQL statements yet. Most explanation to this question consists of SQL code that I do not understand. If you could explain the difference for a beginner that would be great.
If you have a combobox in your form, it will both have a row source and a control source. The control source is the field in the underlying table where the actual values are stored. The row source is the source of the list of values to select from.
Example: You got a table with flowers. One field is color. You want to limit which colors to enter for the flowers. The you make a table called flower_colors.
In your flower form, you then have a combobox. Its control source will be colors from the table flower and the row source will be flower_colors.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
How can I simulate that my MySQL field is an array, and later with some query to search element in that array ?
In only MySql:
To get the field.
select FIELDNAME from TABLE
To search from that result set:
select FIELDNAME from TABLE where FIELDNAME like '%myvalue%'
The %'s are wild cards. This would return any value with myvalue in it.
Such as:
(amyvalue, bmyvalueb, I<3myvaluecompletely)
If you want this done in some language you need to provide a more verbose and detailed question.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I have a column with values like 24,25,26,27 and
I want to match 24 (or some other number).
I like to do it based on regex don't know how to do?
I want the matching should be clear like 24,25,26 should match with 24 not 243
You can take a look at
FIND_IN_SET
SELECT FIND_IN_SET('24','24,25,26 ');
Note Please don't store vales as comma separated instead normalize
your structure
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I have a table that contains a column price with 3600 entries. I need to increase the price column by 9% or multiply the contents of the column price by 1.09 and place the updated price back in the price column. What is the best way to approach this?
Should be pretty straightforward:
Update MyTable Set Price = Price*1.09