Forum Replies Created

Viewing 15 posts - 3,421 through 3,435 (of 4,087 total)

  • RE: How to make column dymanic to recognise 1 character or 2 characters

    CELKO (12/15/2011)


    Oh, we also used to put commas at the start of punch cards to make the deck easier to re-arrange – just like you have! I am not kidding...

  • RE: Populate Start and End Time from Previous End Time

    You're using the wrong field for your current value to add to the running total. You're using MinutesRunningCount when you should be using TotalHoursInMinutes. (BTW why isn't this just...

  • RE: Populate Start and End Time from Previous End Time

    This is essentially a running total. Jeff has a very good article on calculating running totals: Solving the Running Total and Ordinal Rank Problems (Rewritten)[/url]. Be sure...

  • RE: try catch general advice

    I don't think that there's any hard and fast rule. It depends mostly on what your business needs are. If you need a lot of detail, then you'll...

  • RE: help in the query

    I didn't even get that far. I saw that:

    * There was no sample data

    * There were no expected results

    * There was no definition of the "correct...

  • RE: Using SP_

    Hugo Kornelis (12/14/2011)


    * Schema - when you don't specify a schema when referencing an object, SQL Server will, if I recall correctly, check your default schema first (which by default...

  • RE: partition data

    I was about to post almost exactly the same query. The only difference was that I used an INNER JOIN rather than an EXISTS for the portfolio. Depending...

  • RE: partition data

    Cadavre (12/14/2011)


    I felt you needed a reply, as you've provided us with DDL and sample data so I've had a go.

    There's a possibility I haven't understood your problem correctly, so...

  • RE: Find lower case field names

    newbieuser (12/13/2011)


    I'm trying to rename column names that are in lower case to upper case in some tables.

    I have to ask, "WHY?!?!" By default, SQL is case insensitive. ...

  • RE: insert and update-Trigger

    The best way to learn is to try it for yourself. Report back on what you find.

    Drew

  • RE: SELECT statement - value gets truncated when selecting from XML column

    As others have said, this is an issue with what the UI (SSMS) is displaying not with the actual data. This is one of the reasons that I prefer...

  • RE: Update record getting from some SQL Query

    First, I want to mention that there are several issues that I see. It looks like you have represented times using strings. If you are measuring durations, you...

  • RE: DATE Datatype issue

    The DATE data type was introduced in SQL 2008. That's why you can't find it on your SQL 2000 database.

    Drew

  • RE: Query syntax - Is a single query possible

    CELKO (12/10/2011)


    Please post usable DDL,

    He did post usable DDL.

    Code should be in Standard SQL as much as possible and not local dialect.

    Why? This is a dialect specific forum and...

  • RE: Query syntax - Is a single query possible

    Use a CROSS APPLY. You can also use a CTE with ROW_NUMBER(), but I've found that the CROSS APPLY tends to perform better.

    SELECT Item_No, Item_Desc_1, Item_Desc_2, Trx_Dt, Doc_Ord_No, Vend_No,...

Viewing 15 posts - 3,421 through 3,435 (of 4,087 total)