Viewing 15 posts - 17,701 through 17,715 (of 18,923 total)
Your picture didn't show up.. can you describe the problem instead?
May 20, 2005 at 8:32 am
Is this what you need?
Select DateTime as DATE, CallTypeID as skillgrp,SUM(CallsOfferedHalf) AS offered
From dbo.t_Call_Type_Half_Hour where (CallTypeID=5002) AND (CONVERT(CHAR(11),DateTime) LIKE CONVERT(CHAR(11),GETDATE()))
GROUP BY DateTime, CallTypeID
May 20, 2005 at 7:58 am
You can always make a select of the tickets that need to be updated. Once you have that you can do something like this :
UPDATE T SET...
May 20, 2005 at 7:23 am
R u sure this would work??
Looks like you're returning a null anyways if not match is found...
May 20, 2005 at 7:12 am
Really bad. It means that once everybody is out of the database it closes itself. Which doesn't seem really bad, but if you have 200 of those on...
May 20, 2005 at 7:07 am
this will update all rows ALWAYS, there's no where condition to filter the rows to update, so if no value is found in TicketPriceExVat then a null will be...
May 20, 2005 at 7:02 am
I wish I could go back to .net... stuck in access
.
May 20, 2005 at 6:57 am
Hey Lowell, there's a catch in asp : the vb constants are not all available : (adInteger) doesn't exists unless you have some include file that I don't remember.
May 20, 2005 at 6:34 am
This is the procedure to write on the server
CREATE PROCEDURE dbo.SearchBookDetails @Title as varchar(50)
AS
SET NOCOUNT ON
SELECT
Col1, Col2
FROM dbo.BookDetails
WHERE Title LIKE '%' + @Title + '%'
SET NOCOUNT OFF
GO
now to...
May 20, 2005 at 6:33 am
Declare @Title
set @Title = 'Harry potter''s adventure'
Select * from dbo.BookDetails where Title LIKE '%' + @Title + '%'
Put this in a stored proc and you're set.
May 19, 2005 at 2:42 pm
You don't HAVE TO but it's better than doing a derived table like I did since it can be modified in the table instead of in the procs...
May 19, 2005 at 2:40 pm
I agree that it returns the same thing.. but I can't find any reference of it in the books online nor yahoo... So I guess it's an undocumented command...
May 19, 2005 at 2:33 pm
This means that the data is incorrectly formated in the column.
Can you run this query and send me the results?
Select * from dbo.YourTable where IsDate(VarcharDateCol) = 0
BTW, those are the...
May 19, 2005 at 1:59 pm
Actually now() is not a standard sql function.. are you sure that now is note a view or a user defined function that returns the getdate() value??
May 19, 2005 at 1:57 pm
Viewing 15 posts - 17,701 through 17,715 (of 18,923 total)