Questions tagged as 'query'

1
answer

Compare values in group by sql server

Something very unusual happened in my bank. Some records have been entered more than once (7-13) to be more accurate. This was due to a software error that has already been resolved. Now I need to delete duplicate records, but I have the foll...
asked by 09.10.2017 / 22:00
1
answer

Perform calculation in SQL command

I made a select command on my table estoque where I bring the supply model , your current quantity and what your quantity minima in the inventory, for this I made query as follows: SELECT codigosuprimento, suprimento,...
asked by 13.10.2017 / 16:02
1
answer

SQL Server 2012 Query - Query

I'm having a hard time. In the query below, you're bringing it that way. Tarefa_Inclusao Tarefa 167909 167920 SELECT TarIDInclusao [Tarefa_Inclusao],tarid [Tarefa] FROM Tarefa WHERE TarID = 167920. In this query is a...
asked by 26.09.2017 / 16:02
1
answer

Character "wildcard" as criterion of a query

I'm trying to create a query criteria selection engine. For example: I have a mass of data where you have the following variables: store code Brazilian state where you are Brazilian region you are in Flag of products that the store...
asked by 05.09.2017 / 14:17
1
answer

SQL Query return records only after 2 days prior to today

Well, as a beginner in SQL, I need some help. I need only bring records that have not been moved for more than two days. The query below is bringing everyone without this condition. I even did a test using the datediff, but I'm not sure if th...
asked by 26.07.2017 / 02:31
1
answer

Query mysql_query does not return column [closed]

Greetings to everyone in the community. I'm going through a strange problem. When I select the syntax of the query and colon in PHPMyAdmin, the query returns all the fields I want. But when I put it in the code, it does not return any value....
asked by 30.08.2017 / 17:43
2
answers

Query that only returns the result if one field is in another table

The title may not represent the issue well. I have a table with information about cars (id (CP), name, model, among others) and another one with the "Extras" (id (CP), car_id (CS) p> +---------------------+ | tbl_carros |...
asked by 30.06.2017 / 12:15
2
answers

How to fix accent query data sql server [closed]

Good morning! Well, how do I perform the correction of data accents from a select in the sql server. For some records that were meant to come as Sergio, Sergio is coming.     
asked by 13.07.2017 / 14:20
1
answer

Open .js file when MediaQuery is larger than 1024px

At the end of index.php (responsive layout) you have a call to < script type='text/javascript' src='desk.js'>< /script> It turns out that this JS will only act with MediaQuery greater than 1024px. I ask: Is it possible to m...
asked by 06.07.2017 / 07:00
1
answer

List the last message of each user

Does anyone know how I could list the last message of each user? I was able to do this but list the last message of only one user, and I wanted it to list everyone who sent the message to the user in question (code 3). SELECT m1.codigo,...
asked by 27.05.2017 / 04:20