Viewing 15 posts - 1 through 15 (of 16 total)
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...
January 9, 2009 at 1:50 pm
Thanks.
I tried eliminating the cursor and it works fine now.
Sorry about my post...I will observe the pattern in my next posting.
January 7, 2009 at 1:03 pm
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....
January 7, 2009 at 11:45 am
I am sorry about that.
Currently my results are displayed as:
Checks Customer Complaints Securities Transactions.....
Member Firm A, 9/26/08 ...
January 6, 2009 at 3:30 pm
thanks !!
that was really helpful
December 30, 2008 at 4:51 pm
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 =...
March 18, 2008 at 4:52 pm
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...
March 18, 2008 at 4:05 pm
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.
February 26, 2008 at 10:48 am
I am sorry I didn't realise it was a big chunk of code.
I have now attached the script for my sql statement.
February 25, 2008 at 3:53 pm
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...
February 25, 2008 at 3:49 pm
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.
February 25, 2008 at 2:53 pm
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...
February 23, 2008 at 5:00 pm
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.
February 22, 2008 at 5:07 pm
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...
February 22, 2008 at 5:03 pm
Viewing 15 posts - 1 through 15 (of 16 total)