Forum Replies Created

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

  • RE: Comlplicated query help

    That was exactly what I needed!

    Thank you for the help!!!

    Retired Navy Chief Petty Officer, Consulting Systems Engineer, C# Programmer, SQL Beginner

  • RE: Query/Stored Procedure Help

    It would be either the All States, or the individual States.

    Not both parametes.

    Retired Navy Chief Petty Officer, Consulting Systems Engineer, C# Programmer, SQL Beginner

  • RE: SQL Mail each time a new record is created

    Thanks, Never used a trigger before.

    Didn't think of that.

    Learn something new daily!

    Retired Navy Chief Petty Officer, Consulting Systems Engineer, C# Programmer, SQL Beginner

  • RE: Unable to open an Access 2003 db in Access 2010

    I figured it out. The original creator, specified a username so that only that person would be able to exit the startup menu.

    Remove the code portion that looked for a...

    Retired Navy Chief Petty Officer, Consulting Systems Engineer, C# Programmer, SQL Beginner

  • RE: Inner Join Insert help

    jeff.mason (7/27/2010)


    The SELECT @variable = SCOPE_IDENTITY needs to be the very next statement after the insert to ensure you are getting the proper IDENTITY. So before the END.

    Gotcha.

    Thanks,

    Retired Navy Chief Petty Officer, Consulting Systems Engineer, C# Programmer, SQL Beginner

  • RE: Inner Join Insert help

    jeff.mason (7/27/2010)


    No. Do your insert as normal without reference to the ID column. The insert will create the row and generate the identity. The very next statement...

    Retired Navy Chief Petty Officer, Consulting Systems Engineer, C# Programmer, SQL Beginner

  • RE: Inner Join Insert help

    bteraberry (7/27/2010)


    brian.cook (7/27/2010)


    So if I add a subquery to the Select statement that has this;

    SELECT TOP 1 [ProjectID]

    FROM [BE].[dbo].[2010Projects]

    ORDER BY [ProjectID] DESC

    That should give me the...

    Retired Navy Chief Petty Officer, Consulting Systems Engineer, C# Programmer, SQL Beginner

  • RE: Inner Join Insert help

    ColdCoffee (7/27/2010)


    Yes ,Brian, right.. but there are better solutions to get teh latest ProjectID.. if you would provide us some sample data, your table structure, then we would happily solve...

    Retired Navy Chief Petty Officer, Consulting Systems Engineer, C# Programmer, SQL Beginner

  • RE: Inner Join Insert help

    So if I add a subquery to the Select statement that has this;

    SELECT TOP 1 [ProjectID]

    FROM [BE].[dbo].[2010Projects]

    ORDER BY [ProjectID] DESC

    That should give me the latest ProjectID...

    Retired Navy Chief Petty Officer, Consulting Systems Engineer, C# Programmer, SQL Beginner

  • RE: Math function question

    Matt Miller (#4) (7/22/2010)


    brian.cook (7/22/2010)


    Matt Miller (#4) (7/22/2010)


    Jeff Moden (7/22/2010)


    Joe Celko (7/22/2010)


    brian.cook (7/22/2010)


    Thanks, I knew it would be something simple!

    Actually, using the proprietary MONEY is a huge problem. It...

    Retired Navy Chief Petty Officer, Consulting Systems Engineer, C# Programmer, SQL Beginner

  • RE: Math function question

    Matt Miller (#4) (7/22/2010)


    Jeff Moden (7/22/2010)


    Joe Celko (7/22/2010)


    brian.cook (7/22/2010)


    Thanks, I knew it would be something simple!

    Actually, using the proprietary MONEY is a huge problem. It does not divide or...

    Retired Navy Chief Petty Officer, Consulting Systems Engineer, C# Programmer, SQL Beginner

  • RE: Math function question

    Thanks Dan. I will look it over.

    Brian

    Retired Navy Chief Petty Officer, Consulting Systems Engineer, C# Programmer, SQL Beginner

  • RE: Math function question

    With that said, what would you use?

    I inherrited the database from someone else. I am cleaning up what I can, and enhancing where it needs to be.

    So, what is...

    Retired Navy Chief Petty Officer, Consulting Systems Engineer, C# Programmer, SQL Beginner

  • RE: Math function question

    Thanks, I knew it would be something simple!

    I appreciate the help. That was the last item I was trying to figure out.

    Have a great day!

    Retired Navy Chief Petty Officer, Consulting Systems Engineer, C# Programmer, SQL Beginner

  • RE: Math function question

    Correct. Would I use the same function as in Excel? Or something similar?

    Retired Navy Chief Petty Officer, Consulting Systems Engineer, C# Programmer, SQL Beginner

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