05-10-2013, 02:58 PM
What exactly you are trying to achieve? as far as I can understand you want the count of all distinct empid in a sheet. Very sorry I did not notice earlier. the correct query would be
Select Count( Distinct <columnname>) from <Sheet>
but I doubt this will work in excel as Count(Distinct) does not work with Access, it only works with Oracle and SQL
For you question Can We use all SQL commands in CSV file(considering CSV as a database)?
I have not tried it yet, but seems not feasible. CSV file can be treated as flat file and I dont think we can query to that.
Select Count( Distinct <columnname>) from <Sheet>
but I doubt this will work in excel as Count(Distinct) does not work with Access, it only works with Oracle and SQL
For you question Can We use all SQL commands in CSV file(considering CSV as a database)?
I have not tried it yet, but seems not feasible. CSV file can be treated as flat file and I dont think we can query to that.