Forum Replies Created

Viewing 15 posts - 1 through 15 (of 16 total)

  • RE: Grouping rows together

    Thanks for the replies.

    I replaced my CASE statements with a PIVOT statement and now my query seems to be running fine.

    This is what my query looks like now:

    SELECT BranchName...

  • RE: getting results from a cursor in a single table

    Thanks.

    I tried eliminating the cursor and it works fine now.

    Sorry about my post...I will observe the pattern in my next posting.

  • RE: Grouping rows together

    Sorry Jon I am not an expert in SQL 🙁

    I didn't understand how to use sub-query for my query.

    Can you help.

    Also, the above query doesn't get me the desired results....

  • RE: Grouping rows together

    I am sorry about that.

    Currently my results are displayed as:

    Checks Customer Complaints Securities Transactions.....

    Member Firm A, 9/26/08 ...

  • RE: getting all records between 2 fridays of a given date

    thanks !!

    that was really helpful

  • RE: conditional SQL query based on the column value in table

    thanks I got that working

    I just changed my case statement as :

    CASE

    WHEN (SELECT qq.LogEntryStatusID

    FROM Transaction2821Journals zz INNER JOIN

    Journals qq ON zz.LogEntryID=qq.LogEntryID INNER JOIN

    LogEntryStatus ll ON qq.LogEntryStatusID =...

  • RE: conditional SQL query based on the column value in table

    I already use a case statement in my stored proc.Can i nest two case statements.

    Also, I am not passing status as a parameter.

    When a particular row is found it shouls...

  • RE: SQl Query

    Thanks, I got that working.

    At some times the len was coming out to be zero that's why the error.

    I appreciate your efforts.

  • RE: SQl Query

    I am sorry I didn't realise it was a big chunk of code.

    I have now attached the script for my sql statement.

  • RE: SQl Query

    Hi,

    I have yet another problem that I am facing with the query.

    I am trying to run a rport from my ASP.NET code that uses the query we wrote earlier.

    My...

  • RE: SQl Query

    This was a helpful query.

    I tested the query with my tables and data and it gives me the desired result.

    Thanks for helping me out with this.

  • RE: SQl Query

    I am sorry if I didn't make myself clear enough.

    Though I don't quite understand what you meant by the expected output.

    I need to select all the columns from the table...

  • RE: SQl Query

    Oh and along with that there are some conditions that always need to be met...like the producttype and transactiontype...so there are some conditions that will go in an AND conjunction.

  • RE: SQl Query

    I want to pull records that fulfill any of the given conditions:

    Client Age (>/</=) certain number

    Amount (>/</=) certain number

    Annual Income (>/</=) certain number

    TransactionPercentofNetWorth (>/</=) certain number

    Time Horizon is in given...

  • RE: SQl Query

    Here I have uploaded the DDL and Data

Viewing 15 posts - 1 through 15 (of 16 total)