Forum Replies Created

Viewing 15 posts - 181 through 195 (of 1,085 total)

  • RE: To find invalid product codes

    Number 4 is an actual duplicate, (which I am 'assuming' your table allows), but the others have the same code, but slightly different names.  Actually, #3 is totally independent, so...

  • RE: Drop #Temp Table

    They also have scope issues.  But, for quick a dirty, they are great!  And, if you do not have large sets of data, they work dandy as well as Indexing...

  • RE: BULK INSERT fixed length

    Look up the SUBSTRING function.  I believe that will give you what you need...

  • RE: Building a string range

    Are you filling in blanks?  Can you give us a set of your data?  (This may not require a full description of the tables, expected and actual results - sounds...

  • RE: DISTINCT

    Have you run this query?  You should not get multiple values for a one-to-one relationship, hence DISITINCT should not be necessary. 

  • RE: Character arrays in T-SQL

    It seems to me you think backwards from parsing a string.  In other words, if I have an SP with a string passed in delimited by | [ pipe ],...

  • RE: How to verify if a table is empty during executing a statement

      I changed my first post... 

  • RE: Setting up relationships correctly

    Can you show me an example of two identical column names in one table?  Thanks

  • RE: execute stored procedure in a cursor for statement

    If your @Variables are already populated.  Generally after Declaring the Cursor, you populate your variables, check for errors, and run you actions through the cursor.  If you are getting an...

  • RE: DISTINCT

    If you can keep from using DISTINCT, that is always best, (generally that indicates a problem with relationships of lack of constraints). 

    You may want to post your table structures,...

  • RE: How to verify if a table is empty during executing a statement

    I completely misunderstood your post. 

    IF EXIST( SELECT TOP 1 * FROM Tsource)

    BEGIN

         ... do your work

    END

    ELSE

    BEGIN  

         RETURN

    END

  • RE: Set ANSI Warning Off

    You may be missing an underscore: SET ANSI_WARNINGS OFF

    What error are you getting?  (Sometimes you will see errors in Query Analyzer that will not effect your application...) 

  • RE: Drop #Temp Table

    If you Delcare a @TableVariable, you do not need to drop it to re-run the script...

  • RE: join two tables

    [OMG!  I did not realize so many of us got the same thing... too funny]  I do not get your results: 

     

    DECLARE @employees TABLE( [id] integer, employee varchar(10))

    INSERT INTO...

  • RE: Group by Issue

    You could try the following: 

    SELECT [MVG T003 - Eliminate outliers from T001].StdVin,

                  GRP.FirstOfMODELYEAR,

                  GRP.FirstOfMAKE,

                  GRP.FirstOfSERIES,

                  GRP.FirstOfBODYSTYLE,

                  GRP.STDEVAUCNETPRICE,

                  GRP.CountOfStdVin,

                 GRP.AvgOfCurValue,

                 GRP.VIC

    INTO...

Viewing 15 posts - 181 through 195 (of 1,085 total)