Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
B
birt for gdoc2
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
José Emmanuel Noguera
birt for gdoc2
Commits
ac471929
Commit
ac471929
authored
Aug 16, 2019
by
José Emmanuel Noguera
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
funcion psql para obtener cantidad de expedientes por seccion, y estado
parent
8e7d99c5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
0 deletions
+25
-0
f_get_cantxseccion.sql
f_get_cantxseccion.sql
+25
-0
No files found.
f_get_cantxseccion.sql
0 → 100644
View file @
ac471929
CREATE
OR
REPLACE
FUNCTION
public
.
f_get_cantxseccion
(
character
,
integer
,
character
,
character
)
RETURNS
integer
LANGUAGE
plpgsql
AS
$
function
$
DECLARE
p_cod_institucion
alias
for
$
1
;
p_anho_expediente
alias
for
$
2
;
p_cod_seccion
alias
for
$
3
;
p_status
alias
for
$
4
;
cnt_expedientes
integer
;
BEGIN
SELECT
COUNT
(
*
)
INTO
cnt_expedientes
FROM
detexpediente
WHERE
codinstitucion
=
p_cod_institucion
AND
anhoexpediente
=
p_anho_expediente
AND
codseccion
=
p_cod_seccion
AND
estadoseccion
=
p_status
;
return
cnt_expedientes
;
END
;
$
function
$
;
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment