Questions tagged as 'sql'

1
answer

Select record with the highest value in a field

I am making a query in SQLServer where I require the record of days worked of x number of employees. On the days when they are at Rest, they can work obtaining the additional day. The query I have generates the following id cliente pues...
asked by 13.06.2016 / 18:00
1
answer

I can not create QR code in C #

I have this code which I want to access to the QR part, in order to generate one, but at the moment of creating a record in RecordEvent when I send it to call AltaQRBoleto (1, Correo); (In spite of sending him to call twice) he does not take any...
asked by 13.05.2016 / 23:35
1
answer

how to select the maximum of one auto increment field and save it in another table

I have a record in a table called PARAMETRI that has an autoincrement field named idparametri . What I want to do is save a record in a table called OBRA ; that table has a field called PARAMETRI_ID_PARAMETRI and I want...
asked by 27.11.2018 / 18:27
3
answers

Help with SQL statement to show in my SELECT that data does not exist

Greetings guys I need help with the following: I have a table with more data than 6000 data and I need to make a query in phpmyadmin where I will provide a data packet to look for and this will tell me what data I am looking for do not exist...
asked by 19.11.2018 / 14:30
1
answer

SQL query to DJset's queryset

I have the following SQL query: SELECT DISTINCT ON (e.id) e.id, e.nombre, e.apellido, e.estado, e.documento, c.nivelado, s.nombre AS semestre, t.nombre AS tipo FROM estudiante e JOIN caracterizacion c ON c.estudia...
asked by 21.11.2018 / 06:04
0
answers

ERROR IN ORACLE

I'm trying to make a trigger in sql, but it gives me three errors that I can not solve, you can tell me if you see any error in this trigger. CREATE OR REPLACE TRIGGER DL_3 BEFORE INSERT ON CONGRESOS FOR EACH ROW BEGIN SELECT AC.id_articulo...
asked by 24.11.2018 / 17:10
1
answer

Insert a record from a query built in a text string

Good afternoon, I am trying to insert records from a Cursor into a table in SQL but constructing the Insert statement in a text type variable. Within the values I have a field of integer type, several texts and a date, apparently I am with so...
asked by 17.02.2016 / 17:15
2
answers

POSTGRESQL - Bring information from 2 tables with 1 field in common

I have the following scenario: 2 Tables Patient and Activity The Patient table contains: DNI, First and Last name. The Activity table contains: Patient's DNI, Activity. Within the activity table I have repeated the DNI of the patients s...
asked by 01.06.2016 / 14:03
6
answers

Query the current date in Sql Server

I have the date column with the data type DATE ; I have stored data from 2018-01-01 00:00:00.0 to this date. At the time of making a query I would like to know how I do it so that it shows me only the data of the current date....
asked by 12.09.2018 / 20:42
1
answer

Mirror Sql Server Ip Public

Dear I have a winform application vb.net that uses sql server some clients use public ip and port to connect to the engine. How to cover the replication or mirror mode of the engine in case the connection fails. The idea is to have 2 Vps servers...
asked by 09.07.2016 / 14:16