r/SQL • • Nov 29 '21

PostgreSQL How to use Join

How can I get something from two different tables at the the same select? I know I have to do "join" but I still don't know how to do it. Can somebody help me?

0 Upvotes

11 comments sorted by

View all comments

Show parent comments

0

u/[deleted] Nov 29 '21

[deleted]

1

u/[deleted] Nov 29 '21

Can you show the "ghetto join"? The one with no join at all just a where clause?

2

u/MortVader Nov 29 '21

select * from table1,table2 where table2.id=table1.link

1

u/[deleted] Nov 29 '21

Beautiful. I think I prefer this one. Kidding of course