User Profile

Collapse

Profile Sidebar

Collapse
seharmks
seharmks
Last Activity: Apr 18 '08, 11:51 AM
Joined: Sep 25 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • How to copy distinct records from one table to another using SQL 2005

    I have a table on an offline database having let say 2000 rows and same table on an online database with let say 3000 rows. Now I want to copy just those records (1000) from online database that are not in the offline database table. Also, both tables have same name, same schema etc.
    See more | Go to post

  • seharmks
    replied to How to merge multi rows to single row?
    Above query works well but I am facing some other problems.

    I have ProductName, ProductPrice, ProductSize columns as well in OrderDetail table and Discount in Order table. I also want these columns too but when I select these columns, it gives an error of GROUP BY clause of each newely selected column.

    Is there any solution. Following is the sample solution that I want

    OrderID---------Total-----------...
    See more | Go to post

    Leave a comment:


  • seharmks
    replied to How to merge multi rows to single row?
    Above query works well but I am facing some other problems.

    I have ProductName, ProductPrice, ProductSize columns as well in OrderDetail table. I also want these columns too but when I select these columns, it gives an error of GROUP BY clause of each newely selected column.

    Is there any solution. Following is the sample solution that I want

    OrderID----------Total----------ProductName----------ProductPrice----------ProductSize...
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...