Viewing 15 posts - 2,386 through 2,400 (of 2,469 total)
Here's an example...
SELECT ISNULL(CISCreated, 0) FROM Table will replace all Nulls with zeroes
**ASCII stupid question, get a stupid ANSI !!!**
May 6, 2005 at 7:08 am
Sherif - I suggested that you create an UDF or stored procedure to use the t-sql and return the string...is that doable ?!
**ASCII stupid question, get a stupid ANSI !!!**
May 6, 2005 at 4:56 am
I'm not sure I understand the question - where do you want to use the field name ?! In your application code ?!
If you do your select * in query...
**ASCII stupid question, get a stupid ANSI !!!**
May 5, 2005 at 8:55 pm
Have you tried using the IsNull function ?!
**ASCII stupid question, get a stupid ANSI !!!**
May 5, 2005 at 8:49 pm
Try this:
DECLARE @RoomDescription VarChar(100) (increase len if needed)
SELECT @RoomDescription =
ServiceID, FolderID, 'Accomodation for' + ' ' + RTRIM(Title) + ' ' + RTRIM(PaxFirstName) + ' ' + RTRIM(PaxLastName) +...
**ASCII stupid question, get a stupid ANSI !!!**
May 5, 2005 at 1:39 pm
Training may be far superior but it has a hefty price attached to it - training in Asian coutries on the other hand is way cheaper & because everybody (&...
**ASCII stupid question, get a stupid ANSI !!!**
May 5, 2005 at 10:46 am
Could you post some sample data from your report table ?!
I'm not sure I understand your problem completely - eg: would the start and end dates for period 5 (May)...
**ASCII stupid question, get a stupid ANSI !!!**
May 5, 2005 at 10:11 am
when in doubt you can always use ascii values....
**ASCII stupid question, get a stupid ANSI !!!**
May 5, 2005 at 9:31 am
you're welcome - thx. for feedback!
**ASCII stupid question, get a stupid ANSI !!!**
May 5, 2005 at 9:26 am
If the sample data you posted is as you have it in your table I'm not sure why you need to "group by" at all...
can you not just "select sum(amount)...
**ASCII stupid question, get a stupid ANSI !!!**
May 5, 2005 at 8:35 am
Maybe you could create an UDF that returns the string without the commas in the number values - something like this....
DECLARE @position int, @string varchar(35), @newstring varchar(35)
-- Initialize the variables.
SET...
**ASCII stupid question, get a stupid ANSI !!!**
May 5, 2005 at 8:26 am
Have you tried explicit conversion to int before storing/retrieving ?!
eg: select cast(left(refno, 2) as integer) ?!
1) Identify all rows where refno NOT LIKE 'A%'
2) Convert remaining rows to int value
3)...
**ASCII stupid question, get a stupid ANSI !!!**
May 5, 2005 at 4:59 am
I'm fairly sure you can - I remember an instructor doing something similar for the very same reason (only one server) & giving us a demo...
**ASCII stupid question, get a stupid ANSI !!!**
May 4, 2005 at 9:04 pm
Could you provide some sample data with expected resultset ?!
**ASCII stupid question, get a stupid ANSI !!!**
May 4, 2005 at 2:49 pm
I'm amazed at the volume of response this post has generated - Steve - I can't help but wonder if you end each day thinking about the next topic to...
**ASCII stupid question, get a stupid ANSI !!!**
May 4, 2005 at 2:28 pm
Viewing 15 posts - 2,386 through 2,400 (of 2,469 total)