Forum Replies Created

Viewing 15 posts - 511 through 525 (of 683 total)

  • RE: Reading through a string parameter

    Hans is right, jthill. This is not something you really should be doing with T-SQL.

    Why don't you take a step back, describe what it is you want to achieve (i.e....

    Ryan Randall

    Solutions are easy. Understanding the problem, now, that's the hard part.

  • RE: Multi aggregation column CrossTab

    Hi Richard,

    I'm guessing this isn't as easy as...

    select sum(hours), sum(cost), sum(esthours), sum(estcost) from yourview

    ...but I don't see why not from your description of your problem.

     

    Please post some sample data and...

    Ryan Randall

    Solutions are easy. Understanding the problem, now, that's the hard part.

  • RE: problem with a view, its not bring back rows with null in it

    Pieter,

    I can't get my head around it without some sample data, but surely if you use a full outer join and no where clause, nothing will be left out? Is...

    Ryan Randall

    Solutions are easy. Understanding the problem, now, that's the hard part.

  • RE: problem with a view, its not bring back rows with null in it

    Pieter - Why would you do that rather than simply a left outer join?

    Ryan Randall

    Solutions are easy. Understanding the problem, now, that's the hard part.

  • RE: Reading through a string parameter

    Hi jthill,

    That's as clear as mud to me.

    If you post an example of what you're trying to do (i.e. table structure, sample data,...

    Ryan Randall

    Solutions are easy. Understanding the problem, now, that's the hard part.

  • RE: Week number of the month

    Hi Kavita,

    I don't know if the link gave you what you needed (there's a lot there!), but I've had a stab...

    --data

    declare @t table (i int identity(1,...

    Ryan Randall

    Solutions are easy. Understanding the problem, now, that's the hard part.

  • RE: Strange error for filtering a CAST data wth WHERE clause

    Here's some info on the ISNUMERIC function, and a work-around...

    http://aspfaq.com/show.asp?id=2390

    Ryan Randall

    Solutions are easy. Understanding the problem, now, that's the hard part.

  • RE: problem with a view, its not bring back rows with null in it

    Hi Ben,

    Try using 'left outer join' instead of 'inner join'...

    Ryan Randall

    Solutions are easy. Understanding the problem, now, that's the hard part.

  • RE: how would you optimise this query???

    The answer is probably yes, but it does depend on what 'sproc' does.

    If you post an example with the table structure, some sample data, and the expected output, you'll get...

    Ryan Randall

    Solutions are easy. Understanding the problem, now, that's the hard part.

  • RE: Foreign Key Reference

    Hi Ashok,

    If you post an example with your table structure, some sample data and the result you would like to get based on that sample data, you'll get an answer...

    Ryan Randall

    Solutions are easy. Understanding the problem, now, that's the hard part.

  • RE: Debating over CASE vs Derived Tables for Converting Rows to Columns

    Hi Darin,

    The case method is more efficient, and I'd normally recommend using that. If you need to group/rollup numbers, you can always use the select containing the cases as a...

    Ryan Randall

    Solutions are easy. Understanding the problem, now, that's the hard part.

  • RE: Generating a Range

    I can't find the article by Itzik Ben Gan - can someone please post a link.

    Any idea when he 'came up with' the algorithm? I ask because it is suspiciously...

    Ryan Randall

    Solutions are easy. Understanding the problem, now, that's the hard part.

  • RE: substract the word from the list

    Hi Karthik,

    It's hard to understand what you're asking for, but maybe it's this...

    --data

    declare @t table (words varchar(100))

    insert @t

              select 'hello, thanks, movies, tickets'

    union all select 'abc,...

    Ryan Randall

    Solutions are easy. Understanding the problem, now, that's the hard part.

  • RE: How to get the word like......

    I suspect this is not what you want, but it does do what you asked...

    Ryan Randall

    Solutions are easy. Understanding the problem, now, that's the hard part.

  • RE: Query puzzle

    Thanks Howard. Glad I could help

    It's not such an easy skill to learn to define a problem well, but it looks like you're...

    Ryan Randall

    Solutions are easy. Understanding the problem, now, that's the hard part.

  • Viewing 15 posts - 511 through 525 (of 683 total)