Last active
October 23, 2018 13:36
-
-
Save nikolasd/8af5dc122609681c6170a2e34c8dfc0c to your computer and use it in GitHub Desktop.
Pylon SQL - Εύρεση όλων των εμπορικών παραστατικών που χρησιμοποιούν συγκεκριμένη γέφυρα
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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