Viewing 15 posts - 136 through 150 (of 243 total)
SELECT YEARVALUE FROM TABLE WHERE VALUE = MAX(VALUE)
November 17, 2007 at 12:01 am
My apologies if I sound dense, but I'd like to know the utility gained from taking the trouble to define an elaborate CASE clause and then filtering records on only...
November 16, 2007 at 12:47 am
[Code]CREATE TRIGGER CHECKENDTIMES ON [dbo].[Schedule_Info]
FOR INSERT, UPDATE
AS
DECLARE @START DATETIME
DECLARE @END DATETIME
SET @START = SELECT STARTING_TIME FROM INSERTED
SET @END = SELECT ENDING_TIME FROM INSERTED
SELECT COUNT(TITLE) AS CLASH
FROM SCHEDULE_INFO
WHERE DATEDIFF(m, ENDING_TIME,...
November 16, 2007 at 12:30 am
What is the criteria for retrieving the other rows? Write it out as a simple query and then cut out the WHERE part and add it to the first query...
November 15, 2007 at 6:04 am
Srini, thank you for such a useful and beautiful piece of code!
1. However, when I ran the script and then the sproc, I found it only created log_tables for...
November 13, 2007 at 6:18 am
You can save your script as .sql or .txt and send it to your clients as it is or zipped up, and have them run it from QA.
Alternatively, you can...
November 6, 2007 at 2:45 am
[Quote]Also, i want to introduce the [Enter] after add1 and add2 so that when i retrieve the Address, formatting looks good.[/Quote]
SELECT ISNULL(add1,'') + CHAR(13) + CHAR(10) + ISNULL(add2,'') + CHAR(13)...
November 5, 2007 at 7:24 am
In many discussions on this issue that I have seen on several forums, including here, all the big boys have been very careful to stress that there is no one...
November 2, 2007 at 6:15 am
Irfan, with all due respect (and I suppose I am speaking on behalf of many members), your post is not at all clear on what you need to do.
I grasp...
November 1, 2007 at 7:04 am
Pray tell, for the sake of all other members, how you solved it.
November 1, 2007 at 6:52 am
Vidhya, I would not be so hasty in claiming that. SQL Server is an OLEDB Server, which means it can hold any type of files, and I am sure there...
November 1, 2007 at 6:44 am
Use this statement immediately after committing your insert to extract the last identity value used:
SELECT @@IDENTITY FROM Table
October 31, 2007 at 3:55 am
If the related column in Table2 is an FK (i.e. it always has a matching record in Table1, then you can use:
DELETE TABLE1 WHERE Column1 NOT IN(SELECT Column1 from TABLE2)
Otherwise,...
October 27, 2007 at 3:01 am
Viewing 15 posts - 136 through 150 (of 243 total)