tagged [max]

Min/Max of dates in an array?

Min/Max of dates in an array? How can I find out the min and the max date from an array of dates? Currently, I am creating an array like this: Is there a built-in function to do this or am I to write ...

1 Jun at 14:56

Find the smallest amongst 3 numbers in C++

Find the smallest amongst 3 numbers in C++ Is there any way to make this function more elegant? I'm new to C++, I don't know if there is a more standardized way to do this. Can this be turned into a l...

22 Jul at 13:4

How to get max value of a column using Entity Framework?

How to get max value of a column using Entity Framework? To get maximum value of a column that contains integer, I can use the following T-SQL comand Is it possible to obtain the same result with Enti...

12 Feb at 18:2

LINQ- Max in where condition

LINQ- Max in where condition I have a class TaskWeekUI with this definition: ``` public class TaskWeekUI { public Guid TaskWeekId { get; set; } public Guid TaskId { get; set; } public Guid WeekId ...

30 Dec at 11:7

get min and max from a specific column scala spark dataframe

get min and max from a specific column scala spark dataframe I would like to access to the min and max of a specific column from my dataframe but I don't have the header of the column, just its number...

5 Apr at 13:15

Use of min and max functions in C++

Use of min and max functions in C++ From C++, are `std::min` and `std::max` preferable over `fmin` and `fmax`? For comparing two integers, do they provide basically the same functionality? Do you tend...

19 Dec at 20:36

max date record in LINQ

max date record in LINQ I have this table named sample with these values in MS Sql Server: Now I want to write LINQ query that result will be this: I wrote this but it doesn't work: ``

24 Nov at 03:54

How to perform .Max() on a property of all objects in a collection and return the object with maximum value

How to perform .Max() on a property of all objects in a collection and return the object with maximum value I have a list of objects that have two int properties. The list is the output of another lin...

6 Aug at 16:7

Find the max of 3 numbers in Java with different data types

Find the max of 3 numbers in Java with different data types Say I have the following three constants: I want to take the three of them and use `Math.max()` to find the max of the three but if I pass i...

16 Sep at 10:10

MySQL Error 1153 - Got a packet bigger than 'max_allowed_packet' bytes

MySQL Error 1153 - Got a packet bigger than 'max_allowed_packet' bytes I'm importing a MySQL dump and getting the following error. ``` $ mysql foo

23 Sep at 15:42

SQL Server: SELECT only the rows with MAX(DATE)

SQL Server: SELECT only the rows with MAX(DATE) I have a table of data (the db is MSSQL): I would like to make a query that returns OrderNO, PartCode and Quantity, but only for the

8 Dec at 12:52

How to scale down a range of numbers with a known min and max value

How to scale down a range of numbers with a known min and max value So I am trying to figure out how to take a range of numbers and scale the values down to fit a range. The reason for wanting to do t...

14 Mar at 06:6

How do I get the max and min values from a set of numbers entered?

How do I get the max and min values from a set of numbers entered? Below is what I have so far: I don't know how to exclude 0 as a min number though. The assignment asks for 0 to be the exit number so...

2 May at 14:50

How do I find files with a path length greater than 260 characters in Windows?

How do I find files with a path length greater than 260 characters in Windows? I'm using a xcopy in an XP windows script to recursively copy a directory. I keep getting an 'Insufficient Memory' error,...

2 Oct at 19:51

How to extract the row with min or max values?

How to extract the row with min or max values? With a dataframe like this one: if I want to know where the max value is I type: and

3 Dec at 09:25

How many maximum connections can oracle have?

How many maximum connections can oracle have? How many maximum number of connections can oracle handle ? The following is a summary for my sql, i need similar stats for oracle : The maximum number of ...

30 Oct at 09:14

Excel CSV. file with more than 1,048,576 rows of data

Excel CSV. file with more than 1,048,576 rows of data I have been given a CSV file with more than the MAX Excel can handle, and I really need to be able to see all the data. I understand and have trie...

17 Nov at 00:30

SQL not a single-group group function

SQL not a single-group group function When I run the following SQL statement: It returns the maximum sum value of downloads by a customer, however if I try to find the social security number that that...

8 Jun at 02:22

Group by minimum value in one field while selecting distinct rows

Group by minimum value in one field while selecting distinct rows Here's what I'm trying to do. Let's say I have this table t: For each id,

7 Feb at 08:59

Need to find a max of three numbers in java

Need to find a max of three numbers in java > [Find the max of 3 numbers in Java with different data types (Basic Java)](https://stackoverflow.com/questions/4982210/find-the-max-of-3-numbers-in-java-...

23 May at 12:2

How to find the highest value of a column in a data frame in R?

How to find the highest value of a column in a data frame in R? I have the following data frame which I called ozone: ``` Ozone Solar.R Wind Temp Month Day 1 41 190 7.4 67 5 1 2 36 118 8.0...

22 Jun at 15:41

Java Minimum and Maximum values in Array

Java Minimum and Maximum values in Array My code does not give errors, however it is not displaying the minimum and maximum values. The code is: ``` Scanner input = new Scanner(System.in); int array[]...

26 Aug at 13:45

SQL MAX function in non-numeric columns

SQL MAX function in non-numeric columns As far as I understand the MAX function, it shall return a maximum value from a given column. In case of numeric values, for example a salary column, it is clea...

27 Nov at 16:40

How can I SELECT rows with MAX(Column value), PARTITION by another column in MYSQL?

How can I SELECT rows with MAX(Column value), PARTITION by another column in MYSQL? I have a table of player performance: ``` CREATE TABLE TopTen ( id INT UNSIGNED PRIMARY KEY AUTO_INCREMENT, home I...