Description
Properties
| Name | Value |
|---|---|
| ANSI Nulls ON | True |
| Quoted Identifier ON | True |
| Encrypted | False |
| Execute As | |
| Assembly |
SQL Script
Copy
SET QUOTED_IDENTIFIER, ANSI_NULLS ON
GO
CREATE OR ALTER PROCEDURE dbo.AEROLINEAS_NO_TOCAR
AS
BEGIN
SET NOCOUNT ON;
/* LISTAR PROVEEDORES CON JUICIOS */
SELECT AEROLINEAS.CC AS RAZON_SOCIAL,AEROLINEAS.CUITVALIDADO,AEROLINEAS.EE AS CUIT,
JUICIOS.CAU_NOMBRE AS CAUSA,JUICIOS.C16_JUEZ AS JUZGADO,JUICIOS.C16_SECRETARIA AS SEC_EXP,
JUICIOS.C16_ACTOR AS ACTOR,C16_FECHA_CAUSA AS FECHA
FROM AEROLINEAS INNER JOIN JUICIOS ON AEROLINEAS.EE = JUICIOS.CUIT
ORDER BY AEROLINEAS.CC asc, JUICIOS.CAU_NOMBRE asc,JUICIOS.C16_ACTOR ASC,JUICIOS.C16_FECHA_CAUSA ASC
select max(id_juicio) from juicios
select * from juicios where id_juicio = 245774
/*
where cuit = '30710794401'
*/
/*
update juicios set cau_nombre = cau_nombre + '---TEST---'
where id_juicio = 2457740000000
*/
select RAZONSOCIAL,DOCVALIDADO,CUITVALIDADO,EE,DD,CC from aerolineas
/*
alter table juicios add id_juicio int identity(1,1) not null
alter table aerolineas add id_registro int identity(1,1) not null
*/
select * from juicios where contains(*,'"ABASTECEDORA AASCO S.A."')
SELECT AEROLINEAS.CC AS RAZON_SOCIAL,AEROLINEAS.CUITVALIDADO,AEROLINEAS.EE AS CUIT,
JUICIOS.CAU_NOMBRE AS CAUSA,JUICIOS.C16_JUEZ AS JUZGADO,JUICIOS.C16_SECRETARIA AS SEC_EXP,
JUICIOS.C16_ACTOR AS ACTOR,C16_FECHA_CAUSA AS FECHA
FROM AEROLINEAS INNER JOIN JUICIOS ON AEROLINEAS.EE = JUICIOS.CUIT
ORDER BY AEROLINEAS.CC asc, JUICIOS.CAU_NOMBRE asc,JUICIOS.C16_ACTOR ASC,JUICIOS.C16_FECHA_CAUSA ASC
select RAZONSOCIAL,DOCVALIDADO,CUITVALIDADO,EE,DD,CC,* from aerolineas
select count(*) from juicios
select distinct cuil_empleado from AA_Titulares_Fliares_Documentos
select distinct docum_fliar from AA_Titulares_Fliares_Documentos
select * from AA_Titulares_Fliares_Documentos
select * from aerolineas where ee in (select distinct cuil_empleado from AA_Titulares_Fliares_Documentos)
union all
select * from aerolineas
where aerolineas.docvalidado in (select distinct docum_fliar from AA_Titulares_Fliares_Documentos)
order by aerolineas.cc asc
select AA_Titulares_Fliares_Documentos.*,aerolineas.aa,aerolineas.bb,aerolineas.cc,aerolineas.dd,aerolineas.ee,aerolineas.ff,
aerolineas.gg,aerolineas.hh
from aerolineas left join AA_Titulares_Fliares_Documentos on ltrim(rtrim(aerolineas.ee)) = ltrim(rtrim(AA_Titulares_Fliares_Documentos.cuil_empleado))
where aerolineas.docvalidado in (select distinct docum_fliar from AA_Titulares_Fliares_Documentos)
order by aerolineas.cc asc
select * from AA_Titulares_Fliares_Documentos where cuil_empleado= 27134307183
select * from aerolineas
END
GO
GO
CREATE OR ALTER PROCEDURE dbo.AEROLINEAS_NO_TOCAR
AS
BEGIN
SET NOCOUNT ON;
/* LISTAR PROVEEDORES CON JUICIOS */
SELECT AEROLINEAS.CC AS RAZON_SOCIAL,AEROLINEAS.CUITVALIDADO,AEROLINEAS.EE AS CUIT,
JUICIOS.CAU_NOMBRE AS CAUSA,JUICIOS.C16_JUEZ AS JUZGADO,JUICIOS.C16_SECRETARIA AS SEC_EXP,
JUICIOS.C16_ACTOR AS ACTOR,C16_FECHA_CAUSA AS FECHA
FROM AEROLINEAS INNER JOIN JUICIOS ON AEROLINEAS.EE = JUICIOS.CUIT
ORDER BY AEROLINEAS.CC asc, JUICIOS.CAU_NOMBRE asc,JUICIOS.C16_ACTOR ASC,JUICIOS.C16_FECHA_CAUSA ASC
select max(id_juicio) from juicios
select * from juicios where id_juicio = 245774
/*
where cuit = '30710794401'
*/
/*
update juicios set cau_nombre = cau_nombre + '---TEST---'
where id_juicio = 2457740000000
*/
select RAZONSOCIAL,DOCVALIDADO,CUITVALIDADO,EE,DD,CC from aerolineas
/*
alter table juicios add id_juicio int identity(1,1) not null
alter table aerolineas add id_registro int identity(1,1) not null
*/
select * from juicios where contains(*,'"ABASTECEDORA AASCO S.A."')
SELECT AEROLINEAS.CC AS RAZON_SOCIAL,AEROLINEAS.CUITVALIDADO,AEROLINEAS.EE AS CUIT,
JUICIOS.CAU_NOMBRE AS CAUSA,JUICIOS.C16_JUEZ AS JUZGADO,JUICIOS.C16_SECRETARIA AS SEC_EXP,
JUICIOS.C16_ACTOR AS ACTOR,C16_FECHA_CAUSA AS FECHA
FROM AEROLINEAS INNER JOIN JUICIOS ON AEROLINEAS.EE = JUICIOS.CUIT
ORDER BY AEROLINEAS.CC asc, JUICIOS.CAU_NOMBRE asc,JUICIOS.C16_ACTOR ASC,JUICIOS.C16_FECHA_CAUSA ASC
select RAZONSOCIAL,DOCVALIDADO,CUITVALIDADO,EE,DD,CC,* from aerolineas
select count(*) from juicios
select distinct cuil_empleado from AA_Titulares_Fliares_Documentos
select distinct docum_fliar from AA_Titulares_Fliares_Documentos
select * from AA_Titulares_Fliares_Documentos
select * from aerolineas where ee in (select distinct cuil_empleado from AA_Titulares_Fliares_Documentos)
union all
select * from aerolineas
where aerolineas.docvalidado in (select distinct docum_fliar from AA_Titulares_Fliares_Documentos)
order by aerolineas.cc asc
select AA_Titulares_Fliares_Documentos.*,aerolineas.aa,aerolineas.bb,aerolineas.cc,aerolineas.dd,aerolineas.ee,aerolineas.ff,
aerolineas.gg,aerolineas.hh
from aerolineas left join AA_Titulares_Fliares_Documentos on ltrim(rtrim(aerolineas.ee)) = ltrim(rtrim(AA_Titulares_Fliares_Documentos.cuil_empleado))
where aerolineas.docvalidado in (select distinct docum_fliar from AA_Titulares_Fliares_Documentos)
order by aerolineas.cc asc
select * from AA_Titulares_Fliares_Documentos where cuil_empleado= 27134307183
select * from aerolineas
END
GO
Depends On
1Used By
No items found