Questions tagged as 'sql'

4
answers

Obtain the maximum value of a field, from a series of records. MYSQL

The query is as follows, there are 2 tables: Pagos -idPago -idCliente -fechaEnQuePaga -fechaVencimiento Cliente -idClient...
asked by 24.11.2017 / 20:35
1
answer

Handling locks in a concurrent environment

I am working on a system with 15 concurrent processes that perform several operations against a SQL SERVER database, the versions can go from 2005 to 2014. Each process has its particular data in several tables, no process queries / deletes / up...
asked by 19.04.2017 / 11:08
3
answers

Sort query result in Ordered Row

I have the following query that I get with this query: Select Año, Tip, Est, t1, t2, t3 From Tabla1 Año Tip Est Zo t1 t2 t3 2003 1 A 6 12 14 17 2003 1 A 7 12 15 18 2003 1 A 8 13 16 19...
asked by 21.10.2016 / 23:08
6
answers

Connect PHP with SQL SERVER

I have searched everywhere, but I can not find an answer or find incomplete answers. What is the complete way to connect PHP with SQL Server 2008?     
asked by 29.04.2016 / 17:39
2
answers

Can different foreign keys be referenced for the same attribute field?

I'm working on a Oracle SQL Express 11g code. So far I have these two tables: CREATE TABLE EVENTOS ( OID_Proj INTEGER PRIMARY KEY NOT NULL, nombre VARCHAR2(50) NOT NULL, ubicacion VARCHAR2(50) NOT NULL ); CREATE TABLE PROGRAMASDEPORTI...
asked by 28.12.2018 / 03:12
4
answers

NULL the duplicate values of a LEFT JOIN Msql query

I have 2 tables. The first returns the order number and the two-state times Pedido TiempoPreparar TiempoAsignar ------------------------------------------- P001 10 9 P002 20 5 P003...
asked by 03.05.2018 / 19:21
0
answers

MYSQL / PHP / JQuery query assistant

I am working on a report that shows the results of an SQL query in an HTML table I can get the data very easy with PHP $link=new PDO('mysql:host=localhost;dbname=dbname','user','pass',array(PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION));...
asked by 02.09.2018 / 19:56
5
answers

Query grouped with different counters

Good afternoon, I hope you are well. I have a problem with a SQL query that paints to be simple but I think it is not, I have the following table with this information: id pais sexo == ======== ==== 1 Venezuela F 2 Venezuela F 3 Venez...
asked by 06.12.2016 / 22:12
4
answers

Query in MYSQL DATETIME ()

I have a database in which the packages of some clients are stored and the date of creation of said package. I need to check out how many packages a client makes each day in a month. I've tried with SELECT distinct fecha_creacion FROM paque...
asked by 25.10.2017 / 11:31
3
answers

How to convert varchar to datetime in SQL Server?

Good day to all, I want to convert this data 14 de Febrero 1986 in sql to datetime , but%% of% CONVERT(datetime,fecha_nacimiento) It does not convert it. Is there any way to convert it?     
asked by 02.05.2018 / 16:43