Forum Replies Created

Viewing 15 posts - 9,376 through 9,390 (of 26,490 total)

  • RE: Consolidating records - TSQL problem

    I came up this:

    create table testing (retained int, dropped int)

    insert into testing (retained, dropped)

    select 767884, 157441 union all

    select 1046261, 157441 union all

    select 1055257, 157441 union all

    select 157441, 73635 union all

    select...

  • RE: Error message: "The multi-part identifier could not be bound."

    SQL_beginner1 (9/24/2012)


    Hi,

    I'm a newbie and this is my first post.

    I'm trying to update a table based on a select query, but I'm getting the following error message when I try...

  • RE: Teammates

    TravisDBA (9/24/2012)


    It's all Bush's fault.:-D

    Your opinion. Personally, you put the fault on all the politicians, regardless of political party or position. They afre more interested in their own...

  • RE: SQL query eliminating rows problem

    SQL Kiwi (9/23/2012)


    Lynn Pettis (9/23/2012)


    True. The problem is that I haven't been able to directly use any of the code Mr. Celko has posted recently because it doesn't parse....

  • RE: SQL query eliminating rows problem

    SQL Kiwi (9/23/2012)


    Lynn Pettis (9/23/2012)


    Once again, you post code that won't even parse. Your CREATE TABLE isn't valid:

    All that is missing in a final close-parenthesis for the CREATE TABLE.

    True....

  • RE: SQL query eliminating rows problem

    CELKO (9/22/2012)


    I am trying to solve an issue and wondered if you could help, I'm relatively new to T-SQL

    We also do not use bit flags; that was assembly...

  • RE: Are the posted questions getting worse?

    SQLRNNR (9/21/2012)


    SQL Kiwi (9/21/2012)


    Brandie Tarvin (9/21/2012)


    I can't blame him for being defensive. Eugene basically invited Celko into that thread for the sole purpose of roasting him. There really was no...

  • RE: Teammates

    TravisDBA (9/21/2012)


    Lynn Pettis (9/21/2012)


    TravisDBA (9/21/2012)


    I have to say Barack Hussein Obama. He wants to end offshoring of American jobs and redistribute the wealth in this country and I am most...

  • RE: Teammates

    krowley (9/21/2012)


    I am going to go less serious and more geeky. Geordi La Forge from Star Trek. The ultimate problem solver. If it could be done Gordi could do it....

  • RE: How to get only the biggest sales for the data

    Using just your sample data (not the code you posted), is this what you are looking for?

    WITH TestData (

    corp_address_id,CompanyName,invoice_no,sales

    ) AS (

    SELECT

    corp_address_id,CompanyName,invoice_no,sales

    FROM

    (VALUES

    (10010,'Wellservice',123,5),

    (10010,'Wellservice',124,8),

    (10010,'Wellservice',125,2))dt(corp_address_id,CompanyName,invoice_no,sales)

    ), BaseData...

  • RE: Cursor Help

    rocky_498 (9/21/2012)


    OMG I AM SO SORRYYYYY, I totally forgot there is page 2nd. I just implement your code its work fine, Again i am so

    sorry for this Confusion and Great...

  • RE: Getting the last entry based on a previous entry.

    Based on the sample data you provided in your initial post, what is the expected results?

  • RE: Verify your backups - NOW!

    A hardware or IO failure. Disk sectors can go bad on you.

  • RE: Teammates

    TravisDBA (9/21/2012)


    I have to say Barack Hussein Obama. He wants to end offshoring of American jobs and redistribute the wealth in this country and I am most definitely for both...

  • RE: how to make full text search for a tables?

    Sean Lange (9/21/2012)


    /vent begin

    You have been trying to work on this for over a month with various half-hearted attempts strewn all over this site. You need to realize that we...

Viewing 15 posts - 9,376 through 9,390 (of 26,490 total)