Viewing 15 posts - 9,946 through 9,960 (of 18,926 total)
Ok, so that was just the UI thatw as not sending the correct information to the stored procedure. You are using stored procedures right?
April 19, 2007 at 7:10 am
Select * From dbo.tbl tbl inner join (
Select Patient_id, Max(Valid_from) from dbo.tbl where Patient_id = @SomeID group by Patient_id) dtDate
on tbl.Patien_id = dtDate.Patient_id and tbl.Valid_from = dtDate.Valid_from
April 19, 2007 at 6:39 am
Why do you think you need to drop the indexes in the first place?
April 19, 2007 at 6:31 am
Only one allergy can be applicable at any time? Do you stop being allergic to peanuts once you become allergic to milk?
April 18, 2007 at 8:16 pm
Please post the link here for further referrences.
April 18, 2007 at 8:13 pm
You must list the columns you want to insert in the 2nd table. You must figure this list out yourself or give us all the info so we can build...
April 18, 2007 at 8:12 pm
Select * from dbo.TableName where valid_from <= @Date
The top 1 would limit the results to one row, which is most likely not what is wanted in this case.
April 18, 2007 at 3:58 pm
I meant the whole insert statment... I'm sure most folks smart enough to use searh engine are also smart enough to use books online
April 18, 2007 at 1:43 pm
Ya, those big concatenated queries are often full of surprises like this one
.
April 18, 2007 at 1:40 pm
Try this
if @TermID IS NOT NULL
begin
...
end
IF @TaughtCourseID IS NOT NULL
begin
...
end
April 18, 2007 at 10:37 am
Cancel my previous request.
IF EXISTS (SELECT * FROM dbo.SysObjects WHERE Name = 'ConcatDemo' AND XType = 'FN')
DROP FUNCTION dbo.ConcatDemo
GO
--Function to concatenate
CREATE FUNCTION dbo.ConcatDemo (@TableId INT)
RETURNS VARCHAR(8000)
AS
BEGIN
DECLARE @Return AS VARCHAR(8000)
SELECT @Return...
April 18, 2007 at 10:35 am
Why are you even using a cursor or a loop to do this?
Please post the tables' definition, some sample data and the required output from that sample data specifying weither you...
April 18, 2007 at 10:21 am
CREATE [UNIQUE] NONCLUSTERED INDEX IX_Name ON dbo.TblName (Col1, Col2) ON FileGroupName
If you were to do this with the clustered index, the whole table would be moved to this filegroup (not...
April 18, 2007 at 10:19 am
Viewing 15 posts - 9,946 through 9,960 (of 18,926 total)