Questions tagged as 'query'

0
answers

When doing LEFT JOIN in MySQL, the data of the SUM () is altered

I have a structure of related tables. The main one is a table called MOVIMIENTO_ALMACEN with its column called CANTIDAD where it calculates the amount but according to the type of movement (" ENTRY " OR " EXIT ") and they make a s...
asked by 16.07.2018 / 23:36
1
answer

insert time type data in sql server

I'm making a data set for an application, and when I insert a Time record, it gives me the following error: INSERT INTO [ope_prodqa_dev] ( staff, turn, date_prodqa, hour_dev ) VALUES ( 1, 4...
asked by 19.06.2018 / 10:21
0
answers

php form with mysql, I can only capture a select value in the list

I have a problem with showing some data in a select button, it happens that by default it always shows me the first one in the row, I made the test by entering different values in the database, it takes me but not listing it. When entering a new...
asked by 22.06.2018 / 02:27
1
answer

Why does not this query work in codeigniter, and in the IDE of ms Access it works without problem? (I think it's the JOIN)

I have a query that I can not work inside codeigniter, removing parts of the query, it seems that the error is in the JOIN, but I do not understand why, and even less understand, that when performing the query in PostMan, for example, it does n...
asked by 11.06.2018 / 08:02
0
answers

Laravel - textarea with several lines - Query Builder

I have a question and I do not know how to solve it ... I'm with my first project in Laravel and when I make an insert with the query builder of a field that was a multiline textarea, it removes all the line breaks. How do I keep it? Greet...
asked by 08.06.2018 / 10:53
0
answers

query with sql pivot

I have this query but I like to add the number of calls and the sum TMO per hour example so I want to do it: usuario 8 9 10 cantidad|tmo cantidad|tmo cantidad|tmo juan 20 | 45.20 20 | 10.3 52...
asked by 26.05.2018 / 01:34
1
answer

Sqlite3 problem with duplicate values

. Tables involved: data_incidence data_ticket I try to execute this query: select t1.fecha_carga, t1.hurtos, t2.fallas, t3.ticket from (select count(ttc) as hurtos, fecha_carga from data_inciden...
asked by 20.05.2018 / 19:02
1
answer

Query with multiple records returns only one record

It returns only one record and in my DB there are 3. I suspect that the problem may be in the query, with the theme of concatenating tables. Here my sentence: SELECT productos.nombre, productos.name, productos.precio, categorias....
asked by 25.05.2018 / 18:08
1
answer

I have a problem to bring some courses from a Post Type to a page in wordpress

Hi, I'm doing this page web where I have some courses that I upload directly in Post type courses but I have to filter them in this page that I attached above. The site is made for two countries Mexico and Argentina and I need the people of Me...
asked by 27.04.2018 / 15:11
2
answers

Group and Sort in Sql

Hello, good morning, I request a help or guide to try to solve a query in sql, it should be noted that I am new in this world; I am trying to make a query that shows the last record by item code that is to say I have values such as item code, da...
asked by 25.04.2018 / 03:48