Make an object into invisible in report builder
Hi,
I want to make invisible an object in report builder and i tried following things.
I made visibility mode to :NO and
Print object On:All pages and default
In these levels i tried but am able to find object in report output.
Can any one please suggest an solution for this
Thnaks,
Ayrus
You posted it in wrong forum.You shoud have posted it in Oracle reports.If you simply set Visible property to No it should work..Strange if tht does not work.
Similar Messages
-
Concate column into char in report builder
Helllo!
I am working on a report in report builder 6.0.8.27.0 connected to a 10g database.
In my report i summarize a workers pick performance over a specified period of time on each new row (things like picks, active pick time). Most of the data is summarized using the in-built sum-function in report builder. But i have also a column in my table where i want to concate/aggregate the work zones(physical locations) that a worker has been in over a day.
A simplified example of how my input query table can look like:
user | picks | inlogged_time | work_zone
mav | 100 | 10 | AREA1
mav | 200 | 30 | AREA2
ant | 100 | 10 | AREA3
max | 100 | 10 | AREA3
This should generate a report that has this structure:
user | picks | inlogged_time | work_zone
mav | 300 | 30 | AREA1, AREA2
ant | 100 | 10 | AREA3
max | 100 | 10 | AREA3
My problem is i dont know how to concate the work_zones togheter. I tried using the PL/SQL editor for a function (using vm_concate()), but i could not get it to work and i can't use a new Select statement in my PL/SQL editor because the tables are to large for doing a new query on each row.
Grateful for any help!
Regards,
Martin
Edited by: 1009483 on 2013-jun-03 08:13Hi,
A small modification to the above query ....
with data as ( select 'mav' username, 100 picks, 10 inlogged_time, 'AREA1' work_zone from dual union all
select 'mav' username, 200 picks, 30 inlogged_time,'AREA2' work_zone from dual union all
select 'ant' username, 100 picks, 10 inlogged_time, 'AREA3' work_zone from dual union all
select 'max' username, 100 picks, 10 inlogged_time, 'AREA3' work_zone from dual )
select username, sum(picks) picks , sum(inlogged_time) inlogged_time , wm_concat(work_zone) work_zone
from data
group by usernameOutput:
USERNAME,PICKS,INLOGGED_TIME,WORK_ZONE
'max','100','10','AREA3'
'mav','300','40','AREA1,AREA2'
'ant','100','10','AREA3'Regards,
Archana -
Dynamic Query in Report Builder
HI
I have a doubt:
I need to receive a parameter in my report and I need this parameter in the query, that means, I need to create a dynamic query depending on the value that I receive in one of the parameters that has my report.
I tried to use the resource of Searching by Reference Cursor tool, it is a blue circle in the Data Model View of Report Builder.
When I click this tool, I have an initial code, It is:
function QR_1RefCurDS return <RefCurType> is
begin
end;
In PL/SQL I tried to create to test and to play, this code:
Note: If you want to try only to test, it is simple and works:
create or replace package TEST_REFCURTYPE as
type refcurtype is ref cursor;
function TEST_REFCURTYPE (P_DATE_TO nvarchar2) return refcurtype;
end;
create or replace package body TEST_REFCURTYPE as
function TEST_REFCURTYPE (P_DATE_TO nvarchar2)
return refcurtype is
refcur refcurtype;
mysql varchar(1000);
begin
If P_DATE_TO is not null then
mysql := 'select '''|| P_DATE_TO ||''' from dual';
else
mysql := 'select sysdate from dual';
end if;
open refcur for mysql;
return refcur;
end;
end;
The problem is to pass this example of code to the function QR_1RefCurDS, I do not have a place to make reference to the type:
type refcurtype is ref cursor;
I tested the Unit Program in the Report Builder but it did not work, because all the code I try to write and create, for example in the Event BEFORE REPORT, it opens Funcion( ) …., and I can not make reference to the type refcurtype inside a Function( ).
Would you help me please?
Or there is another way to make a dynamic query in the Report Builder?
Sorry for my English, I am a Brazilian living in Spain.Hi,
you can use lexical parameters in your queries. Instead of a ":" use in the query before the parameter a "&". Then the parameter stands for a part of the query and not for a value (Bind parameter). In the before report trigger you can set this parameters. They can contain parts of SQL like order or where. Make sure that the default value for this lexical parameters are set to get a valid query.
SELECT ENAME, &p_column as COL2 FROM EMP &p_order
and in the trigger something like
IF :p_which_column = 1 THEN
:p_column := 'SAL'
ELSE
Saludos
Rainer -
Report Builder 3.0 Expression i am not able to make it work on Oracle DB Table
Hi,
I am newbie to SSRS Report Builder 3.0 so please be patient with me. I am trying to create a report to query Remedy Ticketing System and it uses Oracle Database installed on a Unix OS...My end objective is to do some calculation on the ticket metrics (i.e.
percentage of tickets closed within SLA, etc) however i am stuck from the very beginning where i am not able to make my expression work...
To begin with. my query statement...
Select Distinct TICKET_NUMBER, Assigned_Group, Category, REGION, TICKET_STATUS,EXCEEDED_SLA, TO_CHAR(date '1970-01-01' + (TICKET_CREATION_DATE/60/60/24), 'DD/MON/YYYY HH:MI:SS AM')TICKET_CREATION_DATE
from ARADMIN.Request
where (Assigned_Group like 'HOTS' OR Assigned_Group like 'PAID' OR Category like 'HVD%') and TICKET_CREATION_DATE > (TO_DATE('31/DEC/2014 11:59:59 PM','DD/MON/YYYY HH:MI:SS PM', 'NLS_DATE_LANGUAGE=AMERICAN') - DATE '1970-01-01')*60*60*24
order by ticket_creation_date
the data type of the oracle table:
Here is the Query Result of the DataSet:
Basically Ticket_Status has values from 0 to 4 although from the screenshot above you only see 2 and 4...
Ticket_Status 0 - Means Open Ticket
Ticket_Status 1 - Means Work In Progress Ticket
Ticket_Status 2 - Means Pending Ticket
Ticket_Status 3 - Means Awaiting Closure Ticket
Ticket_Status 4 - Means Closed Ticket
I created a chart column using the expression below but it did not work...what i mean by it does not work is that the chart column output shows all Ticket_Status total count including 0, 1, 2, 3, & 4 (i.e. total count of tickets are 206)...using
the expression i was only expecting the total count for Ticket_Status 4 (i.e. 180 tickets) but i guess i am doing something wrong with the expression syntax...
=Count(Fields!TICKET_STATUS.Value=4)
i also used the expression below but it did not work...
=Count(Fields!TICKET_STATUS.Value="4")
i converted the Ticket_Status to CHAR on the dataset using the TO_CHAR(Ticket_Status) AS Ticket_Status then i tried the expression below but did not work...
=Count(Fields!TICKET_STATUS.Value="4")
i tried again the expression below but did not work'
=Count(Fields!TICKET_STATUS.Value=4)
i cannot proceed to the arithmetic calculation if i cannot filter my dataset with the correct value...again i am a newbie with SSRS & report builder and i would appreciate it very much if you can guide/help me :-)Hi Danny,
Per my understanding that you can't get the expect result by using the expression "=Count(Fields!TICKET_STATUS.Value=4) " to count the the TICKET_STATUS which value is 4, the result will returns the count of all the TICKET_STATUS values(206)
but not 180, right?
I have tested on my local environment and can reproduce the issue, the issue caused by you are using the count() function in the incorrect way, please modify the expression as below and have a test:
=COUNT(IIF(Fields!TICKET_STATUS.Value=4 ,1,Nothing))
or
=SUM(IIF(Fields!TICKET_STATUS=4,1,0))
If you still have any problem, please feel free to ask.
Regards,
Vicky Liu
Vicky Liu
TechNet Community Support -
How to add a new font into Report Builder and Oracle Forms/Reports Server?
Hi,
I've searched the forum and can't find this being discussed.
My developers run Report Builder 10.1.2.0.2 on their XP laptops.
Their reports run (in production) on Oracle Forms/Reports Server 10.1.2.0.2.
This server runs on MS Windows 2003, SP2.
They've got a client who wants reports using the "Garamond Western" font.
So....how do I get this font onto the developer's Report Builder laptops, and onto the Oracle Forms/Reports Server?
I've moved various 'Garamond' fonts into C:\WINDOWS\FONTS on both the laptops and the server, but neither seem to recognize it.
Thanks for your help.Thanks.
This answers 1/2 of my question.
The developer can now use Report Builder on his laptop, with the new fonts.
But when he moves this new Report to the Oracle Application Server/Forms-Reports Server, it fails to use the new fonts.
The Oracle App Server/Forms-Report Server is Version 10.1.2.0.2. It runs on MS Windows 2003, SP2.
I have installed the exact same fonts on this server, into C:\WINDOWS\Fonts.
I have used REGEDIT to change REPORTS_PATH....and placed C:\WINDOWS\Fonts; as the first value in this field.
I have then stopped and restarted the Forms-Reports Server. -
Help required in embedding flash file object into Crystal Report file.
Hello,
I use the default version of Crystal Report (i.e.'Crystal Report Basic For Visual Studio 2008 - version 10.5' ) which is the part of 'Visual Studio 2008', to create and display the Report. Further, as a requirement, I have to show 'Event Video' into the Report. But, as this default version of Crystal Report does not support Flash File, I uninstalled it and downloaded and installed the 30 days trial version of the Crystal Report (i.e. Crystal Report 2008 - version 12.0).
Then, I created a new Crystal Report File using 'Crystal Report 2008 Designer', embedded the video as a Flash File(i.e. SWF file) into it. Now, when I add this newly created Crystal Report File into my sample application, which is created using VS 2008, it does not shows the embedded video.
So, can anybody please tell me, how can I embed the Flash File into Crystal Report, so that it will be visible in the sample application?
I would like to appreciate your help and support.
Thanks,
-Yogesh.Symptom :
When embedding a pdf document into a Crystal Report, only the one page shows.
Reproducing the Issue
Environment:
Crystal Reports OLE object
Cause
An OLE object only displays the first page.
Resolution
Embed multiple objects, one for each page
Or
Use a hyperlink to the object instead
Hope this helps!
Regards,
Vinay -
Using Report Builder to make Letters
I am trying to use report builder to create templates for
letters and other multi-page documents, the query automatically
inserts data from a database (the price of something for example).
Whenever I try to fit the document in report builder it says
something like "Report compilation error. Report design not valid :
1. The title section, the page and column headers and footers and
the margins do not fit the page height. " Is there any way to get
this text to automaticaly go to the next page instead of just
giving me an error? A better way to do this would also be great (I
have templates in .rtf format with bookmarks where query objects
go)Hi Rajan,
Reporting Services provides two report authoring tools: Report Builder and Report Designer in BIDS/SSDT. Whether you can design an Ad-hoc report based on Web Service data source depends on the version of the Report Builder. In Report Builder 1.0, we can
only use report model to design a report. In Report Builder 2.0 or higher, we can use the built-in XML data source type that can retrieve data from Web service to design a report.
The Report Builder 1.0 is available in SSRS 2005. For SSRS 2008, we can upgrade the Report Builder to Report Builder 2.0 by installing the SQL Server 2008 PCU1. For SSRS 2008 R2 or SSRS 2012, the Report Builder 3.0 is included natively.
References:
Creating Report Datasets from XML Data (Report Builder 2.0)
Reporting Services: Using XML and Web Service Data Sources
Note: The second link is for Report Designer in SSRS 2005 and also applies to Report Builder 2.0 or higher.
Regards,
Mike Yin
TechNet Community Support -
Adding objects into query Panel and no display report
Hi Folks,
I had an issue with WEBI .
Iam running the report with few objects at first time , all objects are displayed in the table format of report.
I saved and closed the report .
Later i opened the report and edited the report by adding new objects into query panel and runing it.
but this time i did not find the new objects in display table in report as like DeskI.
If we find the solution for this , it will be great help to me.
Thanks
MaheshThe objects will be in the data tab. Objects are not automatically added to your report in Webi, they are made available in the data panel, and you can choose which objects to add.
-
Implement Java Class into Report Builder
Hi, I have problems implementing own java classes into the Report Builder. OK, let say I am running a simple report using STUDENT_ID and STUDENT_NAME. What I wanted to do is to concatenate a string "XXXX" to one of the records in STUDENT_NAME (e.g. STUDENT_NAME = 'Mary').
The Java class that I wrote has a static method:
public class MyAppend
public static String myMethod(String s)
s = s +"XXXX";
return s;
I also wrote a Formula Column in Report Builder called "TestFormula":
function TestFormula return varChar2 is
StuName varchar2(40);
myStr varchar2(40);
begin
select STUMST.STU_NAME
into StuName
from STUMST
where STUMST.STU_NAME= 'Mary';
->myStr := myappend.myMethod(myPackage.aobj, StuName);
return myStr;
end;
The error message I get when I compile this Formula Column PL/SQL is (with '->' pointing to the line):
Wrong number or types of arguments in call to 'MYMETHOD'
How do I correct this error?
Thank you.
JoeyThanks Navneet. Actually I am new to PL/SQL programming. I have another problem here. I would like to list all the records of the STUDENT_NAME. How would I go about it using PL/SQL? This is the Formula Column I have written but it only shows me 1 record:
function TestFormula return varChar2 is
StuName varchar2(40);
cursor c1 is
select all stumst.stu_name
from stumst;
begin
LOOP
open c1;
fetch c1 into stuName;
stuName := myappend.myMethod(stuname);
return stuName;
EXIT WHEN c1%NOTFOUND;
end loop;
end;
By the way, can you please give me any useful sites for reference to the PL/SQL?
Thank you.
Joey -
Doubt , how to display ole objects in report builder
Please tell me, how to display ole objects in report builder.
I mean i wanted to print ole object in report, so how to do that.Just to clarify Lixia's response.
In Reports 9i we have deprecated our OLE functionality. Reports created in prior versions that contain OLE objects should still run, but you will not be able to create new reports containing OLE objects. -
Help! Print OLE object from report builder.
Dear OTN Members,
I would like to know how to print out a OLE object from
report builder, because currently I face problem to print out
the whole contain of the winword document file, because when I
display the OLE on the form it will only display according the
size I declare for it, it seems that it will not automatic
extend the size itself. i.e. if I drag the size to one page in
fact the maximum is one page, then when it display, it will only
display maximum one page eventhough the document file maybe
contain 10 page inside it. So when I print out the report it
will only show me one page, so if you have any solution, pls
share with me, thank you.
nullAs far as I know you have to use OLE Item to work with the information. Unfortunately there is not any standart way to extract a source document from OLE. Some applications such as Word, Excel support OLE Automation, so you could use OLE2 package to save the document as a file, that is the easest way. But others don't, so you may have to use an undocumented way to extract a document.
Take a look at the following thread:
Subj: 6i to 9i Ole to LOB translations, How do you know the App. server?
Re: 6i to 9i Ole to LOB translations, How do you know the App. server?
P.S. If you can't extract some types of your documents, please let me khow.
P.P.S. To extract a document through OLE2 package you could use something like the following. /I'm not sure the code is correct/:
DECLARE
handle ole2.obj_type;
BEGIN
ACTIVATE_SERVER('OLE1');
handle := forms_ole.get_interface_pointer('OLE1');
BEGIN
-- Save a document to disk
Args :=OLE2.CREATE_ARGLIST;
OLE2.ADD_ARG(Args, 'C:\test.doc'); -- file name
OLE2.INVOKE(handle, 'SaveAs', Args);
OLE2.DESTROY_ARGLIST(Args);
EXCEPTION WHEN OTHERS THEN
Message('Error');
END;
-- OLE2.RELEASE_OBJ(handle);
END; -
Inserting a two page TIFF file into Report Builder 10.1.2.2.0
Hello all!
I am trying to create a report which uses a pre-printed form. I went to the paper layout view and inserted my TIFF file, however only the first page is used. This is a two page file. How can I use both pages in my report?
Thanks!Can you open any other rdf?
We had quite a few crashes with the Report Builder on Windows 7, especially when using graphs in rdfs. Setting the compatibility of the shortcut to "Windows Vista" solved most of our problems.
Regards
Markus -
Converting a Crystal Report with Many Sub-Reports into CF Report Builder
I am trying to rewrite a Crystal Reports report which has 11
subreports in CF Report Builder. In the CR report, each subreport
has it's own report footer seciton. I have not been able to find
anything in CF Report Builder that allows me to do the same. Is CF
Report Builder capable of producing a report with multiple
subreports?Having successfully created a report with 5 or 6 subreports
(with each sub-report containing a multiple sub-sub reports) I can
say with confidence, "Yes you can." However the real question you
should ask is, "
Should I create a report with multiple sub-reports in CF
ReportBuilder?" And the answer to that is.... NO, WHAT ARE YOU
CRAZY!
If you have something that works in Crystal Reports I would
suggest you stick with that. Otherwise you're setting yourself up
for a lot of headaches. Now maybe it was because I started using
the report builder that came with MX7, but it seems there are still
quite of few bugs that will leave you shaking your fist at your
computer. If however you do continue and do the CF Report Builder
route, be prepared for your application to crash unexpectedly, and
for many things to not work they way you expect them to. And if you
ever need help good luck. Take the fact that you had difficulty
finding good documentation as a sign of how little Adobe supports
this product.
CF Report Builder is fine for very simple reports, but don't
get fancy with it, you'll only regret your decision in the
end. -
Report Builder 2.0 loses parameter Null default value when deployed
When a parameter is set to a default value of (Null) and the report is saved to the sever, the default is lost when the report is re-opened in RB2. This problem doesn't seem to occur in BIDS. I've tried to use an expression to set the value to System.DBNull but this can no longer be done.
Any ideas for a work-around?
Is there a bug report open for this? I couldn't find an open bug on the Connections site and there's an issue on that site right now when submitting feedback.Paul Turley [Hitachi Consulting]
SQLServerBIBlog.comHi All,
I just had an almost identical issue using report builder 3.0 so I don't believe it is fixed. I had 4 parameters set to default to (Null) and I added a new one with identical settings but it would continually come up blank and not check the null box automatically
when going into my sub report.
To make matters worse I experimented changing one of the old parameters and it then started exhibiting the same behaviour. Using Luke's post above solved the issue (though it was Manage in my version not Administrate).
Using System.DBNull.Value resulted in it being treated as a literal string "System.DBNull.Value" and putting that in the filter for me.
Hope it helps. -
I select the shared datasource from the data source propeties dialog, test the connection and everything is good.
I add a dataset by selecting "use a dataset embedded in my report" option within the Dataset properties dialog.
I select the newly added data source, click the "Stored procedure" query type and drop down the list box and select my intended stored procedure.
the timeout for the dataset is "0" seconds.
I click the "OK" button and I'm presented with the parameters to the stored procedure.
I enter valid data for the parameters and click the "OK" button.
I then get the following error message after 30 seconds:
The problem is, all of the timeouts, that I'm aware of, have values of zero (no timeout) or high enough values that 30 seconds isn't even close to the timeout.
I think the smallest timeout we have is 120 seconds.
I have searched this site and many others and the solutions all involve altering the stored procedure to get the fields into report builder and then revert the stored procedure back to its original form.
To me, this is NOT a solution.
I have too many stored procedures that need to be brought into Report Builder.
I need a real solution.
Thank you for you time, Tim Caldwell.
Timothy E CaldwellI don't mean to be rude, but really, check to see if the stored procedure can return data rows???
Maybe I'm not being clear enough.
The stored procedure runs perfectly fine.
it runs perfectly fine in the production environment and the test environment.
I can access the stored procedure in several ways and have it return correct data.
I can even trick report builder into creating a dataset with parameters and run the stored procedure that way.
What I cannot do, is to get report builder to not timeout after 30 seconds on the initial creation of a dataset with a Query type of stored procedure.
I have seen this issues posted again and again and again on may different sites and the "solution" is to simplifiy the stored procedure by creating a stored procedure that has a create table and a select in the stored procedure and that's it. After
report builder creates the dataset the developer then has to replace the simplified stored procedure with the actual stored procedure and everything works fine after that.
HOWEVER, having to go through this process for 70 or more stored procedures is ridiculous.
It would appear that there is something within report builder itself that is causing this issue.
The SQL Script included is an example of a stored procedure that will not create fields create a dataset with fields and parameters in Report Builder 3.0:
USE [CRUM_IT]
GO
/****** Object: StoredProcedure [dbo].[COGNOS_Level5ScriptSP] Script Date: 11/17/2014 08:02:26 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
ALTER procedure [dbo].[COGNOS_Level5ScriptSP]
@CompanyCode varchar(8) = null,
@GetSiblings varchar(1) = 'N'
as
Begin
-- get emergency contact info
select *
into #tmp_Contacts
from
(select
ConEEID,
con.connamelast as [Emer Contact Last Name],
con.connamefirst as [Emer Contact First Name],
con.connamemiddle as [Emer Contact Middle Initial/Name]--,
,ROW_NUMBER() over (Partition by ConEEID order by ConNameLast)as rn
,ISNULL(
case when con.conphonepreferred = 'H'
then '(' + substring(con.conphonehomenumber, 1, 3) + ')' + substring(con.conphonehomenumber, 4, 3) + '-' + substring(con.conphonehomenumber, 7, 4)
else '(' + substring(con.conphoneothernumber , 1, 3) + ')' + substring(con.conphoneothernumber , 4, 3) + '-' + substring(con.conphoneothernumber , 7, 4)
end,
) as [Emergency Phone]
from [ultiprosqlprod1].[ultipro_crum].dbo.Contacts con
where con.ConIsEmergencyContact='y'
and con.ConIsActive='y'
) A
where A.rn = 1
CREATE TABLE #tmp_CompanyCodes (CompanyCode varchar(8))
If @GetSiblings = 'Y'
Begin
INSERT INTO #tmp_CompanyCodes (CompanyCode)
EXEC [z_GetClientNumbers_For_ParentOrg_By_ClientNumber] @CompanyCode
End
INSERT INTO #tmp_CompanyCodes
values (@CompanyCode)
select *
into #tmp_Company
from [ultiprosqlprod1].[ultipro_crum].dbo.Company
where cmpcompanycode in (select CompanyCode from #tmp_CompanyCodes)
select distinct
cmpcompanycode as [Client ID],
CmpCompanyDBAName as [Client Name],
eec.eecEmplStatus AS [Employment Status],
eec.eecEmpNo AS [Employee Num],
rtrim(eep.eepNameLast) AS [Last Name],
rtrim(eep.eepNameFirst) AS [First Name],
isnull(rtrim(ltrim(eep.eepNameMiddle)), '') AS [Middle Initial/Name],
rtrim(eep.eepAddressLine1) AS [Address Line 1],
isnull(rtrim(eep.eepAddressLine2), '') AS [Address Line 2],
eep.eepAddressCity AS [City],
eep.eepAddressState AS [State],
CASE
WHEN len(eep.eepAddressZipCode) > 5 and charindex(eep.eepAddressZipCode, '-', 1) = 0
THEN substring(eep.eepAddressZipCode, 1, 5)
ELSE rtrim(eep.eepAddressZipCode)
END AS [Zip code],
CASE
WHEN len(eep.eepAddressZipCode) > 5 and charindex(eep.eepAddressZipCode, '-', 1) = 0
THEN substring(eep.eepAddressZipCode, 6, 4)
WHEN len(eep.eepAddressZipCode) > 5 and charindex(eep.eepAddressZipCode, '-', 1) > 0
THEN substring(eep.eepAddressZipCode, charindex(eep.eepAddressZipCode, '-', 1) + 1, 4)
WHEN len(eep.eepAddressZipCode) <= 5
THEN ''
END AS [ZIP + 4],
substring(eep.eepSSN, 1, 3) + '-' + substring(eep.eepSSN, 4, 2) + '-' + substring(eep.eepSSN, 6, 4) AS [SSN],
isnull(convert(VARCHAR(10), eep.eepDateOfBirth, 101), '') AS [Date Of Birth],
eetFED.TAXCODE AS [FED Tax Code],
eetFED.FILINGSTATUS AS [Fed Filing Status],
eetFED.EXEMPTIONS AS [Fed Exemption Allowance],
eetFED.ADDITIONAL AS [Additional Fed Withholding],
eetSIT.TAXCODE AS [SIT Tax Code],
eetSIT.FILINGSTATUS AS [State Filing Status],
eetSIT.EXEMPTIONS AS [State Exemption Allowance],
eetSIT.ADDITIONAL AS [Additional State Withholding],
isnull('(' + substring(eep.eepPhoneHomeNumber, 1, 3) + ')' + substring(eep.eepPhoneHomeNumber, 4, 3) + '-' + substring(eep.eepPhoneHomeNumber, 7, 4), '') AS [Home Phone],
isnull((SELECT cod.codDesc
FROM [ultiprosqlprod1].[ultipro_crum].dbo.Codes cod WITH (NOLOCK)
WHERE cod.codCode = eep.eepEthnicID
AND cod.codDosTable = 'ETHNICCODE'), '') AS [Race-Origin], --eep.eepEthnicID AS [Race-Origin],
eep.eepGender AS [Gender],
isnull(convert(VARCHAR(10), eec.eecDateOfOriginalHire, 101), '') AS [Original Hire Date],
isnull(convert(VARCHAR(10), eec.eecDateOfSeniority, 101), '') AS [Seniority Date],
isnull(convert(VARCHAR(10), eec.eecDateOfTermination, 101), '') AS [Termination Date],
isnull(eecTermType,'') as [Termination Type],
isnull(TchDesc, '') as [Termination Reason],
rtrim(eec.eecJobCode) AS [WC Code],
isnull(eec.eecJobTitle, '') AS [Job Title],
pgr.pgrPayFrequency AS [Pay Frequency],
eec.eecFullTimeOrPartTime AS [Full/Part Time],
eec.eecSalaryOrHourly AS [Pay Type],
isnull(convert(MONEY, eec.eecHourlyPayRate), 0.00) AS [Hourly Rate],
isnull(eec.eecAnnSalary, 0.00) AS [Annual Salary],
[YTD Hours],
isnull(eep.eepNameFormer, '') AS [Maiden Name],
eec.eecLocation AS [Location ID],
rtrim(eec.eecOrgLvl1) AS [Department ID],
eec.eecorglvl2 AS [Cost Item],
eec.eecorglvl3 as [Client Project],
eec.eecPayGroup as [Pay Group],
isnull(eepAddressEMail,' ') as [Email Address],
isNull(BankName1,' ') as PrimaryBank,
isNull(BankRoute1,' ') as PrimaryRouteNum,
isNull(Account1,' ') as PrimaryAccount,
isNull(AcctType1,' ') as PrimaryAcctType,
isNull(DepositRule1,' ') as PrimaryDepositRule,
isNull(BankName2,' ') as SecondaryBank,
isNull(BankRoute2,' ') as SecondaryRouteNum,
isNull(Account2,' ') as SecondaryAccount,
isNull(AcctType2,' ') as SecondaryAcctType,
isNull(DepositRule2,' ') as SecondaryDepositRule,
isNull(
CASE
WHEN DepositRule2 = 'D'
THEN '$' + convert(varchar, cast(EddAmtOrPct2 AS decimal(10,2)))
WHEN DepositRule2 = 'P'
THEN convert(varchar, cast((EddAmtOrPct2*100) AS decimal(10,0))) + '%'
ELSE null
END,' ') as SecondaryDepositAmount,
isNull(BankName3,' ') as ThirdBank,
isNull(BankRoute3,' ') as ThirdRouteNum,
isNull(Account3,' ') as ThirdAccount,
isNull(AcctType3,' ') as ThirdAcctType,
isNull(DepositRule3,' ') as ThirdDepositRule,
isNull(
CASE
WHEN DepositRule3 = 'D'
THEN '$' + convert(varchar, cast(EddAmtOrPct3 AS decimal(10,2)))
WHEN DepositRule3 = 'P'
THEN convert(varchar, cast((EddAmtOrPct3*100) AS decimal(10,0))) + '%'
ELSE null
END,' ') as ThirdDepositAmount,
Supervisor,
eec.eecEEID AS [Employee EEID],
eec.EecJobCode As [Job Code],
isnull(eec.EecTimeclockID,' ') As [Time Clock ID],
con.[Emer Contact Last Name],
con.[Emer Contact First Name],
con.[Emer Contact Middle Initial/Name],
con.[Emergency Phone]
from [ultiprosqlprod1].[ultipro_crum].dbo.empPers eep WITH (NOLOCK)
inner join [ultiprosqlprod1].[ultipro_crum].dbo.empComp eec WITH (NOLOCK)
ON eep.eepEEID = eec.eecEEID
inner join #tmp_Company cmp WITH (NOLOCK)
ON eec.eecCOID = cmp.cmpCOID
inner join [ultiprosqlprod1].[ultipro_crum].dbo.PayGroup pgr WITH (NOLOCK)
ON eec.eecPayGroup = pgr.pgrPayGroup
left outer join [ultiprosqlprod1].[ultipro_crum].dbo.TrmReasn
on tchCode = eecTermReason
left join (select CAST(sum(isnull(eee.eeeYTDHrs,0.00))AS DECIMAL(18,2)) as [YTD Hours],
eeeEEID,
eeeCOID
from [ultiprosqlprod1].[ultipro_crum].dbo.EmpEarn eee with (NOLOCK)
group by eeeCOID,eeeEEID)eee
on eec.eecEEID = eee.eeeEEID
and eec.eecCOID = eee.eeeCOID
left join (SELECT eetCOID AS COID,
eetEEID AS EEID,
eetTaxCode AS TAXCODE,
eetFilingStatus AS FILINGSTATUS,
eetExemptions AS EXEMPTIONS,
eetExtraTaxDollars AS ADDITIONAL
FROM [ultiprosqlprod1].[ultipro_crum].dbo.empTax WITH (NOLOCK)
WHERE eetTaxCode = 'USFIT'
)eetFED
ON eec.eecCOID = eetFED.COID
and eec.eecEEID = eetFED.EEID
left join (SELECT eetCOID AS COID,
eetEEID AS EEID,
eetTaxCode AS TAXCODE,
eetFilingStatus AS FILINGSTATUS,
eetExemptions AS EXEMPTIONS,
eetExtraTaxDollars AS ADDITIONAL
FROM [ultiprosqlprod1].[ultipro_crum].dbo.empTax WITH (NOLOCK)
WHERE eetTaxCode like '%SIT'
AND eetIsWorkInTaxCode = 'Y'
)eetSIT
ON eec.eecCOID = eetSIT.COID
and eec.eecEEID = eetSIT.EEID
left outer join (SELECT eddCOID,
eddEEID,
eddEEBankName BankName1,
eddEEBankRoute BankRoute1,
eddAcct Account1,
EddAcctType AcctType1,
EddDepositRule DepositRule1,
EddAmtOrPct EddAmtOrPct1
FROM [ultiprosqlprod1].[ultipro_crum].dbo.EmpDirDp WITH (NOLOCK)
WHERE eddSequence = '99')edd
ON eec.eecCOID = edd.eddCOID
and eec.eecEEID = edd.eddEEID
left outer join (SELECT eddCOID,
eddEEID,
eddEEBankName BankName2,
eddEEBankRoute BankRoute2,
eddAcct Account2,
EddAcctType AcctType2,
EddDepositRule DepositRule2,
EddAmtOrPct EddAmtOrPct2
FROM [ultiprosqlprod1].[ultipro_crum].dbo.EmpDirDp WITH (NOLOCK)
WHERE eddSequence = '01')edd2
ON eec.eecCOID = edd2.eddCOID
and eec.eecEEID = edd2.eddEEID
left outer join (SELECT eddCOID,
eddEEID,
eddEEBankName BankName3,
eddEEBankRoute BankRoute3,
eddAcct Account3,
EddAcctType AcctType3,
EddDepositRule DepositRule3,
EddAmtOrPct EddAmtOrPct3
FROM [ultiprosqlprod1].[ultipro_crum].dbo.EmpDirDp WITH (NOLOCK)
WHERE eddSequence = '02')edd3
ON eec.eecCOID = edd3.eddCOID
and eec.eecEEID = edd3.eddEEID
left outer join (SELECT eecCOID,
eecEEID,
rtrim(eepNameLast) + ', ' +
rtrim(eepNameFirst) + ' ' +
isnull(rtrim(ltrim(eepNameMiddle)), '') AS [Supervisor]
FROM [ultiprosqlprod1].[ultipro_crum].dbo.EmpComp WITH (NOLOCK)
join [ultiprosqlprod1].[ultipro_crum].dbo.EmpPers with (NoLock)
on eeceeid = eepeeid)eec2
ON eec.eecSupervisorID = eec2.eecEEID
left outer join #tmp_Contacts con
on eep.eepEEID = con.ConEEID
order by [Client ID],
[Last Name],
[First Name]
drop table #tmp_Contacts
END
Timothy E Caldwell
Maybe you are looking for
-
Need to convert into date format
Hi all, I need to convert '2008-11-26T11:07:38-06:00' [YYYY]-[MM]-[DD]T[HH]:[MM]:[SS][TIMEZONE] in format 'YYYY-MM-DD HH:MM:SS'. Thanks in advance.
-
Movies edited in QT Pro and saved as self-contained revert in iTunes
Hi all. I'm having a consistent bad experience editing QT movies in the QT Pro player. This is the typical workflow (on Mac OS X 10.5.7, lates QT update): 1. Screencast captured in iShowU HD saved as .mov with H264 codec 2. Edited .mov in QT Player (
-
IPad mini retina - native video frame rate
I'm trying to shoot 30fps HD video with my iPad mini (Retina). I was under the impression that the iPad mini's native video format is 30fps. But when I import my footage into iPhoto, it turns out to be only 24fps. So - what's the Mini's correct nativ
-
On making call to Oracle procedures from Java, Value becomes null on oracle
We are using some user defined Oracle data types in my Java/J2EE application and some of them are Oracle collections(ex. VARRAY). We are making a call to Procedures/Functions from Java, there are some parameters of user defined data types declared in
-
hello, OS server 2012, 2008 r2, w7 ult. I want to make backup only files which have archive attribute set. /M switch is what I need but robocopy wont reset archive bit from subfolders and only reset bit on files in root of source folder. How to force