Posts by Força Chape • 349 points
22 posts
-
2
votes2
answers81
viewsQ: How to get the value of one table depending on the maximum value of another?
I have the following code that gives me a table like the picture, but my doubt is how do I only get the name and only the name of the one that has the highest health value that will be gasoline? It…
-
1
votes2
answers613
viewsQ: Hide a button until 2 input is filled
I intend to hide each of the 3 buttons until the 2 inputs that are on top of each button are filled , I had already tried and it works , but if I try to add more than once it is always visible even…
-
0
votes1
answer52
viewsQ: Limit the Textbox value by taking into account the sum of its values
I have the following table in which are included 3 textbox’s corresponding to percentages, what pregnant is that when the user inserts the values in the first 2 Textbox’s , the 3rd value appears…
-
-3
votes1
answer357
viewsQ: Pass a subquery of the FROM clause to the WHERE clause
I have the following query with a subquery in the clause FROM and I intend to get the same result but using this subquery in the clause WHERE. SELECT base.nome as Aquario, base.localizacao,…
-
0
votes1
answer2381
viewsQ: Sort a column of a table in alphabetical order
I have the following table and the respective code and I intend to sort the table alphabetically in order to get " AC / BD / IC " instead of what is. //javascript para adicionar elementos function…
-
-1
votes2
answers82
viewsQ: To obtain number of elements depending on the maximum number of elements per groups
I have two tables and I intend to get you the name table A depending on the Num3. For example, in the table A, we have the num2 and in the table B the values corresponding to the Num1. What I want…
-
1
votes1
answer213
viewsQ: Get elements from one dependent column of another
I have to make a table where indicate the "name2", "local" and "name" of the animals in greater number in each "name". SELECT DISTINCT OP.nome , OP.localizacao , AD.nome_cientifico FROM C AD , A OP,…
-
-1
votes1
answer42
viewsQ: Enter a column if it exists in ALL elements of another SQL
I have the following question : "Enter the "name3" that are in ALL "name" . And I have 4 tables that are below -- A (name,Num2, local) insert into A values ('Favela',1,'WE'); insert into A values…
-
2
votes1
answer78
viewsQ: Get the largest elements of an SQL column
I have 3 tables and I have the following question to solve: "Get the "name" with higher "Perce" related to "num2". Enter "num2" through "Name2" -- A (name,Num2, local) insert into A values…
-
1
votes1
answer3648
viewsQ: Sort HTML tables
I have 2 tables that were initialized in HTML but that join rows and columns through 2 Javascript functions. HTML Table 1: <table id="myTable" > <thead> <tr>…
-
1
votes1
answer112
viewsQ: Add Textbox’s results from one page to another HTML page table
I have an HTML page with an empty table and when I press a button, it directs me to another page where there are 5 inputs , what I intend to do in javascript is to put the result of these 5 inputs…
-
0
votes1
answer48
viewsQ: Use the id of two different pages in Jquery
I have 2 HTML pages and each one has buttons, in the second page has several text boxes and intended that when the user presses the button of the first HTML page he directs to the second page and…
-
1
votes1
answer772
viewsQ: place table elements in a list
I have an empty table , and then a javascript code that allows you to fill the table through input. What I want is to put all the information of this table in an array (depending on the number of…
-
2
votes2
answers556
viewsQ: Insert foreign keys
I have two tables and when I try to use a key of the 1st table in the 2nd the value appears NULL and should appear the values that appear in Aquario CREATE TABLE Aquario( ANome varchar(64) PRIMARY…
-
0
votes1
answer74
viewsQ: Through a panel of 2 lists make a chart
I have 1 table with 2 lists as for example the following ones , where the first one contains dates in the YYYYMMDD format and the second one contains the number of times a crime happened that day.…
-
2
votes1
answer955
viewsQ: Make 1 figure with 3 graphs
I have 3 functions like the following that allows to obtain each one a graph and I want a function where use the 3 graphs of the other functions to join in one figure. def funcao1(grafico): ...…
-
2
votes1
answer2796
viewsQ: Global variable used in multiple functions
I have this code: donos=[] def calcula_media(): lista_dicionario= [1,2,3] donos.extend(lista_dicionario) def funcao2(): print donos How can I use the global variable in the 2nd function using what I…
-
1
votes3
answers2390
viewsQ: How to access a list resulting from one function in another?
I have a function in which I got a list and I intend to use that list in another function: def funcao1(): ... lista1 = [.....] def funcao2(): #preciso de chamar a lista aqui…
pythonasked Força Chape 349 -
0
votes1
answer419
viewsQ: Rounding up
I have the following list of dictionaries and the values correspond to the average value , for example, in the first appears 4 , but in fact of the 4.6666. I’d like to know how and what it does , I…
-
0
votes2
answers677
viewsQ: Dictionary for list of dictionaries
I have a dictionary like the following: {'Eva': [4], 'Ana': [53], 'Ada': [12]} And I intend to turn it into a list of dictionaries for this guy : [{'Nome do Dono': 'Eva', 'Media de idades' :…
pythonasked Força Chape 349 -
1
votes2
answers302
viewsQ: Media in lists with dictionaries
I have 2 lists of dictionaries and 1 dictionary , as for example the following : lista1 = [ {'Idade': '8', 'Especie': 'Gato', 'Nome do Animal': 'Felix'}, {'Idade': '57', 'Especie': 'Tartaruga',…
pythonasked Força Chape 349 -
2
votes1
answer175
viewsQ: Dictionary with lists as value
I have 2 lists like the following: lista1 = [ {'Idade': '8', 'Especie': 'Gato', 'Nome do Animal': 'Felix'}, {'Idade': '57', 'Especie': 'Tartaruga', 'Nome do Animal': 'Michelangelo'}, {'Idade': '12',…
pythonasked Força Chape 349