Database
What is database relationship and how to create it
How CSV is imported to database
how to create query from database
what is report and how to create report from table and query
- Prepare the CSV file to have the fields in the same order as the MySQL table fields.
- Remove the header row from the CSV (if any), so that only the data is in the file.
- Go to the phpMyAdmin interface.
- Select the table in the left menu.
- Click the import button at the top.
- Browse to the CSV file.
- Select the option "CSV using LOAD DATA".
- Enter "," in the "fields terminated by".
- Enter the column names in the same order as they are in the database table.
- Click the go button and you are done.
A relationship helps you combine data from two different tables. In an Access desktop database, you can create a relationship in the Relationships window.
How to create
- On the Database Tools tab, in the Relationships group, click Relationships.
- If you haven't yet defined any relationships, the Show Table dialog box automatically appears. If it doesn't appear, on the Design tab, in the Relationships group, click Show Table.
- Select one or more tables, and then click Add. After you have finished adding tables, click Close.
- Drag a field (typically the primary key) from one table to the common field (the foreign key) in the other table. To drag multiple fields, press the Ctrl key, click each field, and then drag them.
- Verify that the field names shown are the common fields for the relationship. If a field name is incorrect, click on the field name and select the appropriate field from the list.
- To enforce referential integrity for this relationship, select the Enforce Referential Integrity box and click create.
- When you are finished in the Relationships window, click Save to save your relationship layout changes.
How to create
A report is a database object that comes in handy when you want to present the information in your database for any of the following uses: Display or distribute a summary of data. Archive snapshots of the data. Provide details about individual records.
- Open the Navigation pane.
- Click the table or query on which you want to base your report.
- Activate the Create tab.
- Click the Report button in the Reports group. Access creates your report and displays your report in Layout view. You can modify the report.
- Double-click the first cell in the header row and type the name of the field in the sample table.
- On the Create tab, in the Tables group, click Table.
- Use the arrow keys to move to the next blank header cell and then type the second field name (you can also press TAB or double-click the new cell). Repeat this step until you enter all field names.
- Enter the data in the sample table.
- When you finish entering the data, click Save
Indah 11T