Jump to content
Changes to the Jaspersoft community edition download ×

Query with multiple tables


danfergarc

Recommended Posts

Hi!

On the sql management studio I execute this query using the table transactions and till.

select till.code,t.trans_date
from TCPOS4.dbo.transactions as t, TCPOS4.dbo.tills as till
where t.trans_date = (select max(t2.trans_date)
                      from TCPOS4.dbo.transactions as t2
                   where t2.till_id=t.till_id
                     ) and t.till_id=till.id order by trans_date desc;
 
The result are two columns. I just want to insert this query and inser the result on another table. 
Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...