Hi group, I’m modifying the whole database which was badly done from the beginning… now I have a NominativiDitte table with the fields ID and NameCompany… and then another table IntestazioneFatturaAcquisti with the fields ID, ID_Nominativo,NumeroFattura,Date. … the second table refers to the first thanks to the ID NominativiDitte.ID=IntestazioneFatturaAcquisti.ID_Nominativo … I would need to connect the two tables and display the fields that have the ID in common. I tried writing:
rows2 = db.SelectSQL("SELECT ID,NomeDITTA from NominativiDitte INNER JOIN IntestazioneFatturaAcquisti ON IntestazioneFatturaAcquisti.ID_Nominativo=NominativiDitte.ID")
Exception: ambiguous column name: ID.
What is the problem ? I can rename column id ?
6 posts - 3 participants