Forum Replies Created

Viewing 15 posts - 91 through 105 (of 117 total)

  • RE: Names of People Born in specific month

    select emp_name, emp_dob from employee

    emp_dob is listed for example '1974-01-03 00:00:00' OR '1974-01-03'

    So, I would need something like my first post, where it would break all emp_names into the respective...

  • RE: Names of People Born in specific month

    How would I get the month breakdown

    remember emp_dob column is in SMALLDATETIEM Declaration.

  • RE: Names of People Born in specific month

    Here is the XML Of each employee shift schedule

    <e emp_id="1" start_sked="2011-03-27T00:00:00" end_sked="2011-04-23T00:00:00">

    <w wk="1">

    <s work_date="03/27" date="2011-03-27T00:00:00">

    <shift work_date="1" />

    ...

  • RE: XML Stored Proc Help

    Also How would I create a time table with all the values you have given me in your query.

  • RE: XML Stored Proc Help

    with emp_schedule as (

    Select shift_start_time = '2011-04-01 07:00:00'

    ...

  • RE: XML Stored Proc Help

    In the first select statement, I need to split calender into 28 days. with wk 1,2,3,4 and days from 1-7 or 0-6.

    How do I make sure that the work_date is...

  • RE: XML Stored Proc Help

    One of the guys told me I need to create a table with

    emp_id,

    emp_name,

    job_description,

    shift_id,

    shift_start_time,

    shift_end_time

    but I have to parse the data into this format with w wk and day, can you...

  • RE: XML Stored Proc Help

    This is how the result should be

    <e emp_id="518" emp_name="Avila, Bobbie" start_sched="2011-04-17T00:00:00" end_sched="2011-05-14T00:00:00">

    <w wk="1">

    <s work_date="04/17" date="2011-04-17T00:00:00">

    <shift job_code="38" job_department_id="31"...

  • RE: XML Stored Proc Help

    emp_id = 1

    work_date = 2011-04-01

    shift_start_time = "2011-04-01 07:00:00"

    shift_end_time = "2011-04-01 15:00:00"

    The table includes the dates he is scheduled to work on for the next 4 weeks from 2011-04-01

    So all...

  • RE: Stored Procedure Help

    Alter procedure [dbo].[WEB_HR_SLXSCREENTEMPLATES3](

    @sourcedb VARCHAR(50),

    @targetdb VARCHAR(50),

    @sourcegroup VARCHAR(50),

    @targetgroup VARCHAR(50),

    @sourcedb1 VARCHAR(50),

    @targetdb1 VARCHAR(50),

    @sourcegroup1 VARCHAR(50),

    @targetgroup1 VARCHAR(50),

    @sourcedb2 VARCHAR(50),

    @targetdb2 VARCHAR(50),

    @sourcegroup2 VARCHAR(50),

    @targetgroup2 VARCHAR(50),

    @sourcedb3 VARCHAR(50),

    @targetdb3 VARCHAR(50),

    @sourcegroup3 VARCHAR(50),

    @targetgroup3 VARCHAR(50)

    )

    AS

    BEGIN

    declare @sql varchar(max)

    declare @sql1 varchar(max)

    declare @sql2 varchar(max)

    declare @sql3 varchar(max)

    set

  • RE: Stored Procedure Help

    so how should the code look with the execute statement, I apologize for so many questions

  • RE: Stored Procedure Help

    4 input parameters

    source database: version500_prod

    target database: version5_sales

    source table: version500_prod..slxhrscreentemplates

    target table: version5_sales..slxhrscreentemplates

    plus the output should

    be @sql

    so execute @sq correct?

  • RE: Stored Procedure Help

    alter procedure [dbo].[WEB_HR_SLXSCREENTEMPLATES](

    @version500_prod varchar(50),

    @version5_sales varchar(50),

    @template_group_1 varchar(50)

    @template_group_2 varchar(50)

    )

    AS

    BEGIN

    DECLARE @sql varchar(max);

    set @sql = 'insert ' + @version5_sales + ' select * from ' + @version500_prod + ' where...

  • RE: Stored Procedure Help

    It is not working yet, the table in version5_sales is only updated at Admin, not the other 3 values.

  • RE: SP Help

    Yes, give me in dynamic sql and I need an execute statement, but make sure all 4 template_group values are replaced

Viewing 15 posts - 91 through 105 (of 117 total)