Jump to content

Kokoro

Members
  • Posts

    4
  • Joined

  • Last visited

Posts posted by Kokoro

  1. Ok, I have two tables:TotalSales:EmpID Employee Sales1 Employee1 1002 Employee2 2103 Employee3 90TodaySales:EmpID Sale1 422 35I need to update the first table by summing up the sales from the secod table to the sales from the first table of the corresponding employee. The updated table should look like this:TotalSales:EmpID Employee Sales1 Employee1 1422 Employee2 2453 Employee3 90Any idea?

  2. Hi, I have this problem Suppose I have two tables with two columns each. I use a union to retrieve the info from both tables like this:SELECT Column1, Column2FROM Table1UNIONSELECT Column3, Column4FROM Table2Is there a way to sort the result by the first or second column without using the column number?

×
×
  • Create New...