Forum Replies Created

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

  • RE: Help with query - Top clause and distinct clause?

    Do I hear a big D'oh!  I don't use max very often and did not even think about it!  Thanks for your help and have a great day.

  • RE: Inventory Projection Query - Stored Procedure

    Exactly, it does work for one month.  Thanks for your reply Steve, I will try it.

  • RE: Indexing and general questions.....

    Hi Wayne,

     

    Thanks for your response....I ended up going with the simplest route, I created a table on my database which is a compilation of all of the aggregates in the...

  • RE: Finding position in a string

    You are wonderful!  Thank you so much, and have a great weekend!

  • RE: Finding position in a string

    Okay the girl is brain dead (it is Friday!)........!!!!

     

    I need to know how in the syntax to use the column name to find "bal" in not just to find a...

  • RE: Finding position in a string

    I have been able to get the following but cannot figure out how to get the substring to work:

     

    select orderid, productid, charindex('BAL',VendorModelNbr)as 'StartPos', vendormodelnbr

    from orderitem

    where writtendate = '01-Sep-05'

    and vendorid =...

  • RE: Finding position in a string

    So basically, (if I understand correctly...have never used charindex before) if the column is named specorderinfo then:

     

    select substring(charindex('BAL',specorderinfo)1,12)

     

    Or something close to that?

  • RE: Finding position in a string

    Okay, maybe I'm being a bit dense, but I don't see how charindex will work.  I need to search all of the rows where the starting position may change based on the...

  • RE: Help with Query

    Sure, here is a very short sample list:

     

    ProductIDSerialNbrID

  • RE: Help with Query

    Exactly, the piece will have a qtynonsellable and a reasoncodeid when received, but then on a later transdaction date the same serial number will now have qty on hand and...

  • RE: Running SQL Server code in Excel

    You can use an ODBC driver to connect your Excel spreadsheet to SQL Server.  In excel then you would click on Data-Get External Data - Create New Query.  Select your...

  • RE: Linking query between 2 databases

    Thanks for your reply, we figured it out.

    Database A (main database)

    Database B (secondary database)

     

    We were leaving out the dbo name from database B when we initially were trying to do...

  • RE: T-SQL and Microsoft Query

    I thought of that too, but need to get with our dba's to give me access to create views.  That may be my best bet though.

  • RE: T-SQL and Microsoft Query

    The problem is that I don't want the dates hardcoded.  I want to set them as parameters in Microsoft Query and cannot due to the "graphically" error message.  When this message shows up...

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