Skip to content

Instantly share code, notes, and snippets.

@nikolasd
Last active October 23, 2018 13:36
Show Gist options
  • Save nikolasd/8af5dc122609681c6170a2e34c8dfc0c to your computer and use it in GitHub Desktop.
Save nikolasd/8af5dc122609681c6170a2e34c8dfc0c to your computer and use it in GitHub Desktop.
Pylon SQL - Εύρεση όλων των εμπορικών παραστατικών που χρησιμοποιούν συγκεκριμένη γέφυρα
SELECT
ser.heCode AS DOCSERIES,
ser.heShortcut AS DOCSERIESSHORTCUT,
ser.heName AS DOCSERIESNAME,
typ.heCode AS DOCTYPE,
typ.heName AS DOCTYPENAME,
acc.heCode AS ACCTMP,
acc.heName AS ACCTPMNAME,
cmp.heName AS CMP
FROM heDocSeries AS ser
INNER JOIN heCommDocTypes AS typ
ON typ.heID = ser.heDocTypeID
LEFT JOIN heAccountingTemplates AS acc
ON acc.heID = typ.heAtmpID
LEFT JOIN heCompanies AS cmp
ON ser.heCompID = cmp.heID
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment