Forum Replies Created

Viewing 15 posts - 931 through 945 (of 1,473 total)

  • RE: Insert into linked table

    Edited that query, so if you're looking at it like "Is that guy nuts?", yeah, so was I. Not sure how I got that all messed up =).

  • RE: Insert into linked table

    INSERT INTO SHOP.shop.dbo.tblPricebook (item, [desc], uom, manid, price, pricegroup, pricegroup_desc, pricegroup_order)

    SELECT PBI.item, PBI.[desc], PBI.uom, PBI.manid, PBI.price, PBI.pricegroup, PBI.pricegroup_desc, PBI.pricegroup_order

    FROM vwValidPriceBookItems PBI

    LEFT JOIN SHOP.shop.dbo.tblPricebook P ON PBI.item = P.item AND...

  • RE: insert currency name and symbol

    This is actually the easy part. The harder part will come when you need to convert between the currencies. There are a lot of issues using currency types...

  • RE: insert currency name and symbol

    Easiest thing in the world!

    Let's say your other table is:

    TableSomething

    A

    B

    C

    CurrencyID

    You'd do this:

    SELECT

    TS.A,

    TS.B,

    TS.C,

    C.CurrencySign,

    C.CurrencyName

    FROM TableSomething TS

    INNER JOIN tblCurrency C ON TS.CurrencyID = C.CurrencyID

  • RE: Which is better

    What's the issue with tabs? I kinda hate spaces and normally replace them with tabs (for code formatting anyways). Do tabs cause some problem that I've never come...

  • RE: what is mean by '' ? + in where clause

    karthikeyan (12/12/2008)


    yes...i have tried your code...

    the result is like as below

    #1:

    Jonny

    kamatchi

    karthik

    kuhan

    ravi

    #2:

    kuhan

    ravi

    but if i don't have index...or if we dont have ordered result set....what will happen? it leads to wrong result...

  • RE: " in T-SQL

    I think I saw something about that being deprecated out of SQL in an upcoming release. Can't find the link at the moment though.

  • RE: insert currency name and symbol

    If your currency table is set up like this:

    tblCurrency

    CurrencyID

    CurrencySign

    CurrencyName

    (Don't shoot me for repeating the tablename in every field, or for using tbl in a table name, I'm doing it to...

  • RE: Extracting date field from date_time

    You can, but doing something like WHERE MONTH(order_date) = 12 is cleaner and faster.

  • RE: query for 1 different value of the last 3 values (chronologically)

    I keep forgetting about the new 2K5 functions. :blush:

    Same concept, better implementation. Thanks for the feedback.

  • RE: update a table from xml string

    To verify, this is for a SQL 2K and not 2K5 database, correct?

  • RE: Exclude records with combo of alphabetical & numeric characters

    Lowell (12/11/2008)


    these are the once which are both alpha and have numbers: you can decide whether to delete or manually edit from this subset, i guess

    select postalcode

    from yourtable

    --alphanumeric ANDALSO numeric

    where...

  • RE: query for 1 different value of the last 3 values (chronologically)

    This should be easily solved by using a running totals method. If you can *add* a column to the table and change the clustered index, you can do it...

  • RE: Wacko SMTP email with ActiveX

    Overachiever IMO. You even answer your own questions!

  • RE: Need to copy data from table to table with update statement

    You know, I never really stopped to think about it, but you're right, it doesn't even make commenting out easier. I do think it makes it a little easier...

Viewing 15 posts - 931 through 945 (of 1,473 total)