danfergarc Posted August 22, 2016 Share Posted August 22, 2016 Hi!On the sql management studio I execute this query using the table transactions and till.select till.code,t.trans_datefrom TCPOS4.dbo.transactions as t, TCPOS4.dbo.tills as tillwhere 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now