Questions tagged [highest]

134 questions
1
vote
6 answers

Jquery/Javascript removing entry from array with highest property value

I have a nice riddle that I would like to see solved. There might be a better way of doing this and i am open for idea's. I am trying to write an undo function for a canvas drawing app. I have the following object, within it an array with their own…
Robert
  • 39
  • 7
1
vote
4 answers

Using the highest value from one list to sort the second list.

There are two lists. I have a list of students, made like this List students = new List(); The properties of each student object in the list are firstName, LastName, and Fees[]. Fees is an array that holds a set of fees for each…
Zolt
  • 2,761
  • 8
  • 43
  • 60
1
vote
3 answers

How do you return rows from Mysql based on highest value in table column?

I have a function that is supposed to search the db for the highest 'score'. The Db is structured like this: ---------------------------------------- | id | UrlId | Article | Score | ---------------------------------------- I can get the…
user1882752
  • 576
  • 1
  • 10
  • 20
0
votes
1 answer

Retrieving two highest values from one column for ranked comparison of difference

MODIFIED TO ADD INFORMATION: I realize that there have been many "get two highest" or "get second-highest" SQL questions and answered posted, so I apologize in advance if this question is redundant, but I want to do something a bit different than…
0
votes
1 answer

Logic mistake? This script do not open any position

Hello everybody and thanks in advance. I wrote this "script" (it is 5 lines long...) just to test the function "ta.highest" and it does not open any trade... and I can't figure out why. //@version=5 strategy("La mia strategia", overlay=true,…
Alex
  • 1
0
votes
1 answer

How to get 5th,6th,7th highest salary in oracle sql?

select * from ( select first_name, salary, dense_rank() over (order by salary desc)r from emp) where r = 3; I tried above query with this I can get nth salary, but I want multiple 5th 6th and 7th highest salary in…
0
votes
1 answer

Defining bar as swing top Pine Script

Chart of what I am trying to achieve Hi! I've tried to define a swing top as an upbar followed by a downbar. And the swing top being the high of the first bar, the upbar that is. The ST in green is where my indicator paints the Swing Top upbar =…
Johan
  • 3
  • 2
0
votes
0 answers

Get Highest Values in PDF with certain certain format and rename the file with the values VBA

I've issue right now to find highest values in PDF file that was extracted to excel cells. The Values usually is certain format which is in currency. Example ; Value : 2,003.00 / 2.122,00 / 812.00 / 812,00 is it possible to find this highest values…
sephiroth
  • 43
  • 7
0
votes
1 answer

Read data from textfile find highest score and find highest differnce between soccer result.. PHP

I have a text file. I want to sortout some data. For example. UW have highest homescore 8. JL have highest awayscore 8. OH biggest home win . OH-AÖ 6-4 = 2 AH biggest away win KHS-AH 4-7 = 3 Most score in one match UW-BS 8-7 and CL-AB 7-8…
0
votes
1 answer

finding the highest value for an attribute in a database

I have a database with Canadian province and cumulative data entry for a disease notification. I would like to use my highest disease reporting for each province. Province Number of cases Cumulative number Quebec 1 …
0
votes
0 answers

for duplicate rows, keep row with highest absolute value in column, and make lower values to 0.00 in same column

this is my dataframe, now in this some words example, "dispute" is coming twice (it can appear any number of times) , in such situation, i want to keep row with highest abolute value as it is, and lowest one will be 0.00 i.e for one dispute, the…
0
votes
1 answer

Which actor has the highest difference in ratings?

I need further help with my SQL problem. In this database on movies, ratings and actors: https://i.stack.imgur.com/qFIbC.jpg I am required to find the actor who has the largest difference between their best and their worst rated movie. The condition…
0
votes
2 answers

C# find highest value in class object array without LINQ

This is for my school project and therefor I need to code without LINQ methods etc. I'm trying to show which city has the highest temperature by finding the highest temp and then print it together with the city name. using System; using…
0
votes
1 answer

How do I find the highest float from a list?

I have made a program that gets a movie you pick from a list and tells you its directors and rating it also tells you if a movie is the highest-rated. I want the program to do the same thing it is doing but instead of just checking if the title is 5…
Coder
  • 15
  • 3
0
votes
1 answer

C program to clear nth bit of a number using bitwise and operator

I don't understand why these are different this is how I wrote it : number &= 0 << time; and this is how it should be written : number &= ~(1 << time);
UnderScore
  • 13
  • 4
1 2 3
8 9