ashishsmith
Programmer
I want to count the number of rows from one table and count the number of rows in another table, and then want to compare them to see if the table is getting updated or not?
SELECT (SELECT COUNT(*)
FROM temp_apps_venus_ports) AS Count_1,
(SELECT COUNT(*)
FROM apps_venus_ports) AS Count_2 DECLARE @tempo int DECLARE @final int
SET @tempo = Count_1
SET @final = Count_2 IF (@tempo = @final) PRINT 'Successful' ELSE PRINT 'UnSuccessful'
I have done this much but it's not working, any ideas please......
SELECT (SELECT COUNT(*)
FROM temp_apps_venus_ports) AS Count_1,
(SELECT COUNT(*)
FROM apps_venus_ports) AS Count_2 DECLARE @tempo int DECLARE @final int
SET @tempo = Count_1
SET @final = Count_2 IF (@tempo = @final) PRINT 'Successful' ELSE PRINT 'UnSuccessful'
I have done this much but it's not working, any ideas please......