Hi ,
Thanks for your suggestion.
I had planned to use four tables ; one table to store machine and location ; other three to store disk usage data for each machine.
From your reply I observe that second table will store data for all three machines. In this case I think disk usage data will be stored in an mixed fashion i.e first set of x values for x machines ; then this set would be repeated.
And to make data retrieval easier you had suggested using foreign keys. But Mysql version I am working (3.22.32) seems won't accept foreign keys in create table statement.
This is error message from create table statement :
create table disk_usage
-> (
-> disk_usage_id int not null primary key auto_increment,
-> filer_id int not null foreign key,
-> disk_usage_date date,
-> disk_usage long
-> );
ERROR 1064: You have an error in your SQL syntax near 'foreign key,
disk_usage_date date,
disk_usage long
)' at line 4
Do u have any suggestions ?
Thanks
RAM