Forum Replies Created

Viewing 13 posts - 16 through 28 (of 28 total)

  • RE: Error inserting data with T-sql

    your last bracket is missing a / before the word code. /code

  • RE: delete top 100

    riya_dave (7/17/2013)


    hi

    my query is giving me erro

    delete top(1000) from table a

    join table b

    on a.id = b.id

    and b.date < getdate()

    error: incorrect syntax near a.

    i want to delete top 1000 from...

  • RE: error

    kapil_kk (7/17/2013)


    Voide (7/16/2013)


    riya_dave (7/16/2013)


    hi

    select * from tableA with(nolock) a

    join tableB with(nolock) b

    on a.id = b.id

    where a.date > getdate()

    i am getting error incorrect syntax near a

    As Gail said, why nolocks?

    Also...

  • RE: delete rows

    Before modifying data it is always a good idea to create a temp table as a backup. Once you delete it all, there's no going back.

  • RE: error

    riya_dave (7/16/2013)


    hi

    select * from tableA with(nolock) a

    join tableB with(nolock) b

    on a.id = b.id

    where a.date > getdate()

    i am getting error incorrect syntax near a

    As Gail said, why nolocks?

    Also alias names...

  • RE: CALCULATE 2 years back data

    Assuming you want all the data collected from today until two years ago to this date then the logic is:

    create_timestamp > (The function you're using to go back to exactly...

  • RE: CALCULATE 2 years back data

    Assuming you're talking about the create timestamp of the data, then this could work setting tablename to whatever your table is called.

    DATEADD feature is used with CURRENT_TIMESTAMP. Useful to know,...

  • RE: Selecting records in table only when ALL related records in other table satisfy multiple conditions

    Seeing as I work in medical these tables look a lot like NextGen tables 😉

  • RE: Are the posted questions getting worse?

    On the topic of renewing government documents.. Allow me to share a story:

    Last September my car was broken into while I was at the gym. Of course, this is the...

  • RE: Need max date from duplicare records.

    You have more than 3 columns.

    Have you written any code for this at all? Can you post it? What have you tried?

    As others have said, MAX and Group By...

  • RE: Query by current month

    mromano222 (7/12/2013)


    when i use these i get an error that says "Oralce ODBC Ora -00920 invlaid operational operator

    You posted in a SQL server forum 🙂 He gave...

  • RE: Should development environment be close or exact to production?

    Assuming you have a DR (damage recovery) site and some sort of backup that runs nightly (RedGate for instance) then it's not 100% required to have your Devl environment equal...

  • RE: DATABASE SLOW

    Have you tried rebooting?

Viewing 13 posts - 16 through 28 (of 28 total)