Page 8 of 20 FirstFirst ... 67891018 ... LastLast
Results 71 to 80 of 197

Thread: IT Professionals

  1. #71
    Senior Member Veteran Hubber bingleguy's Avatar
    Join Date
    Jan 2006
    Location
    bengaluru, India
    Posts
    4,385
    Post Thanks / Like
    I guess Ys ....
    Click here to reach the Index page of http://www.mayyam.com/talk/showthrea...A-LEARNED-YES)... All Sagas could be accessed from this page...

  2. # ADS
    Circuit advertisement
    Join Date
    Always
    Location
    Advertising world
    Posts
    Many
     

  3. #72
    Senior Member Diamond Hubber PARAMASHIVAN's Avatar
    Join Date
    May 2009
    Location
    Kailash
    Posts
    5,541
    Post Thanks / Like
    Has any one used 'Core FTP ' software? Is it any good ?
    Om Namaste astu Bhagavan Vishveshvaraya Mahadevaya Triambakaya Tripurantakaya Trikalagni kalaya kalagnirudraya Neelakanthaya Mrutyunjayaya Sarveshvaraya Sadashivaya Shriman Mahadevaya Namah Om Namah Shivaye Om Om Namah Shivaye Om Om Namah Shivaye

  4. #73
    Senior Member Diamond Hubber PARAMASHIVAN's Avatar
    Join Date
    May 2009
    Location
    Kailash
    Posts
    5,541
    Post Thanks / Like
    Some one pls help. See the query below. when I run it I want all the first name/ last name grouped together, I have included them in the group by aggregate, but the in the out put it does not list first_name, Last_name grouped together

    USE hospices
    SELECT
    dbo._contact.reference,
    dbo._contact.first_name,
    dbo._contact.last_name,
    don2.value_gross AS ValueGross,
    don2.value_net AS ValueNet,
    'Individual' AS donorType
    FROM dbo._Donation don2
    INNER Join dbo._Contact ON don2.supporter_id = dbo._Contact.id
    WHERE don2.legacy_id is null
    and dbo._Contact.dutchess_norfolk_contact=1
    and dbo._Contact.deceased=0
    and don2.value_gross >=500
    group by
    dbo._contact.reference,
    dbo._contact.first_name,
    dbo._contact.last_name,
    don2.value_gross,
    don2.value_net
    ORDER BY ValueGross DESC
    Om Namaste astu Bhagavan Vishveshvaraya Mahadevaya Triambakaya Tripurantakaya Trikalagni kalaya kalagnirudraya Neelakanthaya Mrutyunjayaya Sarveshvaraya Sadashivaya Shriman Mahadevaya Namah Om Namah Shivaye Om Om Namah Shivaye Om Om Namah Shivaye

  5. #74
    Senior Member Platinum Hubber
    Join Date
    Oct 2004
    Posts
    10,586
    Post Thanks / Like
    Hey, you're grouping by all the fields that you're selecting.

    What value then you want to see aggregated? Is it count(*) or something else?

    Your query will only get a hardcoded value "Individual" for each entry of reference, firstname, lastname, valuegross and valuenet.

    If you want sum of, say value gross or value net then you need to only group by ref / first name / last name and place the other inside the desired function.

  6. #75
    Senior Member Diamond Hubber PARAMASHIVAN's Avatar
    Join Date
    May 2009
    Location
    Kailash
    Posts
    5,541
    Post Thanks / Like
    Thanks na, I orderd by last_name and it works.

    :P

    many thanks for 'prompt' reply
    Om Namaste astu Bhagavan Vishveshvaraya Mahadevaya Triambakaya Tripurantakaya Trikalagni kalaya kalagnirudraya Neelakanthaya Mrutyunjayaya Sarveshvaraya Sadashivaya Shriman Mahadevaya Namah Om Namah Shivaye Om Om Namah Shivaye Om Om Namah Shivaye

  7. #76
    Senior Member Diamond Hubber PARAMASHIVAN's Avatar
    Join Date
    May 2009
    Location
    Kailash
    Posts
    5,541
    Post Thanks / Like
    use hospices_test
    select contact_id,event_id
    from _event_response
    group by contact_id,event_id
    having count(*)> 1


    The above statement returned all the duplicates, I have to delete all of them. I tried subquery , it does not work, as it can not return more than one value.

    Is there any other way I can do this, Please help, this is quite urgent
    Om Namaste astu Bhagavan Vishveshvaraya Mahadevaya Triambakaya Tripurantakaya Trikalagni kalaya kalagnirudraya Neelakanthaya Mrutyunjayaya Sarveshvaraya Sadashivaya Shriman Mahadevaya Namah Om Namah Shivaye Om Om Namah Shivaye Om Om Namah Shivaye

  8. #77
    Senior Member Platinum Hubber
    Join Date
    Oct 2004
    Posts
    10,586
    Post Thanks / Like
    Params,

    I've not worked recently on Microsoft SQL-Server and you may possibly want to try their solution given here :
    http://support.microsoft.com/kb/139444

    For Oracle, I normally use "rowid" as in this sql below :

    DELETE FROM our_table
    WHERE rowid not in
    (SELECT MIN(rowid)
    FROM our_table
    GROUP BY column1, column2, column3...) ;

    I'm not sure whether MS-SQL uses rowid, give it a try

  9. #78
    Senior Member Diamond Hubber PARAMASHIVAN's Avatar
    Join Date
    May 2009
    Location
    Kailash
    Posts
    5,541
    Post Thanks / Like
    Quote Originally Posted by app_engine
    Params,

    I've not worked recently on Microsoft SQL-Server and you may possibly want to try their solution given here :
    http://support.microsoft.com/kb/139444

    For Oracle, I normally use "rowid" as in this sql below :

    DELETE FROM our_table
    WHERE rowid not in
    (SELECT MIN(rowid)
    FROM our_table
    GROUP BY column1, column2, column3...) ;

    I'm not sure whether MS-SQL uses rowid, give it a try
    Hello anneh

    I have seen the MSDN website, wasn't any help will try your code and let you know.

    many thanks for help
    Om Namaste astu Bhagavan Vishveshvaraya Mahadevaya Triambakaya Tripurantakaya Trikalagni kalaya kalagnirudraya Neelakanthaya Mrutyunjayaya Sarveshvaraya Sadashivaya Shriman Mahadevaya Namah Om Namah Shivaye Om Om Namah Shivaye Om Om Namah Shivaye

  10. #79
    Senior Member Diamond Hubber PARAMASHIVAN's Avatar
    Join Date
    May 2009
    Location
    Kailash
    Posts
    5,541
    Post Thanks / Like
    sorry it does not work , there is no rowid in sql server, it is called row_number and I tried that and it doesn't work

    no worries thanks any way
    Om Namaste astu Bhagavan Vishveshvaraya Mahadevaya Triambakaya Tripurantakaya Trikalagni kalaya kalagnirudraya Neelakanthaya Mrutyunjayaya Sarveshvaraya Sadashivaya Shriman Mahadevaya Namah Om Namah Shivaye Om Om Namah Shivaye Om Om Namah Shivaye

  11. #80
    Senior Member Platinum Hubber
    Join Date
    Oct 2004
    Posts
    10,586
    Post Thanks / Like
    This article also talks about using a temp table (in the case of SQL Server) :

    http://database-programming.suite101..._in_sql_server

    May be there are other ways, but if you have grants to create a new table, that is possibly a quick (and dirty) solution.

Page 8 of 20 FirstFirst ... 67891018 ... LastLast

Similar Threads

  1. IT Professionals
    By Raghu in forum Miscellaneous Topics
    Replies: 206
    Last Post: 19th July 2007, 09:09 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •