Forum Replies Created

Viewing 15 posts - 9,871 through 9,885 (of 10,144 total)

  • RE: ORDER BY

    The poster's explanation is an opinion which Shaun happens to agree with.

  • RE: in and not in question

    Adam Haines (4/2/2008)


    This is similar and may in some cases work faster:

    SELECT a.id

    FROM tblA a

    LEFT OUTER JOIN tblB b

    ON...

  • RE: in and not in question

    Adam Haines (3/31/2008)


    Just putting a solution that is new to SQL 2005. It works the same way as not in, except nulls do not throw it off.

    select id

    from...

  • RE: HOW TO USE A SUM FUNCTION IN A UPDATE QUERY

    Ian, always check an UPDATE...FROM using a SELECT first. Only when the SELECT returns the values you are expecting should you convert it over to an UPDATE...FROM. It makes the...

  • RE: ORDER BY

    Try this in SQL2k or equivalent mode:

    SELECT ShippedDate AS [OrderDate], * FROM Northwind.dbo.Orders o ORDER BY o.OrderDate DESC

    which has a table name (or rather alias) preceeding the column name. If...

  • RE: Comparing Strings......

    Matt Miller (3/31/2008)


    If you're trying to make sure that they don't re-enter existing clients - why not force them to go through the existing list of customers FIRST? Like...

  • RE: Comparing Strings......

    It's not built-in like 2k5 so you have to write your own. I've used it a lot for migration deduping on the last project with this client, looking for dupes...

  • RE: ORDER BY

    kevriley (3/29/2008)


    Comments posted to this topic are about the item

    Kev

    Try this in a SQL2k query window:

    select OrderDate, * from Northwind.dbo.Orders order by OrderDate desc

    Yes of course it works....

  • RE: Comparing Strings......

    Hi Ahmad, depending on how many rows you're working with, fuzzy matching may also be an option. You could employ SOUNDEX or DIFFERENCE to quickly obtain a list of likely...

  • RE: Scheduling data extraction to excel

    Haha! Cool! Good luck, mate. And...nice one, Jason!:)

  • RE: Help with Transactions, Isolation levels and Blocking??

    George Heinrich (3/25/2008)


    Wait...I meant I've never heard of BOHICA before!

    Bend Over Here It Comes Again. (pronounced: bow-hee-ka)

    This is for information purposes only, it's not an instruction :hehe:

  • RE: Scheduling data extraction to excel

    Ahmad Osama (3/19/2008)


    Hi All,

    I think that the last one is the best(Macro linked with views).

    🙂

    Regards,

    Ahmad

    How are you getting on with this, Ahmad? It would be interesting to hear which...

  • RE: Scheduling data extraction to excel

    Jeff Moden (3/18/2008)


    His slingshot is a lot bigger than mine... catch my drift? 😛

    LOL! Oh yes! 😀

  • RE: Human Power

    Loner (3/21/2008)


    I was there to see the rocks and I did not find it amazing. Maybe it was me.

    First no on knew why those rocks were there,...

  • RE: CASE statement rpoblem

    erdem (3/19/2008)


    Hi Folks,

    I really wonder to know how to correct the mistake below.How can I use CASE statement?????

    Please help

    select b.SiparisNo,

    datediff(day,a.dteTeslimTarihi,b.OnayTarihi) as 'Gun Farki',

    substring(c.sKodu,1,12) as ModelKodu,

    CASE datediff(day,a.dteTeslimTarihi,b.OnayTarihi)

    when datediff(day,a.dteTeslimTarihi,b.OnayTarihi)>0 Then 2...

Viewing 15 posts - 9,871 through 9,885 (of 10,144 total)