Ecco la struttura della tabella Ordini:
IdOrdine int NOT NULL Identity(0,1)
....altri campi...
IdUtente int FOREIGN KEY REFERENCES Utenti(IdUtente)
PRIMARY KEY(IdOrdine)
Ecco la strutture della tabella Utenti:
IdUtente int NOT NULL Identity(0,1)
Utente char(30) UNIQUE
Password char(30)
PRIMARY KEY(IdUtente)
Create le due tabelle eseguo quelle query!
Con il metodo "WHERE" tutto funziona con Il metodo "INNER JOIN" invece NO!