So I have the following row of my table1 table:
| name | last_name | activated | |
|---|---|---|---|
| ex@ex.com | john | connor | 1 |
Which I can get using:
select email, name, last_name, activated from table1
where email = ex@ex.com
limit 1;
And then I have the other row of of my table2:
| status | end_period | qtd |
|---|---|---|
| 1 | 1828232 | 20 |
Which I can get by using:
select status, end_period, qtd from table2
where email = ex@ex.com
limit 1;
Is there any way I can get the results into one line? Like this:
| name | last_name | activated | status | end_period | qtd | |
|---|---|---|---|---|---|---|
| ex@ex.com | john | connor | 1 | 1 | 1828232 | 20 |
Ps: Both tables have an 'email' column, which is what I use to link the the row of one to another.