sapo
December 20th, 2005, 01:09 AM
lol..
http://www.kottke.org/04/10/normalized-data
This is a kinda of interesting text about flickr, and this PDF (http://www.niallkennedy.com/blog/uploads/flickr_php.pdf) is interesting too... but my problem is at my work, i know that we have a lot of databases gurus here, hope you guys can help me out, so here we go :cool:
I ve been coding on my own for a long time now, actually i m coding php, using php5 and firebird 1.5 as database.
At my work i m coding a kind of administrative software, in php, this software is meant to control the sellings, cash, stock, and all that stuff, of a small company.
But today i was with a normalization problem, i started to work in the cash stuff right now, but my boss still thinks that every software is like msdos was (dbf database and all that stuff), so we are aways arguing about the database, i ll try to explain.
I had 3 tables:
incoming, bills, and cash (dunno how can i explain this in english, but basically incoming is what they earn, bills is what they spent, and cash is what they have in hand).
So i had the brilliant idea to make the 3 of them become one, cause they seemed redundant for me, something like this:
When the company sells, it creates an incoming, but this incoming can be a future payment, so i have: selling_date, and received_date, and i have the same with the bills table.
So if you think about it, what is positive are the incoming, whats negative are the bills, and when i have the received_date means that i have that in CASH, so i can in just one table know exactly the same that i knew using 3 tables.
But i ve been out of this "database market" for a long time now, and i learned normalization and database years ago and stayed a lot of time without using it.
So guys, could you give me advices in this matter, is what i ve done gonna work? Anyone got a better solution for this "cash" stuff?
thanx in advance, hope you can understand, cause my english vocabulary is kinda rusty you know :D
http://www.kottke.org/04/10/normalized-data
This is a kinda of interesting text about flickr, and this PDF (http://www.niallkennedy.com/blog/uploads/flickr_php.pdf) is interesting too... but my problem is at my work, i know that we have a lot of databases gurus here, hope you guys can help me out, so here we go :cool:
I ve been coding on my own for a long time now, actually i m coding php, using php5 and firebird 1.5 as database.
At my work i m coding a kind of administrative software, in php, this software is meant to control the sellings, cash, stock, and all that stuff, of a small company.
But today i was with a normalization problem, i started to work in the cash stuff right now, but my boss still thinks that every software is like msdos was (dbf database and all that stuff), so we are aways arguing about the database, i ll try to explain.
I had 3 tables:
incoming, bills, and cash (dunno how can i explain this in english, but basically incoming is what they earn, bills is what they spent, and cash is what they have in hand).
So i had the brilliant idea to make the 3 of them become one, cause they seemed redundant for me, something like this:
When the company sells, it creates an incoming, but this incoming can be a future payment, so i have: selling_date, and received_date, and i have the same with the bills table.
So if you think about it, what is positive are the incoming, whats negative are the bills, and when i have the received_date means that i have that in CASH, so i can in just one table know exactly the same that i knew using 3 tables.
But i ve been out of this "database market" for a long time now, and i learned normalization and database years ago and stayed a lot of time without using it.
So guys, could you give me advices in this matter, is what i ve done gonna work? Anyone got a better solution for this "cash" stuff?
thanx in advance, hope you can understand, cause my english vocabulary is kinda rusty you know :D