Hi all
I am trying to import a database but the problem is the following.
I backed up the db on the other sql server and brought it to the other sql server and tried to do a restore of the db into the unexistent database(I called this new db new_netsy). I got the following error:
Microsoft...
This is the query I wrote:
USE TClient
GO
SELECT ID_stat, dist, ID_line
FROM dbo.K_lines
WHERE (dist, ID_line)
IN
( SELECT MAX(dist), ID_line
FROM dbo.K_lines
GROUP BY ID_line
)
GO
Ok now the bacgrount, I have this situation
ID_line, ID_stat, dist
1 A 0
1 B 12...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.