AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Zurück Delphi-PRAXiS Programmierung allgemein Datenbanken Wie drucken Sie Name und Note in FASTREPORT?

Wie drucken Sie Name und Note in FASTREPORT?

Ein Thema von Alg2009 · begonnen am 12. Sep 2020 · letzter Beitrag vom 25. Sep 2020
Antwort Antwort
Alg2009

Registriert seit: 12. Sep 2020
16 Beiträge
 
Delphi 10.3 Rio
 
#1

AW: Wie drucken Sie Name und Note in FASTREPORT?

  Alt 22. Sep 2020, 20:14
Hello,

Zitat:
It's an easy mistake that I have left as it is...from me. You have to find it out yourself. Write the error message here.
The error was in the connection settings

I almost visit GitHub website and i didn't know it is a repository thank you for all the information that will help me in the future


There is only one last question
You said
- Never use DB tables. Better use Querys.
That's means i link all the tables together with JOIN(inner,Left or Right) the question is If, for example, we add another table to the database let it be 'Group' -->the relation between Student and Group is one to many(Each student has one group, and each group has more than one student)

We write two queries the first to show the students and their grades And the other to show the students and their group or only one query ?

because if we write one query the result it will be wrong
Code:
SELECT E.ID, E.NOM, E.PRENOM, GroupName,LE.NOMLECON, LE.NOTE FROM ETUDIANT E
JOIN ETUDLECON LO ON E.ID = LO.ID
JOIN LECON LE ON LO.LECONID = LE.LECONID
JOIN Group G ON G.GroupID = E.GroupID
  Mit Zitat antworten Zitat
Benutzerbild von haentschman
haentschman

Registriert seit: 24. Okt 2006
Ort: Seifhennersdorf / Sachsen
5.431 Beiträge
 
Delphi 12 Athens
 
#2

AW: Wie drucken Sie Name und Note in FASTREPORT?

  Alt 23. Sep 2020, 06:10
Hi...
Zitat:
The error was in the connection settings
This is what i mean with the INI File. If is the connection hardcoded...what happens when you give your friend the EXE? Exactly that... That's why the settings should be written to an INI.
http://docwiki.embarcadero.com/Libra...Files.TIniFile
Zitat:
There is only one last question
The difference is:
With a table all records are always read...even those from 10 years ago.
With a qery you can get only the records of the last year...if you want.
Otherwise the "operation" is the same...
Zitat:
We write two queries the first to show the students and their grades And the other to show the students and their group or only one query ?
If you want so... The SQL, with a query, creates the data.
Zitat:
because if we write one query the result it will be wrong
This not a TQuery problem...it a SQL problem. Also the database structure must fulfill rules. (ForeignKey) I dont know what you want to see...
SQL information (you know):
https://www.w3schools.com/sql/
Database information:
https://en.wikipedia.org/wiki/Database_normalization
Zitat:
I almost visit GitHub website and i didn't know it is a repository
Once again to Git:
You don't have to use it. But you can use it to view the changes since the last save in the repositoriy. See picture1. More important is that you can reset the changes.
GIT is decentralized. You have one repository locally and one "copy" externally (GitHub, BitBucket)
You start only locally with GIT. (Setup: GIT + GUI Tool TortoiseGIT). Only if you cooperate with others, it is necessary to store the source code externally.
What is GIT:
https://fr.wikipedia.org/wiki/Git

Difference Tool:
BeyondCompare ...shipped with Delphi.

...to much?

Who says programming is easy? You have to learn every day.
Angehängte Grafiken
Dateityp: jpg diff.jpg (134,5 KB, 16x aufgerufen)
  Mit Zitat antworten Zitat
Alg2009

Registriert seit: 12. Sep 2020
16 Beiträge
 
Delphi 10.3 Rio
 
#3

AW: Wie drucken Sie Name und Note in FASTREPORT?

  Alt 25. Sep 2020, 10:36
This not a TQuery problem...it a SQL problem. Also the database structure must fulfill rules. (ForeignKey) I dont know what you want to see...
SQL information (you know):
the problem was in the foreign key
thank you very very much haentschman
  Mit Zitat antworten Zitat
Antwort Antwort

Themen-Optionen Thema durchsuchen
Thema durchsuchen:

Erweiterte Suche
Ansicht

Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 01:50 Uhr.
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz