Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tension des manchons et coffrets #9

Open
ponceta opened this issue Jun 7, 2022 · 0 comments
Open

Tension des manchons et coffrets #9

ponceta opened this issue Jun 7, 2022 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@ponceta
Copy link
Member

ponceta commented Jun 7, 2022

Pour caractériser géographiquement la tension d'un manchon contenu dans une chambre, il faut aller récupérer le niveau de tension d'un de ses composants.

Inspiration :

Chambre (noeud)
-\ Manchon (enfant du noeud)
-- \ Point de connexion ou borne (composant enfant de l'enfant du noeud)

SELECT
	obrv.id_obrv as id_obrv,
	obrv.idobr_obrv as id_obr,
	obrv.idorc_obrv as id_orc,
	obrv.modele_obrv AS modele,
	obrv.code_obrv AS code,
	obrv.nom_obrv as nom,
	v_obrvl.id_obrv as id_obrv,
	v_obrvl.idobr_obrv as id_obr,
	--v_obrvl.modele_obrv AS modele,
	--v_obrvl.code_obrv AS code,
	v_obrvl.nom_obrv as nom,
	copv.idniv_copv as tension,
	obrv_enf.id_obrv as id_obrv_enf,
	obrv_enf.idobr_obrv as id_obr_enf,
	obrv_enf.modele_obrv AS modele_enf,
	obrv_enf.code_obrv AS code_enf,
	obrv_enf.nom_obrv as nom_enf,
	obrv_enf.idorc_obrv as id_orc_enf

FROM dbo.objetreseauversion_obrv obrv
	LEFT JOIN dbo.v_objetreseauversionliaison v_obrvl  ON v_obrvl.idparent_cmp = obrv.id_obrv
	LEFT JOIN dbo.composantversion_copv copv ON copv.id_obrv = v_obrvl.id_obrv
	LEFT JOIN dbo.objetreseauversion_obrv obrv_enf ON obrv_enf.id_obrv = copv.id_obrv
	
WHERE obrv.idorc_obrv = 13
AND copv.idniv_copv  != 5
	--AND obrv.idprj_obrv != 1 
	--AND ndfv.idprj_ndfv != 1; -- manchons
@ponceta ponceta added the enhancement New feature or request label Jun 7, 2022
@ponceta ponceta self-assigned this Jun 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant