Click here to Skip to main content
15,897,718 members

Comments by bassofa1 (Top 10 by date)

bassofa1 27-Feb-14 5:12am View    
Because keeping the data in one table will mean that anytime we identify that a new field has to be saved, we have to change the structure by adding new column. That is not desirable if you're dealing with a database which is used by many similar clients who have slight variation in their processes. By having different types having it's own table, I only have to create a row in a reference table when a new field needs to be added. I don't know if you get what I mean.
bassofa1 26-Feb-14 11:17am View    
I thought this is detailed enough..I am just spreading the data in TableWithRecords into multiple tables based on the type of the fields - so all dates in one table, amounts in one table, texts in one table; such that to get a complete record(row) one has to look in all the tables - I have no problem with saving/retrieving the fields but just didn't want to do row by row processing; because I feel my query will be slow when I get more records to deal with.
bassofa1 26-Feb-14 9:58am View    
that is the way our schema is designed.
bassofa1 30-Oct-13 8:26am View    
Well, if it is comma-separated and you don't have control over the file then I am wondering how you can get Pen,Screw in the same column without any changes by your client. The idea of a delimited file is so that you can present data in way we can use the delimiter to get different fields- and your scenario defeats that purpose. Your answer is to get back at your client and tell him/her that they have to add an escape character where they want to use comma "," not as delimiter but as real character. For example, you can ask him to do "Pen &,Screw" representing "Pen,Screw". And then you will handle that whenever you receive a file.
bassofa1 28-Oct-13 10:38am View    
If yours is exactly as mine, then like I told you the very first time; your file is rather pipe-delimited "|" not ",". Which is the reason why you have an issue. To get "Pen,Screw" as one Column, the delimiter CANNOT be ",". Clearly it is showing "|" and that should be it.