Forum Replies Created

Viewing 15 posts - 1 through 15 (of 17 total)

  • RE: update query

    When you say "package" are you using an SSIS Package and executing a stored procedure or sql code via an execute sql task?

    Are you executing it via Sql Agent? does...

  • RE: Round Function

    encapsulate your set logic with the ROUND() function.

    set @N=ROUND((SELECT CONVERT(numeric,(493-1)) / 493 *100),2)

    SET @a= ROUND((select CONVERT(numeric,(24625- 1 ))/24625 *100),2)

    -You results will be

    99.8

    100

    However, as stated in the previous...

  • RE: SSRS 8 subreport problem

    How does one interpret an error message which says

    The subreport 'Subreport2' could not be found at the specified location /xxxx. Please verify that the subreport has been published and...

  • RE: update query

    You already have your logic outlined, so really, all you need to do is set it inside a case statement (if doing this in T-SQL)

    This would be representative of your...

  • RE: NEED HELP!!! UPDATING, DELETING, ETC.

    My pleasure!

    I have learned sql in many ways. I learned some basics via class at my work back in the day when I first got started.

    Also have learned...

  • RE: correlated sub query

    Really could use more info, but you could do something like this:

    Select Supervisor.Name as SupName, Employee.Name as EmpName

    From TableA as Supervisor

    Inner Join TableA as Employee

    on Superviser.ID = Employee.SupervisorID

    If you...

  • RE: NEED HELP!!! UPDATING, DELETING, ETC.

    change the join in query 1 that I gave you to

    where Employee.JobTitle = JobTitle.JobTitle

    instead of joining on JobDesc

  • RE: NEED HELP!!! UPDATING, DELETING, ETC.

    For 2 and 3, I made an assumption for your field to determine if Exempt or Not, Employee State of Residence, Employee Hire Date, and Employee Birth Date

    --1.Choose a Job...

  • RE: Create FTP Task to receive file with dynamic name

    I'm assuming you already have your variables set up.

    @[User::SourceFileName] is equal to "TDBANKNORTH_GARDEN_671.txt"

    Create - @[User::RunDate] Where it is set to GETDATE()-1

    Create - @[User::DestFileName]

    Then you want the @[User::DestFileName] variable expression...

  • RE: Left Join Vs Where Clause

    You're right. I didn't catch that. Dag nabbit. Thanks!

    Even though, it still makes it an inner join in effect.

    So the question is, if it is a filter, why would...

  • RE: Left Join Vs Where Clause

    Your example does not do what I was referring to. In the original post V2,

    From Table A

    Left Join B on ID = ID

    Where A.Col = x

    and B.Col =...

  • RE: Please help with view

    Well, you really didn't supply quite enough table data, but if I'm understaning you correctly, you could use something like this below. Select your max info from the Transaction table...

  • RE: Agent job hangs running SSIS pacakge which calls PowerShell to unzip file

    Why not use a zip task in SSIS to unzip the file instead of Powershell?

    Or you could even use an Execute Process Task.

    Here is a link that may be...

  • RE: Left Join Vs Where Clause

    As a left join, you are returning all rows from Table A, but only those in Table B that match (given the specified critera).

    In your alternative, by removing the filters...

  • RE: Return all members of a group if one member matches

    Here you go.

    SELECT J1.Child

    FROM dbo.Job J1

    INNER JOIN dbo.job J on J1.Parent = J.Parent

    INNER JOIN dbo.sites S on S.Child = J.Child

    And sitecode = 18

Viewing 15 posts - 1 through 15 (of 17 total)