Viewing 15 posts - 811 through 825 (of 1,124 total)
Amazingly, SQL Query Processor performs a Cartesian product (a cross join, or an unrestricted join) between the first two tables that appear in the FROM clause, and as a result,...
December 4, 2007 at 4:46 am
This is an excerpt taken from BOL:
Shared memory is the simplest protocol to use and has no configurable settings. Because clients using the shared memory protocol can only connect to...
December 4, 2007 at 2:28 am
Hey, haven't you seen my above post?
December 4, 2007 at 2:10 am
Then just remove it from the select list & add the aggregate to order by clause..
SELECTTOP 1 WITH TIES t.teacher_id
FROM@teachers t
LEFT JOIN @students s on t.teacher_id = s.teacher_id
GROUP BY t.teacher_id
ORDER...
December 4, 2007 at 12:12 am
This is because you might have created the login with windows policies enforced on it. You need to disable the enforce password policy in login user properties.
December 3, 2007 at 11:04 pm
Is this what you're looking for?
SELECTTOP 1 WITH TIES t.teacher_id, COUNT( s.teacher_id ) AS NoOfStudents
FROM@teachers t
LEFT JOIN @students s on t.teacher_id = s.teacher_id
GROUP BY t.teacher_id
ORDER BY NoOfStudents
December 3, 2007 at 11:00 pm
It would be better, if you could post your code with the results you want, rather we working blindly thinking something else:cool:
December 3, 2007 at 10:53 pm
I'll go for option B..., makes sense querying a date directly rather than concatenating integers to make a date then query it!!!!
December 3, 2007 at 7:45 am
Thanks Andras, for explaining what you meant earlier.:)
December 3, 2007 at 7:40 am
I still couldn't understand what you're trying to point...:unsure:
Multiplying the value gives me 3032, whereas I get 12 when divided...
I am curious to know, how the said value can be...
December 3, 2007 at 6:48 am
Is the SET option defined at the PROCEDURE level?
December 3, 2007 at 6:25 am
Well, you need to interchange * with /
You are right, (I probably need to sleep more)
You'll surely need...:D
December 3, 2007 at 6:14 am
datepart(wk, '3/12/2007')*53 + datepart(yyyy, '3/12/2007')
The first part gives you the week number in that year, the second part the year.
Hey Andras, are u sure that will give what you said....
December 3, 2007 at 6:00 am
SELECT RTRIM( LTRIM( SomeColumn ) ) FROM SomeTable
December 3, 2007 at 5:28 am
Viewing 15 posts - 811 through 825 (of 1,124 total)