Questions tagged as 'select'

0
answers

SELECT MySql Filter Status

I need a select in which to search for tipo status and responsave l, only that it is catching by several Status, while only needing a count status A count(if(r.reponsavel mae,if(t.tipo=1 ir t.tipo =2)if(t.status = '...
asked by 02.09.2018 / 04:56
1
answer

Change background color of the iterative JavaScript select

Hello, guys. I'm having a hard time changing the background color of multiple selects in iteratively. I can already change, but I have to manually specify the index of the element for this to happen. Here's an example of what I'm doing: &l...
asked by 24.08.2018 / 21:06
1
answer

Limit and Offset for web paging in SQL Server

I'm working with PHP and I have about 8000 records currently in DB. As it is for a web page, I need to make a pagination to be viable reading the data. As I understand it, I have to do something similar to limit and offset to...
asked by 28.11.2016 / 13:35
1
answer

How to use the Laravel Pagination feature with queries in raw format DB :: select ()

To get some information from the database in some moments is simpler to make a query with raw sql than to use several models, maps functions and a touch of magic to reach the same goal, however the problem of using a raw querie or a raw express...
asked by 01.08.2018 / 17:16
0
answers

How to bring the result of the clustered MYSQL query and make a foreach for each group

I have a real estate site that assembles a photo album for each type of photos: Facade, Common Area, Floor and Decor. To do this, I do 4 MYSQL queries with PHP, using the criteria for each, but I believe that I should have a one-time solution...
asked by 06.08.2018 / 15:37
0
answers

I need to limit results of each column in 4 items only in MySQL

I'm using this select SELECT * FROM (SELECT * FROM clientescontatos t1 WHERE codcliente = 'teste' AND tecnicoFlag = 1 LIMIT 4 UNION ALL SELECT * FROM clientescont...
asked by 04.07.2018 / 20:55
0
answers

Value accumulated day by day - Firebird

I'm starting now in the programming area, I'm having a hard time with SELECT which brings the accumulated value day by day of sales, I need this SELECT to play it on the line of a graph indicating the cumulative sales value of the...
asked by 05.07.2018 / 17:54
0
answers

Variable within Select

In my web system I have the following select: SELECT round(SUM(peso),3) FROM mov02s WHERE modal = ('Carreta simples') AND data = ('2018-05-16') I'd like to use a variable instead of '2018-05-16'. The user who will choose the date. I thou...
asked by 28.06.2018 / 21:16
1
answer

Using Select android studio

I was able to save information to my SQLite database, but I can not call them. I'm trying using the following method: private void verPessoas() { ArrayList<RespostasAguaCasa> pessoas = new Read().getLista(); for (int i = 0; i...
asked by 13.06.2018 / 19:36
1
answer

Error in select search

I'm not able to return the value inside my arry always returns 0 Read public class Read { public ArrayList<RespostasAguaCasa> getLista() { SQLiteDatabase db = Maindb.getInstancia().getReadableDatabase();...
asked by 18.06.2018 / 16:20