News

Learn how to master the SELECT statement to form truly useful data queries. This article explains functions, clauses, and keywords that will make your life a lot easier.
I'm doing this in a stored proc using SQL Server.<BR><BR>Basically, I'm executing 1 SELECT statement and if that returns any rows then I want to do a SELECT INTO #Temp With criteria A.
I've tried all kinds of combinations of selecting the top 10 with a count query but can't seem to get the 10 records to be anything but the last 10 inserted. <BR><BR>Not being a strong SQL guy ...