Forum Replies Created

Viewing 15 posts - 91 through 105 (of 131 total)

  • RE: Dynamic Stored Proc''''s

    You could create a view that displays that same information and that would have the added benefit of being real time.

  • RE: inconsistent result sets

    Forgive me if this is a stupid suggestion but are you certain that there are zero applications inserting, updating and deleting on that table? Is there replication configured on that...

  • RE: joining to a table twice for getting two different counts

    Oh my gosh, I spent nearly all day banging my head against the wall trying to come up with this. Thank you very much for the help and your time....

  • RE: query help

    Your JOIN clauses must come after your FROM clause, as PW mentioned. And yes, if policy number is what links the three tables, then join on that, but the bottom...

  • RE: two joins to same view is causing my count to be squared

    Yes, the point of those joins is to return many results, because I want to perform a COUNT on the result set. So the first one might return 20-75 rows,...

  • RE: query help

    It looks like ProductType is what joins together GE_Transaction and the other two tables. You could do something like this:

    SELECT @WPR_R = Sum(Convert(float,r.WaiverofPremium))* Case

    When ([ProductType] = 'P2'...

  • RE: query help

    Your last SELECT statement is trying to select WaiverOfPremium and LossDate from GE_Transaction.

    You need to join to the other two tables in order to make those columns available. If...

  • RE: Looking for how to get a database to E-Mail me based on data in SS2005

    Thanks a lot! I had to change some things because I am using SQL Server 2005 but it's roughly the same. I also just put my EXEC statement inside the...

  • RE: Today''''s article - Career Paths for Programmers

    I totally agree that programmers need to be business analysts as much as technical experts and developers.

    At my company we only hire people like this. We have no pure...

  • RE: Today''''s article - Career Paths for Programmers

    Offshore technical labor has limitations. For one thing, communication in software development is difficult with people who can speak to each other clearly, much less through different languages and accents....

  • RE: Stored procedure for Median

    I know how to calculate medians and means. I do it pretty much every day, but thanks for the review

    I thought each row...

  • RE: Stored procedure for Median

    I don't understand why the median, which is something you derive from multiple rows, has a value for every single row...am I am missing something?

  • RE: Stored Procedure vs Function - Calculations

    I usually use functions to return one single value, to help make query's easier to write. Like for example say you have a departments table, with a recursive fk relationship....

  • RE: Is there a way to join this 3 tables

    I wasn't aware of that. I join tables both ways, sometimes using both ways within the same statement. Can you give us an example that produces ambiguous results?

  • RE: Is there a way to join this 3 tables

    Another way that to my eyes is simpler looking:

    SELECT p1.productName as ParentProduct, p2.productName as ChildProduct

    FROM products p1, products p2, kits k, cart c

    WHERE p1.productId = c.productId

    AND k.parentProductId...

Viewing 15 posts - 91 through 105 (of 131 total)