I want to create a database that has the table for sales and services for a certain company. What I want to know (since I don’t know much of SQL) if there a way to store like an object that represents a list or array in a single cell. Why? Because I want a cell in the Sales table to point to all the services that generated that particular sale. For example:
A sale of in 09/09/11 that was generated by service_1, service_2, … , service_n . Where service_# is a certain service that this particular company offers. Again I apologize for my stupidity but I’m now in the process of learning SQL.
I’m planning to create the database on SQL server.
This is a bad approach.
Database must be well normalized. You are talking to make a design that is not in first normal form.
That you are loking for is a N:M relation ship, you should create a new table called sale_services: