كيف يمكن تصفية بيانات من عدة جداول وإظافتها في جدول واحد
#1
Question 
كيف  يمكن أن أضيف بينات من عدة جداول في جدول واحد عن طريق التصفية 
  هته الماحولة تظهر لي بيانات جدول واحد فقط Huh

كود :
procedure TForm7.BitBtn1Click(Sender: TObject); Var  ch,f,id,code: string; begin ch:='select Matricule,Nom,Prenom,Emploi,Responsabilite,service From Fonctionnaire  where Matricule ='+Quotedstr(id); ADOQuery3.SQL.Clear; ADOQuery3.SQL.Text := 'select Matricule,Nom,Prenom,Emploi,Responsabilite,service From Fonctionnaire  where Matricule = :Matricule'; ADOQuery3.Parameters.ParamByName('Matricule').Value:=ADOTable2.FieldByName('matricule').Value; ADOQuery3.Open; f:='select Sujetformation,datedebutform,datefinform,lieuform,numgroupe,organisme,residance  From Formation  where codformation ='+Quotedstr(code); ADOQuery3.SQL.Text := 'select Sujetformation,datedebutform,datefinform,lieuform,numgroupe,organisme,residance  From Formation  where codformation =:codformation'; ADOQuery3.Parameters.ParamByName('codformation').Value:=ADOTable2.FieldByName('codformation').Value; ADOQuery3.Open;
الرد
#2
لانك انت اخترت في الاستعلام الاول جدول واحد وهو جدول FONCTIONNAIRE والثاني استعلام من جدول formation
PHP كود :
sélect *from fonctionnaire,formation
Where fonctionnaire
.matricule='+quotedstr(id)' AND formation.conformation='+quotedstr(code)' 

اتمنى ان تعينك الفكرة
لست سوى مبتدأ في هذا المجال اتمنى ان يعينك باقي الاعضاء
الرد
#3
شكرا على المساعدة سوف أجرب هذا
الرد


التنقل السريع :


يقوم بقرائة الموضوع: بالاضافة الى ( 1 ) ضيف كريم