Control File for SQL LOADER - sql

Hi I have a problem with importing data into multiple tables. Anybody can help me with writing to the control file that import from CSV into multiple tables.
lets say I want column 1,2,3 from EXCEL CSV into table employee and table 4,5,7 into table employee_info.
Please help me

Related

How to compare one large dataset in DB and one large dataset on SpreadSheet?

I am trying to compare two large dataset which have two columns- Company name column and Contact person name column. One dataset is already in database and one set is on Excel SpreadSheet.
I try to compare two dataset and try to update database.
For now I download data from database and comparing two dataset using Pivot Table function in Excel. This kinds of work. But I hope is there any other better way. Any suggestion will be appreciated!! Thank you.
FYI my database uses MSSQL 2008.
Upload your excel file as .CSV to database, next either create a table for it or just use a temporary table to place the data from the CSV file. Proceed to compare the data from that temporary table to the table on your DB with a Join.
Upload the data from the excel work sheet as a csv file to the database, and save the contents in a different table. Then compare both tables with a join.

Populating SQL database table by retrieving data from Excel spreadsheet

I'm new to SQL (but have experience in other programming languages) and I'm taking on a side project at work that involves creating a database of our team's financials. Ultimately what I want to do is have this database retrieve data from a specific table in a worksheet and then populate a database table. I'm sure this is possible but how would I go about doing this? I'm currently familiarizing myself with PostgreSQL as I found it to be the most beginner friendly.
I am using Dbeaver where i can export the data of any table in to CSV , once i have data in CSV , i can create .sql file back using online http://codebeautify.org/csv-to-sql-converter which then can be executed on any other same db.
This will help get you a cell range exported to CSV:
Export sheet from Excel to CSV
Then use this to get the CSV into PostgreSQL:
How to import CSV file data into a PostgreSQL table?

How to import .csv file data into mysql table using vb.net

Good day everyone, I just want to know how to import .csv file data into mysql table using vb.net.
example:
1. Using open file dialog to open the .csv file.
2. A textbox to display the .csv filename.
3. And a button to insert .csv data into mysql table.
Note: .csv contains name and address field as well the mysql table.
Thanks in advance if someone can help.

ssis importing two excel files with different number of columns into database

I want to build a ssis package that imports a flat file with variable number of columns and stores it in a database table. further i will be using that table to left join with few other tables to find if a particular column value matches with the ones i already have in the database. Then i want to give all non matching rows as output in another folder as a csv file.
So how to write a for each loop to import variable column number flat file and store it in a table. Can we write a package to create a table after it imports a file or can we store the imported file in a temp table created dynamically, because it doesnt matter if the table is deleted after the package stops.
thanks

Excel database values to SQL Server and different tables

I got an Excel file with data which I want to import into a database in Microsoft SQL Server 2008 Express edition.
I do this with right click on a database -> task -> import data.
After this, my data from Excel is loaded in the database in one table.
But I want to seperate the columns from the Excel file into different tables.
So instead of loading all Excel data into one database and table, I want to load the Excel data into one database, but in different tables.
For example: Save column 1,2,3 from Excel in table A, and save column 4,5,6 from Excel in table B.
Anyone that knows how to do this?
I followed the suggestion of #bendataclear:
"Personally I would just import into a temporary table then write INSERT INTO X SELECT queries to move in the correct columns."