Forum Replies Created

Viewing 15 posts - 1,051 through 1,065 (of 3,543 total)

  • RE: SQL Grouping Data

    ringovski (7/7/2011)


    But a single invoice can many purchase orders, so the line_id can be 1 to any number. When there is more than one purchase order I don't the invoice_head...

  • RE: Are the posted questions getting worse?

    GSquared (7/7/2011)


    Yeah, the indexing on The Thread is definitely broken. It's all "bookmark lookups" and "out of date stats" and the fragmentation on the "subject under discussion" and "responses...

  • RE: SQL Grouping Data

    1. where in the code do I put the alias i need for the column names, eg. issue date as Invoice Date.

    Just add the alias to the end of the...

  • RE: Can we take it to another level, please?

    GilaMonster (7/5/2011)


    ... but it seems that just about every single QotD discussion has someone picking holes in the question.

    Or repeated posts stating that the answer is wrong :rolleyes:

  • RE: SQL Grouping Data

    At a guess...

    WITH cte (Invoice_id, IssueDate, Account, ApproveDate, RowId)

    AS (SELECT h.Invoice_id, h.IssueDate, l.Account, l.ApproveDate, ROW_NUMBER() OVER(PARTITION BY h.Invoice_id ORDER BY h.Invoice_id ASC)

    FROM Companies c

    JOIN Invoice_head h ON...

  • RE: Are the posted questions getting worse?

    Jeff Moden (7/5/2011)


    This turned into a "watercooler" thread a long time ago and anyone with a minor dose of manners and a sense of humor is invited.

    Damn! Counts me out...

  • RE: First Normal Form

    Tom.Thomson (6/30/2011)


    ...All of IMS, IDS, IDMS used the term "primary key" long before 1970...

    Wow! Tom, that takes me back :Wow:

    IDMS was the first database I worked with :w00t:

    Nice article by...

  • RE: date DD:MM:YYYY ?

    This will NOT work :

    USE MYDATABASE

    INSERT INTO MY_TABLE (TYPE,START_DATE,END_DATE,RATE)

    VALUES

    ('DBLMS','01.03.2011','16.04.2011','104');

    Default date format for conversion is dependant language setting for the login.

    e.g.

    British English accepts DD.MM.YYYY and YYYY.DD.MM

    English accepts MM.DD.YYYY and YYYY.MM.DD

  • RE: How to Left Justify Results

    How are you getting the results into notepad ?

  • RE: Are the posted questions getting worse?

    george sibbald (6/17/2011)


    quick straw poll if you don't mind guys -

    how much access should developers have in a development environment?

    None, they will only break it 😛

    (only joking right ;-))

  • RE: GO

    What a load of whingers :Wow:

    How come you did not whinge about no mention of using SSMS and at least 2005 to even get close to one of the answers...

  • RE: Are the posted questions getting worse?

    SQLRNNR (6/2/2011)


    GSquared (6/2/2011)


    opc.three (6/2/2011)


    LutzM (6/2/2011)


    To quote from a thread I've been involved:

    Also, I will start to participate on the site more often. It has always been useful and seems to...

  • RE: Maximum number of rows for an insert?

    Ninja's_RGR'us (5/27/2011)


    So in relation to your wife, what's the difference between union and union all? plz keep it PG! ;-):-P

    The level of commitment 😉

  • RE: How to get the id's of those who have a specific price for every date ....

    tzanouch (5/27/2011)


    I want to get the id's of everyone who has a specific value for every date.

    Is that every date in the table or every date for each ID ?

    eg....

  • RE: Are the posted questions getting worse?

    jcrawf02 (5/26/2011)


    Actually, your English is better than most of the English-speaking folks, myself included. I should try responding in Italian...

    Io non sarei schizzando senza senso

    😀

Viewing 15 posts - 1,051 through 1,065 (of 3,543 total)