Query for employee attendance

Select Device_Person_id,personal_id,Date1,(
cASE WHEN eXISTS(
sELECT Device_Person_id FROM tempDeviceLogs AT WHERE T.personal_id=AT.Device_Person_id AND T.date1=AT.logDateTime
) then 'P' Else 'A' End )as Emp_Status
FROM
Select Device_Person_id,personal_id,Cast(logDateTime as DATE)AS DATE1 from Emp_setting a,(Select Distinct logDateTime from tempDeviceLogs) b
) T
it causing error like "Invalid column name 'Device_Person_id'."
how inout can be used in this query to get result.
this is my first project don't have much idea so please help me.
dbo.tempDeviceLogs table
columnname datatype allownulls
LogsID int Unchecked
Device_Person_id int Unchecked
Device_id int Unchecked
logDateTime datetime Unchecked
logVerifyMode nchar(10) Unchecked
workCodeID int Unchecked
Machin_install_id int Unchecked
data_loaded_dt datetime Checked
Inout int Checked
dbo.Emp_setting
columnname data type allownulls
Empset_id int Unchecked
personal_id int Unchecked
DesignationID int Checked
DivisionID int Checked
Emp_status char(1) Checked
Emp_TypeId int Checked
Dept_Id int Checked
Group_Id int Checked
NDIVGRP_CODE bigint Checked
dbo.persons_profile
column name datatype allow nulls
pesonal_id int Unchecked
Emp_Code nchar(15) Checked
Title nchar(4) Unchecked
First_name varchar(35) Unchecked
Middle_name varchar(35) Checked
last_name varchar(35) Checked
Father_Husband_Name varchar(35) Unchecked
Dob datetime Unchecked
Age int Unchecked
gender nchar(1) Unchecked
Marital_status nchar(1) Unchecked
Nationality nchar(10) Unchecked
bloodGroup nchar(10) Unchecked
perAddress nchar(100) Unchecked
PerStreet nchar(100) Checked
PerLocation nchar(50) Unchecked
PerCity nchar(20) Checked
PerPincode nchar(6) Checked
CorAddress nchar(50) Checked
CorStreet nchar(50) Checked
CorLocation nchar(50) Checked
CorCity nchar(20) Checked
CorPincode nchar(6) Checked
LandlinePhone nchar(24) Checked
cellNo nchar(24) Checked
EmailId nchar(35) Checked
NosofDependendants int Checked
Dependendants_details ntext Checked
Emergency_FirstName nchar(35) Checked
Emergency_Middle_name nchar(35) Checked
Emergency_Last_name nchar(35) Checked
Emergency_WithRelation nchar(25) Checked
Emergency_PhoneNo nchar(22) Checked
Emergency_CellNo nchar(22) Checked
Emergency_emailId nchar(35) Checked
Office_PF_ac_no nchar(20) Checked
ESI_ac_no nchar(20) Checked
JoinedDate datetime Checked
Photofile nchar(50) Checked
ReportTo varchar(50) Checked
Brief_Notes nchar(150) Checked
dateofTermination varchar(10) Checked
termination_note nchar(50) Checked
Print_Priority int Checked
DeviceEmployeeID nchar(25) Checked
LogsPermitted int Unchecked
Machin_install_id int Checked
Designation nchar(100) Checked
Dept nchar(100) Checked
Section nchar(100) Checked
Groups nchar(100) Checked
EmpWorkingTypeT nchar(100) Checked

Select Device_Person_id,personal_id,Date1,
cASE WHEN eXISTS(
sELECT Device_Person_id FROM tempDeviceLogs AT WHERE T.personal_id=AT.Device_Person_id AND T.date1=AT.logDateTime
) then 'P' Else 'A' End as Emp_Status
FROM
Select Device_Person_id,personal_id,Cast(logDateTime as DATE)AS DATE1 from Emp_setting a,(Select Distinct logDateTime from tempDeviceLogs) bfrom TBL
) TLooks you missed FROM clause in T Subquery
Best Regards,Uri Dimant SQL Server MVP,
http://sqlblog.com/blogs/uri_dimant/
MS SQL optimization: MS SQL Development and Optimization
MS SQL Consulting:
Large scale of database and data cleansing
Remote DBA Services:
Improves MS SQL Database Performance
SQL Server Integration Services:
Business Intelligence

