Viewing 15 posts - 196 through 210 (of 1,109 total)
Even if you select form a single table, select * would need all the columns returned, so SQL Server will need to scan through the whole table. If you need...
June 23, 2008 at 1:44 am
Ok, and here is a solution without a temptable :), just a CTE expression. Although I'm sure there is a more efficient way to do this 🙂
WITH ...
June 20, 2008 at 8:56 am
Hmm, interesting problem, did not want to spend much time on it, so here is a solution using a temporary table:
GO
WITH cte
...
June 20, 2008 at 8:40 am
indraprakash (6/20/2008)
thanks Andrasindraprakash
The solution actually came from JohnG, and I've learned something too 🙂
Glad your issue is solved
- Andras
June 20, 2008 at 2:44 am
...
You are incorrect Andras. Another poster has already put up code that works in SQL 2005. There is a mechanism for 2000 as well although it is certainly...
June 20, 2008 at 2:12 am
rkjayaraj (6/20/2008)
June 20, 2008 at 2:03 am
JohnG (6/19/2008)
In SQL Server...
June 19, 2008 at 8:37 am
jim.pennington (6/18/2008)
You need to add a where clause for Present_Absent = 'A' or else you will return any student_ID that has more than 5 entries.
Good point, I should have read...
June 19, 2008 at 3:41 am
sharma (6/18/2008)
I had created table id as INTHow to alter the table to add IDENTITY key
You will need to rebuild the table, i.e. you cannot just use an alter...
June 18, 2008 at 8:40 am
Andras Belokosztolszki (6/18/2008)
SELECT Student_Id,
YEAR(Date),
COUNT(*) AS numberOfAbsences
FROM studentTable
GROUP...
June 18, 2008 at 5:30 am
What about something like:
SELECT Student_Id,
YEAR(Date),
COUNT(*) AS numberOfAbsences
FROM studentTable
GROUP BY Student_Id,...
June 18, 2008 at 5:28 am
indraprakash (6/18/2008)
thanks,But this is not the solution of my query. I want to know how to delete dulicate records without using any new table or any add any extra column
In...
June 18, 2008 at 4:56 am
indraprakash (6/18/2008)
Is there any thing like rowid in Oracle?How to delete duplicate records from SQL sever without using template table or create an extra column.
There is no rowid that...
June 18, 2008 at 3:38 am
bkrishnasamy (6/18/2008)
Could you explain ,how to setting the trace in advance ortell me about the ddl trigger.
Both of these are largish topics, so I'd suggest you look at Books...
June 18, 2008 at 3:34 am
bkrishnasamy (6/18/2008)
we are using window's authentication in my server. I want to know, who (hostname or machine id) is updated and compiled any sp's recently . Plz help me...
June 18, 2008 at 2:34 am
Viewing 15 posts - 196 through 210 (of 1,109 total)