Forum Replies Created

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

  • RE: how to join 2 tables with a composite key

    thanks!

    talked to a programmer and found the other 2 fields in a table that I don't need, but will try to join in anyway and see if it works.

  • RE: How to use data from a table in a view that has no primary key

    patrickmcginnis59 (6/28/2012)


    In order to you to just use the first row, you'll have to give some ordering criteria to let SQL know what constitutes the order of the rows of...

  • RE: How to use data from a table in a view that has no primary key

    Thank you, I am trying out the Cross Join now. Of course, I was told there would only be 1 row in the database and there are actually 10....

  • RE: Error converting varchar to Float

    SQLKnowItAll (3/8/2012)


    Change this:

    SELECT WarehousePickingGroup.PickingGroupDescription, SalesTransactionDtl.Transaction_No, SalesTransactionDtl.Line_No

    FROM SalesTransactionDtl

    INNER JOIN WarehousePickingGroup

    ON SalesTransactionDtl.PickingGroup_ID = WarehousePickingGroup.PickingGroup_ID

    To this:

    SELECT WarehousePickingGroup.PickingGroupDescription, SalesTransactionDtl.Transaction_No, SalesTransactionDtl.Line_No

    FROM SalesTransactionDtl

    INNER JOIN WarehousePickingGroup

    ON SalesTransactionDtl.PickingGroup_ID = WarehousePickingGroup.PickingGroup_ID

    AND...

  • RE: Error converting varchar to Float

    No, I did not know the difference. I changed it to a LEFT and now I get too many rows! It is still doing the same thing, where...

  • RE: Error converting varchar to Float

    Well of course the data wasn't correct! It wasn't returning enough rows, so I am narrowed it down and found one of the issues and I can't figure out...

  • RE: Error converting varchar to Float

    Greg Snidow (3/7/2012)


    I think I finally have it working

    I'm just curious, how many rows are there, and how long does it take to run?

    I am only using test data right...

  • RE: Error converting varchar to Float

    SQLKnowItAll (3/7/2012)


    When you alias the table as something like ter5, you have to make sure that is the alias used in the join (change ON ter.colname = sth.columnname to ON...

  • RE: Error converting varchar to Float

    Ok, well this is fun! :w00t:

    I have gone through them all and found the culprit. While trying to debug, I have found that some of the columns that are...

  • RE: Error converting varchar to Float

    Sorry!

    When I view the first 1000 rows of data in SQL Server, every row is exactly the same, which isn't what I expected. Same data in every field for...

  • RE: Error converting varchar to Float

    Well I got this working, but it looks like the data isn't correct 🙁

    the first 1000 rows are all the same...

    Any ideas?

    Here is the view, same as yours Jared, just...

  • RE: Error converting varchar to Float

    Thanks for all the help, if we have more issues maybe my company can hire Jared! The other consultant was specifically for Talend and I'm not sure that he...

  • RE: Error converting varchar to Float

    Funny thing is, a consultant did create that! I was hired to create reports based off that view. They have created a non-normalized table based off this view so...

  • RE: Error converting varchar to Float

    Thanks Jared!

    That fixed that error and now I am getting another one...

    Msg 512, Level 16, State 1, Line 2

    Subquery returned more than 1 value. This is not permitted when the...

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