I am a complete noob when it comes to mysql databases.
What i want to achieve - is this - i have a sap b1 database and i am going to be exporting data from the sql server out to a csv - from there i will send this csv through to my web server.
Now what i want to do is to load up the csv into a mysql database on a scheduled basis (daily) via a cron job.
Here is the data that i will likely have in multiple csvs:
- orders
- invoices
- credits
- payments
Would i create a database for each or have them all within one database within phpmyadmin?
Also - let's take orders for example - would i create two tables - one for the order header information and another for order lines?
An example of the invoices csv would be the following format:
- customernumber
- customername
- invoicenumber
- purchaseordernumber
- documentdate
- freightamount
- productcode
- productname
- barcode
- quantity
- price ex tax
- price inc tax
- RRP price
- tax amount
- doc total inc tax
Once in the tables - i will then go about developing a secure website/ application for my company that will be used by internal staff as well as customers.
Any advice would be appreciated.
Regards
Rick