Viewing 15 posts - 3,871 through 3,885 (of 7,191 total)
Probably several ways of doing that, but this one will work:
WITH a (aval, astamp) AS (
SELECT min(value), min(t_stamp) from @t
WHERE value = (SELECT min(value) FROM @t)
)
, b (bval, bstamp) AS...
August 28, 2013 at 1:26 am
Could it be because you have ">=" in the first and ">" in the second?
John
August 27, 2013 at 5:13 am
Because NULL means "unknown" and therefore "NULL not equal to 'Check' " can't equate to True.
John
August 23, 2013 at 4:29 am
Because you're looking for those students who have a match with every row in tblData. Therefore the row count for each student needs to be the same as the...
August 22, 2013 at 3:36 am
prasanta.paul 88490 (8/22/2013)
Am I doing correct?
You tell me. Is it returning the results you expected? If it is, then your requirement has changed, because you said you only...
August 22, 2013 at 2:09 am
Here you go. Obviously it doesn't return any rows for your sample data, but if it did, you could join back to A if you need the student name.
John
SELECT
B.StudentID
FROM
B
JOIN
TblData...
August 22, 2013 at 1:39 am
Join @tblData to TableB, group by StudentID, and return those rows having count(*) equal to the number of rows in @tblData. Without full DDL and sample data, I can't...
August 22, 2013 at 1:27 am
OnlyOneRJ (8/21/2013)
Does this mean their was nothing happened on that day except backup task???
No, it doesn't. It means that backup tasks were the only activity that was written to...
August 21, 2013 at 4:23 am
Only if you had a particular trace flag enabled at the time the deadlocks occurred.
http://www.sqlservercentral.com/articles/deadlocks/74829/%5B/url%5D
John
August 21, 2013 at 3:50 am
If you don't have any monitoring system set up that captures those events, then you can't do it. It may be worth looking in the default trace, but I'm...
August 21, 2013 at 3:33 am
Beware that if you have more than one data file in your database, your query will fail.
John
August 21, 2013 at 1:06 am
I can't find it documented anywhere, and I don't know whether there are any exceptions, but it looks like you need to build your parameter value in advance. Probably...
August 20, 2013 at 3:52 am
Well, you certainly need to lose the first and last quotation marks in the @Directory line. Even then, you might still not be allowed to concatenate in place, so...
August 20, 2013 at 1:45 am
There are utilities that enable you to mount a backup file as a database without actually restoring it. So you could back up your live database, then mount the...
August 20, 2013 at 1:16 am
SQL Server will attempt to resolve all objects except those that it can determine will NEVER be necessary to return results when it parses the query. Otherwise it will attempt...
August 15, 2013 at 8:09 am
Viewing 15 posts - 3,871 through 3,885 (of 7,191 total)