Ssrs 2008 r2, select more or more or none of the above values
In an an existing SSRS 2008 r2 report, I want to have a parameter called @hair where the user
can see if the customer purchased one of the following items:
1. hair spray,
2. hair shampoo,
3. Hair color,
4. hair conditioner, or
5. No hair product purchased.
The table is called inventory and the values for the field called hairproduct are
1. hair spray = 'HR',
2. hair shampoo = 'HS',
3. hair color = 'HC',
4. Hair conditionier = 'HD',
5. If hair product is not purchased hairproduct value is null. This is due to
the inventory table contains columns like hairproduct, eyeproduct, faceproduct. If a
particular product is purchased, the column will contain a value. If a customer purchases
all 4 hair products and 3 eyeproducts, and 9 faceproducts, the inventory table will contain
16 columns for a particualr customer.
In the parameter window, I can use the following to have the correct values be displayed in the
selection window:
SELECT DISTINCT IsNull(inventory.hairproduct,'') as hairid,
CASE IsNull(inventory.hairproduct,'')
WHEN 'HR' then 'hair spray'
WHEN 'HS' then 'hair shampoo'
WHEN 'HC' then 'Hair color'
WHEN 'HC' then 'hair conditioner'
WHEN '' then 'No hair product purchased'
FROM Inventory
**Note the @hairproduct parameter allows blank values and allows multiple values.
However in the main query for the ssrs 2008 r2 report, I am not certain how I would change the following statement to select 'No hair product purchased'.
The current select statement looks like the following:
select customer_id,hairproduct
from inventory where customer_id = @customerid
hairproduct in (@hairproduct).
Basically I need to change the main query, dataset that matches the parameter @hairproduct, or possibly add a new parameter that means 'No hair product purchased' to report on the customer that has one or more hair products purchased or none.
Thus can you tell me and/or show me sql that will solve my problem?
Hi there,
Can you modify the no hair product purchased to a special code? Eg. NP.
Then something like this may work (though it may be a bit slow)
select customer_id,hairproduct
from inventory where customer_id = @customerid and
(hairproduct
in (@hairproduct) and (patindex(@hairproduct,'%NP%') = 0)
OR ( (patindex(@hairproduct,'%NP%')
> 0) and customerid not in (select customerid from inventory where
customer_id = @customerid where hairproduct is not null)
cheers,
Andrew
Andrew Sears, T4G Limited, http://www.performancepointing.com
Similar Messages
-
Hi,
I have started getting this error since a week now when I try to schedule a report or change a schedule of a report.
An error occurred within the report server database. This may be due to a connection failure, timeout or low disk condition within the database. (rsReportServerDatabaseError) Get Online Help For more information about this error navigate to the report
server on the local server machine, or enable remote errors
We have SQL Server 2008 installed along with SSRS running on the server. I have never seen this happening before for almost a year now but suddenly it appeared. Along with this, report subscription is also messed up and some report are not been
emailed as they have a error like:
Failure sending mail: An error occurred within the report server database. This may be due to a connection failure, timeout or low disk condition within the database.Mail will not be resent.
I am not sure what caused this but if anyone has any idea of what is going on it will be great.
Thanks you for your help.
Please reply soooon !!!Rich, hi, sorry for my english but I speak spanish...
Well, I was tried to recreate this issue and is really hard to recreate, however and as a rain from the sky, one of my customers receive the same error that you have, reviewing Windows Logs and SQL Traces there is nothing.
Just for discard security issues I decide to change permissions in my server.
1. Go to SQL Server Reporting Services Configuration Manager
2. Go to Databases
3. Verify the credentials used to connect to the database server
4. Go to your database server
5. Look for the login or user that is being used to connect to the database server from SSRS
6. Change the role of that user and convert it to Sysadmin (Relax, this is not the final solution)
7. Try again (Is not necesary to restart ANYTHING)
8. Now, your SSRS and Subscriptions must work fine
9. If your SSRS and subscriptions are working ok, you have to give some permissions to the user
10. Grant execute permissions on
master.dbo.xp_sqlagent_notify
master.dbo.xp_sqlagent_enum_jobs
master.dbo.xp_sqlagent_is_starting
msdb.dbo.sp_help_category
msdb.dbo.sp_add_category
msdb.dbo.sp_add_job
msdb.dbo.sp_add_jobserver
msdb.dbo.sp_add_jobstep
msdb.dbo.sp_add_jobschedule
msdb.dbo.sp_help_job
msdb.dbo.sp_delete_job
msdb.dbo.sp_help_jobschedule
msdb.dbo.sp_verify_job_identifiers
11. Grant select permissions on
msdb.dbo.sysjobs
msdb.dbo.syscategories
12. Grant public role to the user in the MSDB and Master DB
13. Remove the Sysadmin role to the user
14. Try again, now, your SSRS is ready to work
Regards
Pls let me know if work for you
Regards | John Bocachica | jboca.blogspot.com -
Get the data with more than one of the desired value
Hi,
I need to pull the records with more than one value of 'Other' on the delivery days fields.
The delivery fields are mon,tue,wed,thu,fri and sat that tells the where the item will be delivered. The value can be Home, Work, or Other.
Here is the Sample data:
cust_id: 123
item: newspaper
mon: Home
tue:Work
wed: Other
thu: Home
fri: Other
sat: Other
And here is my query so far.
select
cust_id,
item,
mon,
tue,
wed,
thu,
fri,
sat,
sum(case when (del_mon = 'O' or del_tue ='O' or del_wed ='O' or del_thu ='O' or del_fri ='O' or del_sat='O') then 1
else 0 end) as day_ctr
from customer
Could you please help me with the right formula I need to get this?
Thank you in advance..First
DESC customer
Second
Can you explain what you are trying with
sum(case when (del_mon = 'O' or del_tue ='O' or del_wed ='O' or del_thu ='O' or del_fri ='O' or del_sat='O') then 1 else 0 end) as day_ctr
Third
Usually it's helpful a example of the result you want...
Perhaps you want this
select DECODE(mon,1,(select distinct mon from customer), 'OTHER') mon,
DECODE(tue,1,(select distinct tue from customer), 'OTHER') tue,
DECODE(wed,1,(select distinct wed from customer), 'OTHER') wed,
DECODE(thu,1,(select distinct thu from customer), 'OTHER') thu,
DECODE(fri,1,(select distinct fri from customer), 'OTHER') fri,
DECODE(sat,1,(select distinct sat from customer), 'OTHER') sat from
select
COUNT(DISTINCT mon) mon,
COUNT(DISTINCT tue) tue,
COUNT(DISTINCT wed) wed,
COUNT(DISTINCT thu) thu,
COUNT(DISTINCT fri) fri,
COUNT(DISTINCT sat ) sat
from customer
) -
In a new ssrs 2008 r2 report, I need to display 2 of the parameter values in the heading of the report. One of the parameter values in the name and customer number. The second heading value is the city and state where the particular customer is located at.
The customer table has the following values:
a. cust_id int primary-id,
b. customer_name varchar(50),
c. cust_address1 varchar (50),
d. cust_address2 varchar (50),
e. cust_city_state varchar(40),
f. cust_zip_providence varchar(30),
g. cust_country varchar(30).
Thus I need to place the paramter values of customer_name and cust_city_state that are obtained from a dropdown list in the heading.
when I try =first(customer_name) in the heading, the value is only good for the first customer name. After that, the wrong parameter value is displayed.
Thus can you tell me and/or show me code of what I can do to place the parameter values
of customer_name and cust_city_state in the heading of the report?Follow below steps,
1. Create 3 Data set.
DS1 = select * from customertable
DS2 = select distinct customer_name from customertable
DS3 = select distinct cust_id from customertable
2. Add two parameter, customer name and customer number
--------parameter 1
- supply Name property for 1st parameter
- datatype for the parameter is string
- Available value property, Select dataset DS2, Select Field Value as "Customer_Name"
--------parameter 2
- supply Name property for 2st parameter
- datatype for the parameter is string
- Available value property, Select dataset DS3, Select Field Value as "Cust_id"
3. Add a blank tablix/table.
-- Select TableRow2 and right click to add new group i.e insert group.
-- Group properties window will be openned,
-- Select Group On Expression 1st.
-- Select the parameter(Parameter1/customer name) by double clicking in the expression window
-- Select Group On another Expression 2nd.
-- Select the parameter(Parameter2/Cust Id) by double clicking in the expression window
-- Now in the general tab you need to checked "Repeat Group Header"
-- press ok to close the group properties window.
4. Now from DS1 drag the field City and State in TableRow3 columns.
5. Drag the Customer Name and Customer Id/Number in TableRow1.
6. In case if First(Fields!CustomerName) appears then remove First function as simply "Fields!CustomerName". Similarly for Customer Number.
7. Finally we need to set the filter condition of the table property. Open the table property by right clicking. On the "Filter" tab choose the expression as "Fields" items and double click "CustomerName" to add in the expression. Similarly add second
field "CustomerNumber" in the expression. Check the operator "=" and choose the value as "Parameter" items respectively.
Regards, RSingh -
Ssrs 2008 'select all' option to be selected for a parameter
In a new ssrs 2008 report, the problem is all reports are not selected from the parameter called 'report' when the report runs automatically. When the report executes, there is nothing displayed in the parameter selection dropdown box. The user
has to click the down arrow to select which reports they want to execute.
Here is the siutation for the ssrs 2008 report:
In a new SSRS 2008 report, I want to be able to allow the user to select which report they would like to see generated by selecting the report name from a dropdown list. This is a multi-valued parameter and the parameter name is called 'report'. I
would like the default value to be for all 5 reports to be selected.
All 5 reports will be on the 'main' report. There will be no subreports. Each report will have its own unique matrix and the matrix will be visibile based upon what is selected in the parameter called 'report'.
My question is how can I make the 'default' value for the parameter called 'report' have all the reports selected?
Normally to get all multivalued parameter values selected you create a dataset and run a query against a table. However in this case, there is no table to query. The user just selects what report(s) they want executed.
Here is the code that is used:
1.Right-click the multiple parameter ‘repot’ to open the Properties dialog box.
2.Specify the values below in the Available values:
Label: report1
Value: report1
Label: report2
Value: report2
Label: report3
Value: report3
Label: report4
Value: report4
Label: report5
Value: report5
3.Specify the values below as the Default Values:
report1 report2 report3 report4 report5
4.Right-click the ‘report1’ to open the Tablix Properties dialog box.
5.Select Visibility in the left pane, type the expression below in the “Show or hide based on an expression” textbox:
=iif(InStr(join(Parameters!report.Value,","),"report1")>0,false,true)
6.Use the expressions below to control the visibility of the ‘report2’, ‘report3’, ‘report4’, ’report5’:
=iif(InStr(join(Parameters!report.Value,","),"report2")>0,false,true)
=iif(InStr(join(Parameters!report.Value,","),"report3")>0,false,true)
=iif(InStr(join(Parameters!report.Value,","),"report4")>0,false,true)
=iif(InStr(join(Parameters!report.Value,","),"report5")>0,false,true)
Thus can you tell me how all values from the 'report' parameter can be selected automatically when the ssrs report is executed?Pass default value as below and see
=Split("Report1,Report2,Report3,Report4,Report5",",")
Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs -
I will hold select, control or try to select all and none of the above work. It does in explorer
If it does work in Safe-mode then disable all extensions and then try to find which is causing it by enabling one at a time until the problem reappears.
*Use "Disable all add-ons" on the [[Safe mode]] start window to disable all extensions.
* Close and restart Firefox after each change via "File > Exit" (Mac: "Firefox > Quit"; Linux: "File > Quit")
In Firefox 4 and later [http://kb.mozillazine.org/Safe_mode Safe mode] disables extensions and disables hardware acceleration.
*Tools > Options > Advanced > General > Browsing: "Use hardware acceleration when available"
A possible cause is a problem with the file places.sqlite that stores the bookmarks and the history.
*http://kb.mozillazine.org/Bookmarks_history_and_toolbar_buttons_not_working_-_Firefox
*https://support.mozilla.com/kb/Bookmarks+not+saved#w_places-database-file
Create a new profile as a test to check if your current profile is causing the problems.
See "Basic Troubleshooting: Make a new profile":
*https://support.mozilla.com/kb/Basic+Troubleshooting#w_8-make-a-new-profile
There may be extensions and plugins installed by default in a new profile, so check that in "Tools > Add-ons > Extensions & Plugins" in case there are still problems.
If that new profile works then you can transfer some files from the old profile to that new profile, but be careful not to copy corrupted files.
See:
*http://kb.mozillazine.org/Transferring_data_to_a_new_profile_-_Firefox -
SSRS 2008 R2 is extremely slow. The query runs in less than a second in the dataset designer but if you try to view the report it takes over 10 minutes. I have read this is a bug in SSRS 2008 R2. We installed the most recent patches and
service packs. Nothing we've done so far has fixed it and I see that I'm not the only person with this problem. However I don't see any answers either.Hi Kim Sharp,
According to your description that when you view the report it is extremely slow in SSRS 2008 R2 but it is very fast when execute the query in dataset designer, right?
I have tested on my local environment and can‘t reproduce the issue. Obviously, it is the performance issue, rendering performance can be affected by a combination of factors that include hardware, number of concurrent users accessing reports, the amount
of data in a report, design of the report, and output format. If you have parameters in your report which contains many values in the list, the bad performance as you mentioned is an known issue on 2008 R2 and already have the hotfix:
http://support.microsoft.com/kb/2276203
Any issue after applying the update, I recommend you that submit a feedback at https://connect.microsoft.com/SQLServer/
If you don’t have, you can do some action to improve the performance when designing the report. Because how you create and update reports affects how fast the report renders.
Actually, the Report Server ExecutionLog2 view contains reports performance data. You could make use of below query to see where the report processing time is being spent:
After you determine whether the delay time is in data retrieval, report processing, or report rendering:
use ReportServer
SELECT TOP 10 ReportPath,parameters,
TimeDataRetrieval + TimeProcessing + TimeRendering as [total time],
TimeDataRetrieval, TimeProcessing, TimeRendering,
ByteCount, [RowCount],Source, AdditionalInfo
FROM ExecutionLog2
ORDER BY Timestart DESC
Use below methods to help troubleshoot issues according to the above query result :
Troubleshooting Reports: Report Performance
Besides this, you could also follow these articles for more information about this issue:
Report Server Catalog Best Practices
Performance, Snapshots, Caching (Reporting Services)
Similar thread for your reference:
SSRS slow
Any problem, please feel free to ask
Regards
Vicky Liu -
Ssrs 2008 r2 straight line within a matrix
In an SSRS 2008 R2 new report have placed a matrix on the end of the report for information the user wants to see at the end of the report. The user wants to place a straight line between the different infomation sections in the tablix. Here are the problems
I am having:
1. In a row I would like to merge 2 cells together so that a line placed within the matrix is the same length. The problem is that I do not know how to merge the cells.
2. When I drag a line into a cell in the matrix, the line is not straight. The line points to an angle. I have tried to change the properties of the line on the endpoint values but that has not worked. Thus can you tell me how to make the line placed within
a matrix cell to be straight?Take a look at this post for inserting a horizontal (or vertical) line into a tablix cell:
http://social.msdn.microsoft.com/Forums/sqlserver/en-US/397d6dc4-766a-43c9-9706-5370a2bfaeb4/insert-line-into-table?forum=sqlreportingservices
For merging cells, you simply select a set of contiguous cells, right-click, merge cells. There is a catch of course. The catch is that all of the cells you are trying to merge must be in the same scope. Below are some screenshots showing a simple Matrix
with 1 column group and 1 row group.
As you can see in this screenshot, I have selected 2 adjacent cells that are both in the same scope, and merge cells is available.
In this screenshot, I have selected 2 adjacent cells that are not in the same scope. The left cell is only scoped by the row group while the cell on the right is scoped by both the row and the column group. As a result, I cannot merge the cells.
"You will find a fortune, though it will not be the one you seek." -
Blind Seer, O Brother Where Art Thou
Please Mark posts as answers or helpful so that others may find the fortune they seek. -
SSRS 2008: how to show an empty chart with legend and x and y axis when no data available
Hi,
I am using SSRS 2008, I generated one chart in report designer with the data from Analysis Services (Cube).
According to the dataset, there is no data returned when I run the query. so when I preview the chart, there is nothing but "no data available" showing on the chart.
Here I want to know is there any possible to show an empty chart with legend and x and y axis?
If it is possible, can you tell me how can I make it?
Best Regards.
Connie ZhuHi,
When there is no data, the chart displays the message "no data available". But using a little work around, you can display an empty chart.
Please find the below steps given to achieve this
1. Create a new dataset using TSQL to return 1 row of data having the category field and value field set to 0. Add the fields that are necessary for the category fields, series fields and datafields.
A simple example would be like
SELECT 'abc' as Category, 0 as Amount
2. Add a new chart, set the category field to 'Category' and set the data field to Amount from above dataset created in step 1.
3. In the new chart, right click the category axis and select axis properties, Click on the labels tab, check on
'Hide axis labels' and then click ok
4. Now set the Visibility property of both the charts depending on the rows returned from your main dataset
a. click on your main chart and set its Hidden property to :
=iif(CountRows("MainDataSet"),false,true)
b. click on the new blank chart added and set its Hidden proprety to (the opposite) :
=iif(CountRows("MainDataSet"),true,false)
Note : Please change the dataset name in above expression "MainDataset" to the name of your chart's dataset
5. Resize the new chart to the same size as your main chart, then position the new chart on the place as the main chart.
(Note : You can set the position of new chart to be same by copying the location property from the main chart)
6. Now run and observe the result. When there are no rows returned by your main dataset, the new chart (the blank chart) should be displayed.
I've added a working sample of this kind of a report
here.
Hope this helps. Please feel free to discuss if you have any questions.
Please click "Mark as Answer" if this resolves your problem or "Vote as Helpful" if you find it helpful.
BH -
Ssrs 2008 r2 display of url value
In an existing SSRS 2008 R2 application, the users will be clicking on url links to access help documents that are in a PDF
format. When the user hovers over the tab in the browser, the actual web url is listed. My company thinks this can be a secruity
problem.
Thus my question in an SSRS 2008 R2 report, is there a way to hide the real link of where the PDF document is located at? Basically is there a way to hide the real url and/or just display a url that does not really exist? If so, can you show me code on how
to accomplish this goal?Hi Wendy,
Based on my test, if we are use below expression, it will not list the URL.
="javascript:void(window.open('http://test1.op.org/ReportServer/Pages/Resource.aspx?%2fboards%2fImages%2fHS.pdf'))"
I found a work around for your previous case, please refer to the expression below:
="javascript:void(window.open('” & Globals!ReportServerUrl & “/Pages/Resource.aspx?%2fboards%2fImages%2fHS.pdf'))"
If you have any questions, please feel free to let me know.
Regards,
Alisa Tang
If you have any feedback on our support, please click
here.
Alisa Tang
TechNet Community Support -
SSRS 2008 Report with two tablix have extra blank pages
I am working on a report in SSRS 2008 that has two tables (or tablices?). My report is set to a width of 11 and height of 8.5, left and right margins of 0.25, top and bottom margins of 0.5. Paper size is Letter, Orientation is landscape.
With margins accounted for, I basically have 10.5 of workspace for the Body. The first tablix's width is way under 10.5 but the second tablix has lots of columns and would have to span two pages so the Body goes past 10.5 but I
kept it under 22 (twice one page). I put a PageBreak after the first tablix. When I run the report and do a Print Layout, the first tablix prints with a blank page after every printed page of that table. The second tablix prints just fine, no extra
blank pages in between. So I suspect that it is the "empty space" to the right of the first tablix, which is caused by the second tablix's width, that is the problem.
However when I tried to switch the tables in my report and have the wider tablix print first and the narrower tablix print after it, I did not get any extra blank pages on both; the reports prints just fine.
Unfortunately, I cannot have the wider tablix print first with the report I need. I would like to know if this is a bug in SSRS 2008? It appears that there is something with the order report objects are printed and their size. Has anyone figured this out
yet? Thanks.I found
this post on the MSDN forum that offers the following solutions that worked for a few people responding to that thread. You might want to try one of these:
"I found the problem cause. In Reporting Services, report body width must be <= (report width - report margins width).I reduced the margins to zero width, and the pagination problem disappeared!"
"I have solved my problem. With SSRS you must be very careful with the way you place objects
Growing objects will push those on their right, even if they are not on the same line /!\
Consider a textbox 2 inches large centered, and a growing matrix beneath it. on the left, 1 inch large. At run time the matrix will grow and the title will be pushed aside. And this may cause blank pages.
A workaround is to create 1 rectangle per object. The rectangle should occupy all the body space available while objects occupy only a part of their embedding rectangle."
Carla
Carla Sabotta -
Using combination of insert into and select to create a new record in the table
Hello:
I'm trying to write a stored procedure that receives a record locator parameter
and then uses this parameter to locate the record and then copy this record
into the table with a few columns changed.
I'll use a sample to clarify my question a bit further
-- Create New Amendment
function create_amendment(p_mipr_number in mipr.mipr_number%TYPE, p_new_amendment_number in mipr.amendment_number%TYPE)
return integer is
new_mipr_id integer;
begin
THIS is causing me grief See comments after this block of code
insert into mipr
(select mipr_id from mipr where mipr_number=p_mipr_number),
(select fsc from mipr where mipr_number=p_mipr_number),
45,
(select price from mipr where mipr_number=p_mipr_number),
practical,
(select part_number from mipr where mipr_number=p_mipr_number);
THe above will work if I say the following
insert into mipr
(select * from mipr where mipr_number=p_mipr_number);
BUt, Of course this isn't what I want to do... I want to duplicate a record and change about 3 or 4 fields .
How do I use a combination of more than one select and hard coded values to insert a new record into the table.
/** Ignore below this is fine... I just put a snippet of a function in here ** The above insert statement is what I need help with
select (mipr_id) into new_mipr_id from mipr where mipr_number=p_mipr_number + amendment_number=(select max(amendment_number) + 1);
return new_mipr_id;
end;
THANK YOU IN ADVANCE!
KTfunction create_amendment(p_mipr_number in mipr.mipr_number%TYPE)
return integer is
new_mipr_id integer;
tmp_number number;
tmp_mipr_id integer;
begin
tmp_number :=(select max(amendment_number) from mipr where mipr_number=p_mipr_number);
Question:
tmp_number :=1; works..
tmp_number doesn't work with the select statement?
Obviously I'm a novice! I can't find anything in my book regarding tmp variables... What should I look under is tmp_number a
variable or what? In my Oracle book, variable means something different.
Thanks!
KT
I have the following code in my stored procedure:
Good luck,
Eric Kamradt -
SSRS 2008 R2 Column Graph, Scalar Axis, Columns Take more than 1 Category
In SSRS 2008 R2, I have created a stacked column graph with two data columns, using a scalar axis with dates. If I have two columns next to one another, everything is rendered fine. If all of my columns have space between them, then the columns
will take more than just the day that they fit.
Here is a pastebin
with a simplified report that exhibits the issue.
When I render the chart, this is what it looks like.
Whereas, I would expect something like this.Hi clcrutch,
After testing the issue in my own environment, I can reproduce it. Just as you said, if there are two columns next to each other, then all the columns will be displayed on their own location; if all the columns in the chart exist space between each other, then
they will expand as wide as possible until there is no place to display all columns. This is by design.
Besides, if in the second scenario, we can manually add one record in the dataset, and then hide the additional record in the chart to work around this issue. For more details, please see:
Add one new record with adjacent date of MyDate field and unique value of MyStackedValue field in the dataset as below:
INSERT INTO #Temp (ID, MyDate, MyStackedValue)
VALUES (100, '11/24/2013', 1000)
Right-click the series to open the Series Properties dialog box, select Visibility in the left pane.
Using the expression below to control the series Visibility:
=iif(Fields!MyStackedValue.Value="1000",true,false)
If you have any other questions, please feel free to ask.
Regards,
Katherine Xiong
Katherine Xiong
TechNet Community Support -
A new problem with CS5 forced me to download PScc but the problem is still there. I am getting tmp00000001 in photo merge when importing multiple files from inside PS and if trying from bridge I am getting a pop up box telling me I need to select more than 1 file. Photoshop potomerge is not recognizing my selections from bridge..!! please help.. my knowledge of computers is a 3 on a scale of 1-10
if i run this particular code
( SELECT
AccountDetails.CUSTOMERNUMBER, AccountDetails.ACCOUNTNUMBER, CUSTOMERDETAILS.CDTITLE, CUSTOMERDETAILS.CDFIRSTNAME, CUSTOMERDETAILS.CDLASTNAME, AccountDetails.ACCOUNTTYPE,
AccountDetails.ORIGINALCONTRACTENDDATE, AccountDetails.CONTRACTTERM, AccountDetails.CONTRACTENDDATE, AccountDetails.BRANCHAREA, AccountDetails.PRODUCTTYPE,
AccountDetails.HOUSEBANKACCOUNT, AccountDetails.CARMODEL, AccountDetails.CARLICENCE, AccountDetails.ARREARSBALANCE, AccountDetails.CODEBTOR, AccountDetails.GUARANTORNUMBER
FROM AccountDetails
JOIN CUSTOMERDETAILS ON AccountDetails.CUSTOMERNUMBER = CUSTOMERDETAILS.CUSTOMERS1
WHERE EXISTS
( SELECT *
FROM Dcaaccountallocation
JOIN DebtEpisodes ON DebtEpisodes.ACCOUNTID = Dcaaccountallocation.ACCOUNTID
WHERE Dcaaccountallocation.dcaid = 41
AND Dcaaccountallocation.status = 2
AND DebtEpisodes.DCASentDate IS NULL
AND Dcaaccountallocation.ACCOUNTID = AccountDetails.ACCOUNTNUMBER
AND DebtEpisodes.DCAORLAWYER = 'DCA'
This returns 1 row of data
However if i run a small part of the above code...
SELECT *
FROM Dcaaccountallocation
JOIN DebtEpisodes ON DebtEpisodes.ACCOUNTID = Dcaaccountallocation.ACCOUNTID
WHERE Dcaaccountallocation.dcaid = 41
AND Dcaaccountallocation.status = 2
It returns a lot of rows with a status of 2
Now i presume what I am going to do is to ensure that all the fields provide satisfactory requirements, with regards to the above code. Although I have many records in all the stated tables already.
:( -
Cannot select more than one email address at a time from Contacts. Before I upgraded to Yosemite, I could view all mail addresses in "All Contacts" and select multiple or single email addresses by "command and tap" for mail. Now I have to open each card and select one address at a time. I don't want to create groups just want to select the addresses I need at the time.
i dont pay for hosting at all.. i just pay every two years to keep my domain name and with that i get free email forwarding and web forwarding... so i can create email addresses but need to forward them to somewhere else...
i forward them to one of the POP3 email addresses i was given by my ISP...
in entourage i set up two email accounts on the one identity so i can send email from the ISPs email or from my domain name email... now if someone sends me an email to my domain name email i get it twice... it only does this on my new mac though, it didnt do it on my old one...
if i stop forwarding my emails then where will they go? i dont think ill get them, will i?
very confused!
Message was edited by: wob
Maybe you are looking for
-
TEXT_IO.PUT_LINE resulting in partial file at a consistant size of 40KB
Overview: In client server mode the report opens a file on the desktop, writes a tab delimited text line for a specific repeating frame and then closes the file. However, the resulting file is incomplete but the previewer displays the compete report
-
Direct Monitoring with PatchmixDSP in Cubase VST 5.1.1
Hello! My Computer equipment: Microsoft Windows XP Professional version 2002 with service pack 2 Pentium(R)CPU 3.2GHZ 1Gig of RAM Audio Equipment: E-MU 1820m Cubase VST 5.1.1 Korg Triton LE Boss Dr. Rhythm 770 I'm trying to use direct monitoring with
-
please can any body help me in my project how to send query to search engine and get the answer back?
-
How to retreve old files (like pictures and music) from redoing a hp pavilion dv5
i just redid a friends hp pavilion dv5 laptop and i forgot to save her pictures and music before i redid it back to factory settings and now she wants me to find out if the is any way that i can retreve them some how or if there is any way to retreve
-
Hi I have a WCS that has been upgraded to Version 7.0.164.0 and a Location Appliance that is running 6.0.102.0 The RFID tracking is no longer working. I can't see that WCS 7.0.164.0 supports the 6.0.102.0 on the Location Appliance and think I need to