Questions tagged as 'inner'

1
answer

How to get the latest releases from an inner join

Personal to doing a query in 3 tables with inner join, follows the code: select itensVenda.idVenda, itensVenda.idProd, itensVenda.qtd, produtos.id, produtos.descricao, produtos.foto, venda.id, venda.valor from prod...
asked by 30.08.2018 / 22:41
1
answer

MySql - inner join runs in PHPADMIN but in SCRIPT php does not

I have a small PHP script to interact with MAKERIOD. When I execute the select in PHPADMIN I have the return: "Showing records from 0 - 16 (17 total, Query took 8.0945 seconds.)" SELECT Tbdiario.cn1, Tbdiario.cn2, Tbdiario.cn3, Tbdiario.cn4, A...
asked by 30.07.2018 / 19:08
0
answers

sql problems with disntinct

I have a table in my database with: horarioId horarioParagemId horarioLinhaId horarioHora I make INNER JOIN of the table rows: linhaId linhaNome I do INNER JOIN of the...
asked by 01.06.2016 / 13:43
1
answer

Help with inner join: "No space left on device"

I'm not very knowledgeable in SQL programming and experience, however, I need to do a search on a PostrgeeSQL database (I'm using pgAdminIII) where I need to join two tables. create table table_new as select table.x1, table.x2, table.x3, tabl...
asked by 11.06.2016 / 21:10
1
answer

How to interpret * in this query

I have here a% w / o%, which apparently is simple if it were not for the fact that I have these query ai, which I can not tell whether it is * , inner join or some other in the same family . I need to convert this left...
asked by 16.05.2017 / 17:44
1
answer

Select some data from different tables

Rebuilding the programmer here, I'm having trouble with SQL and I'm asking for help. I have two tables called orcamentos and clientes . I need to select all fields from the orcamentos table and only the nome...
asked by 05.04.2017 / 13:37
1
answer

Inner Join with repeated values

Good morning! Can anyone help me with a question? I have a select SELECT * FROM order INNER JOIN kn_status ON (kn_order.n_order = kn_status.fk_order) WHERE kn_order.fk_cliente='$id' The problem is that in the STATUS table the N_ORDER...
asked by 23.05.2018 / 15:08
1
answer

Postgresql Database

How do I make a select with sum and inner join to add a value x between 3 tables. A query return to the lowest possible number of results. create table credit_card ( credit_card_id int primary key, nome varchar...
asked by 28.01.2018 / 10:34
2
answers

Update Inner Join (update in two tables) - Php; Mysql

I have two tables and I want to make a join to do an update on both at the same time. Table1: Clipping (id, dia_semana, data) Table2: imagemClipping( id, id_clipping, titulo, dia_semana, data, imagem) The id_clipping is th...
asked by 29.08.2017 / 22:52
1
answer

Select using Join with Distinct

I have two tables: tb_movement | cod | dt_producao | qt_prod | |-----|--------------|---------| | 1 | '04.08.2016' | 10 | | 2 | '04.08.2016' | 5 | | 3 | '09.08.2016' | 12 | | 4 | '10.08.2016' | 3 | tb_ro...
asked by 24.08.2016 / 15:07