Similar Messages

  • Query for employee information

    Good afternoon.
    I'm having trouble on how to determine the employee department, division, organization as well as the company.
    Any idea guys??
    Thank you,
    Rey

    Hi Vignesh,
    This is my query.. our user gave me this navigation(Global Super HRMS Manager > Work Structures > Organization > Description) for the department, division etc. but couldn't find a relationship between employee record and this navigation.
    SELECT
    hr_general.decode_position_latest_name(assignment.position_id),
    sck.concatenated_segments,
    grp.group_name,
      people.employee_number,
      people.last_name,
      people.first_name,
      people.middle_names,
      hr_general.decode_position_latest_name(assignment.position_id),
      org_struc.d_parent_name,
      sck.concatenated_segments,
      org.NAME,
      locations.location_code LOCATION,
      jobs.NAME JobName,
      hr_general.decode_lookup('EMPLOYEE_CATG', assignment.employee_category),
      sck.segment1,
      people.person_id,
      assignment.organization_id
    FROM per_people_f people ,
      per_all_assignments_f assignment ,
      hr_locations_all_tl locations ,
      per_org_structure_elements_v org_struc,
      per_jobs_tl jobs ,
      per_grades_tl grade,
      per_all_organization_units org,
      HR_SOFT_CODING_KEYFLEX sck,
      PAY_PEOPLE_GROUPS grp
    WHERE people.person_id          = assignment.assignment_id
    AND people.business_group_id    = assignment.business_group_id
    AND assignment.location_id      = locations.location_id
    AND assignment.soft_coding_keyflex_id = sck.soft_coding_keyflex_id
    AND assignment.organization_id          = org.organization_id
    AND sck.segment1 = org_struc.organization_id_child
    AND assignment.job_id           = jobs.job_id
    AND assignment.people_group_id = grp.people_group_id
    AND assignment.grade_id         = grade.grade_id
    AND assignment.assignment_type IN ('E','C')
    AND SYSDATE BETWEEN people.effective_start_date AND people.effective_end_date
    AND SYSDATE BETWEEN assignment.effective_start_date AND assignment.effective_end_date
    AND assignment.business_group_id=people.business_group_id
    ORDER BY people.last_name, people.first_name asc;

  • Querying for employees

    I am attempting to find the number employees in the System using RFC's and cant use BAPI_EMPLOYEE_GETDATA.  Below are a list of RFC's which I believe may help me accomplish this, Is my assumption correct??
    If its is I cannot seem to get the RFC's To work because I dont know the approriate syntax for populating the FUNCAREA field and SELID field.  Can some one provide the syntax and sample of how to populate these RFC's
    HR_CREATE_QUERY_FOR_INFO_GET
    HR_INFO_GET
    HR_INFO_GET_USING_QUERY
    Greatly appreciate Your help,
    SAP Newbie

    Thanks for the sites, but not exactly whats I was looking for. It didnt tell me how to use the bapis.
    Let me explain my issue in further detail, Im using BAPI_EMPLOYEE_GETDATA and it is called through the SAP .Net Connector. When calling this BAPI on system with the number of employees > 50k i get an RFC time out error.  So im tryin to refine the search but first I would like to check know many matches I will get for a specified search string, before performing that search using BAPI_EMPLOYEE_GETDATA.  That is why I am trying to use the bapis listed below, but cant get them to work.
    HR_CREATE_QUERY_FOR_INFO_GET
    HR_INFO_GET
    HR_INFO_GET_USING_QUERY
    What are some sample values for the fields?
    Thanks for Your help in advance,
    SAP newbie

  • Query for Employee Salary Details

    Hi,
    I have requirement like to generate pay slip using XML Reports. I am unable to get Salary details in my query. How I will get the Salary details (All Element Values), what are all the effected tables.
    Thanks
    Madhu..

    You get alternatively use the pay_balance_pkg.get_value(<pAssignmentActionId>,<definedbalanceid>) to get the Net Payments values
    where pAssignmentActionId is Assignment Action id of Payroll Run.
    definedbalanceid is Defined Balance Id of <TOTAL_PAY>ASGPTD
    <TOTAL_PAY> Can be found from Balance screen whose "Use For Remuneration" flag is checked.

  • Employee Attendance log in system

    Hello all,
    1. how to design employee attendance log in system using oracle forms and have to create reports for the same.?
    2. how to create tables for employee attendance log in system ?

    1. how to design employee attendance log in system using oracle forms and have to create reports for the same.?use any editor you know how to use,
    2. how to create tables for employee attendance log in system ?CREATE TABLE .....

  • Need a function to calculate employee attendance data for a given period

    need a function to calculate employee attendance data for a given period
    as
    Working days,
    CL ,
    SL,
    PL,
    LWP
    regards,
    Gaurav Sood.

    Issue resolved

  • FM or Tcode for No.of days employee attended Training in HR ABAP

    Hi Experts,
    I need to calculate No.of Days employee attended training in given payroll period level.
    For ex, iam giving 01.2010 FY (Payroll Period 21.04.2010 to 20.05.2010) .
    Need to find out how many days each employee under traning during this period.
    In PA30 we can see his status (pa00001-stat1 = '2') but i need to calculate how many days he is under traning .
    In PA30, we can see the status changed from Training to Shopfloor or something, Since he is active his end date is 31.12.9999.
    Could  you please tell me where can we see traning information in System (tcode or table or Std program).
    Regards
    SK

    Hello
    You can see the training attended by an employee in the tcode PSV1 and PSV2. If you have LSO implemented in the system, then it will be LSO_PSV1 and LSO_PSV2.
    Regards
    Ranganath

  • Employee attendance system

    hello all,
    what are the requirements for creating a employee attendance tracking system
    what are all the tables colums i want to create for the same

    HI user13792460
    FOR DATA BASE Side u can use intially
    --======================
      FOR DATA BASE
    --===========
    CREATE TABLE DEPT
    ( DEPTNO NUMBER(3),
    DNAME VARCHAR2(35) NOT NULL ,
    LOC VARCHAR2(17),
    CONSTRAINT PK_DEPT PRIMARY KEY ( DEPTNO ) );
    --==================================
    CREATE TABLE EMP
    ( EMPNO NUMBER(5) ,
    ENAME VARCHAR2(39)NOT NULL,
    JOB VARCHAR2(9),
    DEPTNO NUMBER(3),
    CONSTRAINT PK_EMP PRIMARY KEY ( EMPNO ) ,
    CONSTRAINT FK_DEPT FOREIGN KEY ( DEPTNO )   
    REFERENCES DEPT( DEPTNO )
    --=================================
    CREATE TABLE EMP_ATTENDANCE
    ( ATTEND_ID NUMBER(5) ,
    ATT_DATE DATE,
    TIME_IN  DATE,
    TIME_OUT  DATE,
    ATTENDANCE_FLAG  CHAR(1),
    PERMISSION_FLAG  CHAR(1),
    MISSION_FLAG     CHAR(1),
    HOLIDAY_FLAG      CHAR(1),
    EMPNO NUMBER(5) ,
    DEPTNO NUMBER(3),
    CONSTRAINT PK_ATTEND_ID PRIMARY KEY ( ATTEND_ID) ,
    CONSTRAINT FK_EMP_ATTEND FOREIGN KEY ( EMPNO )   
    REFERENCES EMP( EMPNO ),
    CONSTRAINT FK_DEPT_ATTEND FOREIGN KEY ( DEPTNO )   
    REFERENCES DEPT( DEPTNO )
    --==================================Viewing Information about constraints
    To see information about constraints, you can query the following data dictionary tables.
    --==================================
    SELECT * FROM  user_constraints;
    SELECT * FROM  user_cons_columns;
    --==================================
    Hope this helps u...
    Regards,
    Abdetu...

  • Easy question - Methods for employees to record absences

    Dear all,
        Im currently studying to certificate SAP HR. I have been reading in forums that one question is "methods for employees to record absences", as far as I know employees can record time dates in:
    - Front-end time recording systems
    - CATs
    - Self Service
    If Im not wrong, those methods let the employee record ACTUAL times rather than absences.
    Could you please correct me?
    Thanks a lot in advance!!

    Hello,
    There are two types of recording time :
    1) positive - where we record attendance ( as u both know)
    2) negative - where we record absences ( infotype 2001 ). Again this s we can maintain only once the absence quota is provided for the employee for which we use IT2006.
    Hope this answers ur query.
    Thanks and Regards,
    Tarun Mishra

  • Please write a query for given senario

    Hai All,
    Name Date
    anil 05/28/12
    anil 05/25/12
    anil 05/24/12
    anil 05/23/12
    anil 05/22/12
    anil 05/21/12
    anil 05/18/12
    anil 05/17/12
    anil 05/16/12
    anil 05/15/12
    suma 05/28/12
    suma 05/25/12
    suma 05/24/12
    suma 05/23/12
    suma 05/15/12
    This is the only sample data of the employee attendance table.I want know those who are absent in the last 10 days and also not consider the days Sunday and Saturday.
    Example
    Anil : He had present in all the days, no need to display 'Anil' name
    Suma : She had not present in all the day, then show the 'Suma' name with 'Absent Days' (05/22/12,05/21/12, 05/18/12, 05/17/12, 05/18/12)
    This is the only sample data.
    Edited by: adam on May 28, 2012 3:44 AM
    Edited by: adam on May 28, 2012 3:47 AM

    First of all, hijacking someone's topic is not welcome. Said that, meditate over the difference:
    SQL> with  tab  as (
      2                        select 'anil' name,to_date('05/28/12','mm/dd/rr') dt from dual union all
      3                        select 'anil',to_date('05/25/12','mm/dd/rr') from dual union all
      4                        select 'anil',to_date('05/24/12','mm/dd/rr') from dual union all
      5                        select 'anil',to_date('05/23/12','mm/dd/rr') from dual union all
      6                        select 'anil',to_date('05/22/12','mm/dd/rr') from dual union all
      7                        select 'anil',to_date('05/21/12','mm/dd/rr') from dual union all
      8                        select 'anil',to_date('05/18/12','mm/dd/rr') from dual union all
      9                        select 'anil',to_date('05/17/12','mm/dd/rr') from dual union all
    10                        select 'anil',to_date('05/16/12','mm/dd/rr') from dual union all
    11                        select 'anil',to_date('05/15/12','mm/dd/rr') from dual union all
    12                        select 'suma',to_date('05/28/12','mm/dd/rr') from dual union all
    13                        select 'suma',to_date('05/25/12','mm/dd/rr') from dual union all
    14                        select 'suma',to_date('05/24/12','mm/dd/rr') from dual union all
    15                        select 'suma',to_date('05/23/12','mm/dd/rr') from dual union all
    16                        select 'suma',to_date('05/15/12','mm/dd/rr') from dual
    17                       )
    18  select  s.name,
    19          dat.dt
    20    from     
    21    tab s right outer join (
    22               select  trunc(sysdate - level + 1) dt
    23                 from  dual connect by    level <= 14
    24              ) dat
    25         
    26            partition by (s.name)
    27            on ((s.dt) = (dat.dt))
    28    where s.dt is null
    29    and to_char(dat.dt ,'d') not in (1,7)
    30    order by s.name,
    31             dat.dt
    32  /
    no rows selectedand
    SQL> with  tab  as (
      2                        select 'anil' name,to_date('05/28/12','mm/dd/rr') dt from dual union all
      3                        select 'anil',to_date('05/25/12','mm/dd/rr') from dual union all
      4                        select 'anil',to_date('05/24/12','mm/dd/rr') from dual union all
      5                        select 'anil',to_date('05/23/12','mm/dd/rr') from dual union all
      6                        select 'anil',to_date('05/22/12','mm/dd/rr') from dual union all
      7                        select 'anil',to_date('05/21/12','mm/dd/rr') from dual union all
      8                        select 'anil',to_date('05/18/12','mm/dd/rr') from dual union all
      9                        select 'anil',to_date('05/17/12','mm/dd/rr') from dual union all
    10                        select 'anil',to_date('05/16/12','mm/dd/rr') from dual union all
    11                        select 'anil',to_date('05/15/12','mm/dd/rr') from dual union all
    12                        select 'suma',to_date('05/28/12','mm/dd/rr') from dual union all
    13                        select 'suma',to_date('05/25/12','mm/dd/rr') from dual union all
    14                        select 'suma',to_date('05/24/12','mm/dd/rr') from dual union all
    15                        select 'suma',to_date('05/23/12','mm/dd/rr') from dual union all
    16                        select 'suma',to_date('05/15/12','mm/dd/rr') from dual
    17                       )
    18  select  s.name,
    19          dat.dt
    20    from     
    21    tab s
    22    partition by (s.name)
    23    right outer join (
    24               select  trunc(sysdate - level + 1) dt
    25                 from  dual connect by    level <= 14
    26              ) dat
    27            on ((s.dt) = (dat.dt))
    28    where s.dt is null
    29    and to_char(dat.dt ,'d') not in (1,7)
    30    order by s.name,
    31             dat.dt
    32  /
    NAME DT
    suma 16-MAY-12
    suma 17-MAY-12
    suma 18-MAY-12
    suma 21-MAY-12
    suma 22-MAY-12
    SQL> But still, query can produce wrong results. Why? It is NLS-dependent. If your query will be executed by a client in, for example, Germany, your query will filter out Mondays and Sundays. In, for example, Saudi Arabia it will filter out Friday and Saturday.
    SY.

  • Count() function throws error in EQL query for metric

    Hi
    I am trying to use count function in EQL query for Metric Bar to show the number of occurrences of a record.
    When the record type doesn't exist i expect the function to return count as 0. Instead the function throws a runtime exception and the whole Metric Bar portlet fails, with error No Results Available. Even though other components in the metric bar have valid results.
    2013-02-21 13:03:51,216 WARN [MetricsBarQueryProcessor] The EQL query does not return any results.
    2013-02-21 13:03:51,216 ERROR [MetricsBarQueryProcessor] The EQL query does not return any results.
    2013-02-21 13:03:51,216 WARN [MetricsBarResultsProcessor] No statement results to process.
    The EQL query i am using is
    RETURN NUMBER_OCCURS AS SELECT COUNT(EMP_ID) AS NUMBER_OCCURS where EMP_NAME IS NOT NULL group;
    I tried using COALESCE but that doesn't help.
    Can some one please suggest a workaround to this?

    Srikanth,
    Two statements are used here because the original question was pertaining to the null set (where there are employees in the nav state but no employees that fit the special analytics criteria in the navigation state). The question/answer has nothing to do with what is in the COUNT parentheses clause as Counting a null set will always give you NULL, not 0, no matter what you put in there.
    What we're really doing, in the second part of the query, is writing a query over a set of data that is not the null set (i.e. the current navigation state). This allows the 0 value to come through in the case where the first analytics statement is evaluated over a null set of records. If there were truly no records in the navigation state, this too would return a null set and not zero.
    Hope that makes sense, feel free to respond (either on here or offline) if it's unclear.
    Regards,
    Patrick Rafferty
    http://branchbird.com

  • How to handle comma separated values in OLE DB Source query for a parameter variable from XML file in SSIS

    Hi,
    I am using OLE DB Source to fetch the records with Data Access Mode as SQL COMMAND which is using the below query with a parameter,
    SELECT CON.Title,CON.FirstName,EMP.MaritalStatus,EMP.Gender,EMP.Title AS Designation, EMP.HireDate, EMP.BirthDate,CON.EmailAddress, CON.Phone
    from HumanResources.Employee EMP INNER JOIN Person.Contact CON ON EMP.ContactID=CON.ContactID WHERE EMP.Title in (?) 
    In this query for the parameter I am passing the value from a variable and which is configured (XML Configuration). While passing value
    Buyer it works correctly. But while passing values Accountant,Buyer
    it is not working as expected.
    How to handle while passing such multiple values Or is it possible to pass such values or not in SSIS 2012 ?
    Kindly help me to find a solution.
    NOTE: I placed the whole query in a variable as a expression as below it is working fine.
    "select CON.Title,CON.FirstName,EMP.MaritalStatus,EMP.Gender,EMP.Title AS Designation,EMP.HireDate,EMP.BirthDate,CON.EmailAddress,CON.Phone from HumanResources.Employee EMP
    INNER JOIN Person.Contact CON ON EMP.ContactID=CON.ContactID WHERE EMP.Title in ('" + REPLACE(@[User::temp],",","','")  +"')"
    Any other solution is there ? without placing the query in a variable. May be a variable can have some limitations for no. of characters stored not sure just a thought.
    Sridhar

    Putting the whole thing into a variable is certainly a valid solution.  The other involves putting the comma delimited list into a table valued variable.
    http://gallery.technet.microsoft.com/scriptcenter/T-SQL-Script-to-Split-a-308206f3
    For an odd ball approach: 
    http://www.sqlmovers.com/shredding_multiline_column_using_xml/ .
    Russel Loski, MCT, MCSE Data Platform/Business Intelligence. Twitter: @sqlmovers; blog: www.sqlmovers.com

  • How to display Employee Attendance Data in Crosstab Format?

    Hi all,
    I have the data in sql server 2005 like below, which saves the employee in date and in time and entry type 
    How can i create a cross tab query for the above records in sql server 2005. and i need the record in the below format:
    where 1, 2, 3 are indate days, and below is intime, out time and the difference of hours per employee...
    How can i achieve it as i have to make report for it... need sql query or stored procedure for the format required.
    Thanks in adv.

    One could argue that the crosstab is best produced in the presentation layer and that SQL Server should only return the raw data. But if you like to hurt yourself...
    First you need an unpivoting query to put starttime, endtime and length in a single row. Since all columns in a row needs to have the same data type, this requires some care.
    We take this CTE:
    WITH CTE AS (
      SELECT t.EmpID, u.n, datepart(day, t.starttime) AS day
             substring(convert(char(23),
                CASE u.n WHEN 1 THEN t.starttime
                         WHEN 2 THEN t.endtime
                         WHEN 3 THEN dateadd(ss, datediff(ss, t.starttime, t.endtime), '19000101')
                END, 108), 11, 5)
      FROM   tbl
      CROSS  JOIN (SELECT n = 1 UNION ALL SELECT 2 UNION ALL SELECT 3)
      WHERE  t.starttime >= @month + '01'
        AND  t.starttime <  dateadd(month, 1, @month + '01')
    I assume here that @month is on the form YYYYMM.
    Before I go on, I like to point out that something you need to consider is what output you want if there are multiple entries the same day. And even worse, what output do you want if the intervals are overlapping? To keep this post down in complexity, I
    will ignore this situation, but I like to stress that unless you have the appropriate triggers and constraints in place, you will have that sort of data in a real production scenarion. Bad data knows how to creep in.
    With the CTE above, we can now pivot the data per day. It is kind of boring to write:
    SELECT EmpID,
           MIN (CASE day WHEN 1 THEN data END) AS [1],
           MIN (CASE day WHEN 2 THEN data END) AS [2],
           MIN (CASE day WHEN 31 THEN data END) AS [31]
    FROM   CTE
    GROUP  BY EmpID, n
    ORDER  BY EmpID, n
    Note: all code here is untested. If you want a tested solution, you need to supply the CREATE TABLE statements for your table and sample data as INSERT statements.
    Erland Sommarskog, SQL Server MVP, [email protected]

  • Formatted Search query for Vacation Accrued

    Hi Experts,
    I have a Client who needs to keep tract on the Vacation Accrued on the Employee Master Data. I have created this UDF on the Master Data, but I could not get the query for the Formatted Search right.
    This Formatted search on the UDF ( must look at the OHEM.startDate field and populate the following:
    If it is a still within year of the system date, it must populate 0,
    If it is > 1 year and < 3 years, it must populate 5,
    etc.
    Any help would be greatly appreciated.
    Marli

    Hi Experts,
    Here is what I did for the query mentioned above:
    {SELECT
    CASE
               WHEN (T0.startDate > GETDATE() -356)
                       THEN 0
               WHEN (T0.startDate > GETDATE() - 712)
                       THEN 5
    END
    As 'Vacation Accrued'
    FROM OHEM T0}
    The issue is that if I link this query to the UDF on the EMD, I get a list of 0 and 5 to choose from. I need to populate automatically.
    Thanks.
    Marli

  • SQL Query for SSRS has data but fields don't show that data

    I am having a strange issue here with my new report;
    First off, this report is an availability report for employees. If they are busy then a 0 should be displayed for that Hour and if they are free then a 1 is to be displayed. There are 2 parameters setup for use in this query, one is a Date/Time parameter
    and the other is a Text parameter where another Dataset Query is grabbing the data for (Departments)
    I have 2 Parameters, 1 is for a Department and the other is to select the date.
                           Hour1     Hour2    Hour3     Hour4    Hour5   
    Hour6    Hour7
    Smith, John     |     1     |     0     |     0     |     0     |   
    1     |     1     |     1     |
    Som, One        |     1     |     1     |     1     |     0
        |    0     |     1     |     1     |
    When I run the query in the Query Designer for the Dataset the information is displayed correctly and as I would expect it, however, when I run the Report and choose the same information for the 2 parameters then the report only ever shows all 1's;
    Smith, John     |     1     |     1     |     1     |     1     |   
    1     |     1     |     1     |
    Som, One        |     1     |     1     |     1     |     1    
    |    1     |     1     |     1     |
    I've tried searching but didn't know what term to use that describes what is going on.
    Like I said, this works if ran in SSMS and works when ran in the Query Builder of SSRS but when it comes to displaying the data on the report the incorrect information is displayed.
    Any help would be appreciated.
    EDIT
    I have also ran the Report Table Wizard with the same query and chosen Names as the row and Hours as the columns and the same thing happens - just all 1's are displayed even thought the query in Query Builder shows correct information.

    The difference running the query directly in query designer and when the report runs is that you manually type in values for the parameters when running query designer. It is likely that the parameter values from the report have a different syntax than you
    expect. This will happen especially when setting the available values of a parameter from a data cube query. A value from an analysis cube may be displayed in the query designer as "\Project\Iteration Node" while the actual value is "[Work Item].[Iteration
    Hierarchy].[Iteration2].&[-7189901615194941888]&[-8272609059741292246]". Very different as you can see. This example is from the TFS analysis server.
    The best way to validate that your parameters are passing the values (and syntax) you expect is to add text boxes to your report for each parameter and set them to display Parameters!ParameterName.Value.
    "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.

Maybe you are looking for

  • IPhoto 6 import of vertical photos now defaults to 72dpi?!

    Hello, I think this started with iphoto 06 but here is my problem. When importing images from my Nikon D200, any photos I import that are "vertical" into iphoto, will , when opened in Adobe photoshop CS2 default to 72 dpi. Opening a horiz. photo impo

  • Searching for simple upload applet

    I hope this is the right forum for this query I need an "upload any size file" applet. Most of the commercial ones are way overblown in features that you can't turn off. All I need is the ability to upload a file of any size, browse for the file to u

  • After 10.6.3 update, have to do a SMC reset everytime to boot macbook pro

    I just updated my MacBookPro3,1 to 10.6.3 (from 10.6.2) and now everytime I reset or turn off the computer, I have to reset the SMC before it will boot. Otherwise it will hang (i've left it for as long as 3 hours) at the initial gray screen before th

  • Memory & CPU Usages

    Hi, I'm a new user of SJSAS. Currently I�ve installed v9.1 on redhat. I would be helpful for if any body answers questions below- 1. Is it possible to set different limit for memory & CPU usages for different applications, if yes then how ? 2. How ca

  • The use only smart cards for several hundred users

    How can I assign soon as possible, use only the smart card for a few hundred users? I also have a group of people who would like to allow the use of a login and password, and smart card. Using GPO to the computer, will be applied to the station, and