I have a table called Testdata from database1 with following columns : itemid, item, state (this can be OK or Not OK) and employeeID. I make an innerjoin between employeeID from this table and employeeID from an other table called Employee from database 2. From that table I want to see the employee_name. What I want to get is every item that is OK. Every Item can be more then once in the table so when an item is 2 times in the table and is 2 times OK I get it 2 times in my datagrid. So I want to use the SELECT DISTINCT method but then I get an error. My question is : Can I always use DISTINCT or isnt it possible to use this when Im also using INNERJOIN? Im asking this because in an other case I can use DISTINCT but then I dont use an INNERJOIN.
Or cant I use it because Im working with 2 tables out of 2 different databases?
Can someone give me an answer on this, please?
PS at the moment the first database is in Acces. The second is already copied to SQLserver.
Or cant I use it because Im working with 2 tables out of 2 different databases?
Can someone give me an answer on this, please?
PS at the moment the first database is in Acces. The second is already copied to SQLserver.