I am running ubuntu 12.04 LTS. I have data in an excel spreadsheet that I wish to import into Postgres, from my windows 7 machine to my ubuntu machine. Someone else, who is very fond of open source software, is consistently telling me about the virtues of open source software as opposed to proprietary windows-based software, and therefore took it upon himself to set me up a fully functioning ubuntu machine complete with Postgres. I am a windows person, or at least that is my primary operating system with regards to computers.
The data contains fields relating to Field ID, First Name, Last Name, Address, and Zip Code. The spreadsheet has approximately 1500 rows.
My questions, in order:
1) How do I determine if Postgres is properly installed and running on my ubuntu machine?
2) How do I create a database in Postgres which has those field names, and approximately 1500 rows?
3) How do I import that data from the .xls file format that it is in right now, into that database that I created, so that those 1500 rows become properly inserted into the Postgres field?
Being a windows user, my first instinct would be to work in a graphical environment, and use the copy/paste functions from one program to the other program. However, I do not think that Postgres is a graphical based program, so I do not think that the point/click method I have developed within my windows computer use will be very applicable.
4) I assume that within Postgres, there are functions which allow me (the user) to lookup specific fields on the basis of certain elements, and return a list of those elements. So what would the syntax be, lets say, if I wanted to look up all the rows with the last name "Obama"; would it return all rows which had the last name "Obama"? What would the return values look like, and what form would they be output in?
5) Could the output be fed to the windows environment, or does it have to stay within the ubuntu frame of reference?
-- Sorry if these questions show a complete lack of due diligence on my part with respect to open source software and ubuntu, but I am simply not familiar with the nuances of open source software, yet I am told that they are excellent resources to be proficient in, cost less, and are seemingly more capable, with respect to proprietary windows based software.