Hi, I have been doing minor db programing for about a year, and ran into some strange results off of some joint table queries from the same db.
The querie itself is fine, its the output that fails to meet the criteria I am looking for. I think my querie is ok, but the way I am requesting the output seems have conflicts because two of three tables I join have the same column headings I am requesting. Is there anyway using GetFieldValue to clarify the table and column to prevent this. Below is some code to show what I mean.
Any help in understanding this is greatly appreciated. Thanks-Code:rec.GetFieldValue("ship_label_id", shipLabel); fout<<shipLabel<<"\t"; rec.GetFieldValue("actual_weight", actualWeight); fout<<actualWeight<<"\t"; rec.GetFieldValue("user_id", employee); fout<<employee<<"\t"; rec.GetFieldValue("status", status); //translate the status for user in reporting if ((strcmp(status, statzero)==0)) { fout<<"Not Picked"<<endl; } if ((strcmp(status, statone)==0)) { fout<<"Picked"<<endl; } if ((strcmp(status, statthree)==0)) { fout<<"Short"<<endl; } rec.GetFieldValue("status", cstat); //translate the status for user in reporting



LinkBack URL
About LinkBacks


