Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge tables #15

Open
efratushava opened this issue Aug 5, 2020 · 2 comments
Open

Merge tables #15

efratushava opened this issue Aug 5, 2020 · 2 comments

Comments

@efratushava
Copy link

Hi,
Can I somehow merge two tables together?

Thank you

@tobimensch
Copy link
Owner

If they contain compatible data, that shouldn't be a problem.

Have you read the manual?
http://tobimensch.github.io/termsql/

I think the -a option for not dropping the tables should be interesting for you.

The -o option for writing the database to a file should be equally interesting to you.

Now try to combine those two and you should be able to create a permanent database
where you can add data as you wish, with termsql, but also other tools.

If you mean merging data that is only partially compatible, then I think there's no support for that.

@ayoubfalah
Copy link

Hi,
Assume we have two tables R1 and R2 with the following schemas:
R1(A1, A2)
R2(A2, A3)
Is it possible to join R1 and R2 using termsql ? in SQL I achieve it using the following query:
SELECT * FROM R1, R2 WHERE R1.A2 = R2.A2

thanks in advance!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants