Advertisement

08.13.2008 at 09:01PM PDT, ID: 23646993
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

6.4

Issues with SQL query syntax in my reports..

Asked by Kerau in SQL Query Syntax, SQL Reporting, SQL Server 2005

Tags:

I am working in Reporting Services SSRS 2005. I have a number of tables please look at the screen-shot and the query below which joins the table. I also have five different parameters which should be passed to generate a report. They are
1. StartDate
2. EndDate

3. UserName (should have the like (%) search)
4. ApplicationName (multiselect drop-down)
5. RefMemberName (multiselect drop-down)

The SQL query syntax should  generate a report to capture the User Name, ApplicationName, Inputdate (will be based on Success, Failed, and Lockout). I  already have written queries in different datasets for StartDate-enddate; application name, and ref member name. We just have to pass the parameter in our main query to interact with each other.

Please help me writing the main query down. Any suggestions will highly be appreciated..Start Free Trial
1:
2:
3:
4:
5:
6:
SELECT APPLICATION_AUDIT.INPUT_DATE AS InputDate, REFERRAL_MEMBER.REFERRAL_MEMBER_NAME AS ReferralMemName, RESELLER_USER.USERNAME AS ReSellerUserName, RESELLER_USER.EMPLOYEE_ID AS ReSellerEmplD, APPLICATION_NAME.CODE AS ApplicationName, RESELLER_USER_REFERRAL_MEMBER.RESELLER_USER_REF _MEMB_ID AS ReSellerUserRefMemlD, RESELLER.RESELLER_NAME AS ReSellerName, APPLICATION_AUDIT.APPLICATION_METHOD AS ApplicationMethod 
FROM 	CDDW_ProdArchive.TSMAN.APPLICATION_AUDIT AS APPLICATION_AUDIT INNER JOIN CDDW_ProdArchive.TSMAN.APPLICATION_NAME AS APPLICATION_NAME ON 
	APPLICATION_AUDIT.APPLICATION_NAME=APPLICATION_NAME.CODE 	INNER JOIN CDDW_ProdArchive.TSMAN.RESELLER_USER AS RESELLER_USER ON APPLICATION_AUDIT.INPUT_BY= 
RESELLER_USER.USERUSERNAME INNER JOIN CDDW _ProdArchive.TSMAN.RESELLER_ USER_REFERRAL_MEMBER AS RESELLER_USER_REFERRAL_MEMBER ON RESELLER_USER.USERNAME= RESELLER_USER_REFERRAL_MEMBER.USERNAME INNER JOIN 
CDDW_ProdArchive.TSMAN.RESELLER AS RESELLER ON RESELLER_USER.RESELLER_ID = RESELLER.RESELLER_ID INNER JOIN CDDW_ProdArchive.TSMAN.REFERRAL_MEMBER AS REFERRAL_MEMBER ON 
RESELLER_USER_REFERRAL_MEMBER.REFERRAL_MEMBER_ID = REFERRAL_MEMBER.REFERRAL_MEMBER_ID ORDER BY ReSellerUserName
Attachments:
 
Table Structure
Table Structure
 
 
Desired Report
Desired Report
 
 
Loading Advertisement...
 
[+][-]08.14.2008 at 03:54AM PDT, ID: 22229061

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: SQL Query Syntax, SQL Reporting, SQL Server 2005
Tags: SQL Query Syntax and Reporting Services SSRS 2005
Sign Up Now!
Solution Provided By: fesnyng
Participating Experts: 1
Solution Grade: B
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628