I am trying to do the task and at the same time deal with SQL in C ++ Builder, but the further I go, the more I get into the confusion.
My task is to list the devices of a given type ( Tip pribora ) that need to be checked ( Rezultaty proverki ) for each workshop ( Ceh ).
I use BDE, PARADOX.
void __fastcall TForm1::Button1Click(TObject *Sender) { Edit1->Text=StrToInt(0); int a=0; Query1->Active=false; Query1->SQL->Clear(); Query1->SQL->Add("SELECT * FROM Table1 WHERE Tip pribora LIKE 'Не пройдена' ORDER BY Ceh"); Query1->Active=true; for (int i=0;i<Query1->RecordCount;i++) { if (DBEdit6=="Не пройдена"); } Edit1->Text=IntToStr(a); }