Forum Replies Created

Viewing 13 posts - 1 through 14 (of 14 total)

  • RE: SQL Command Question

    I will try that... Thanks!!!!! something to start with for sure...

  • RE: SQL Statement needed

    anyone have an example of this?

    I need to take two tables, two columns and have it output a third with all possible combinations.

  • RE: SQL STATEMENT HELP

    Neither appear to be working.

    Adams appears to return no data.. no errors, but no data

    with GAils I put her where statement but it was erroring out on the...

  • RE: SQL STATEMENT HELP

    well it appears that neither are working....

    With Adams, It appears to run but I get no results. I put the DECLARES at the top and then the Where...

  • RE: SQL STATEMENT HELP

    thank you both... will have to test and confirm the results! But THANKYOU again for the info... greatly appreciated

  • RE: SQL STATEMENT HELP

    forgive my ignornace but will that work through out the year where it will only grab the previous montn and the current month of data?

    Thanks again

    Rob

  • RE: SQL STATEMENT HELP

    actually need to add the YEAR value in there to where it only goes back two months... as this year was the first on the DB so in 2008 when...

  • RE: SQL STATEMENT HELP

    Issue is because of the change from 2007 and 2008.. where the MONTH returns a 0 and there for ALL applydates are greater than or equal to 0 so we...

  • RE: SQL STATEMENT advise please

    thanks for the info.. will give it a try with my DB.

    Thanks again

    RM

  • RE: Basic SQL

    convert(char(12),GETDATE()-1,101)

    just takes the GET DATE ( todays date 08/23/2007 hh:mm:ss ) and converts it into the 101 format ( minus one day )

    not sure if you are just...

  • RE: SQL STATEMENT advise please

    I get incorrect syntex near '\'

    thoughts?

  • RE: SQL STATEMENT advise please

    thanks!!! Will give that a try.

  • RE: SQL STATEMENT advise please

    here is the SQL I am running...

    Select personid,personnum,firstnm,lastnm,middleinitialnm,workemailaddress,

    companyhiredtm,birthdtm,homestreet,homecity,homestate,homezip,employmentstatus,employmentstatusdt

    from VP_personv42

    where Employmentstatusdt = convert(char(12),GETDATE()-1,101)

    OR employmentstatus = 'active'

    order by personnum

    The field in question is Homestreet which is actually pulled from another...

Viewing 13 posts - 1 through 14 (of 14 total)