Probably best understood by the picture below.
. I want to add together any items that share a reference number without adding up the table number column. My SQL is of the form
SELECT
[Order Reference]
,[Item Price]
,[Table Number]
From Orders
I'm pretty sure I need to SELECT from a second SELECT that sums the items prices but I can't get the exact syntax for summing over the order reference without summing the table numbers also.
Edit :
I think I left out important info for the first answerers. And I clearly messed up the sample data. Many apologies. The table has other columns that I haven't included in my query so when I try a group by I still get multiple rows. I want to isolate the particular column and merge the rows disregarding any column that is different (I don't mind which data of the other columns is chosen)
So for clarity (hopefully) the table also has 20 other columns like discount yes or no which I basically want to ignore but which seem to prevent the rows from merging together from a simple group by clause.

Table Numberis preserved? Is it the highest? (Before you answer "first", be clear that tables have no inherent ordering, and so if you say "first", you also have to say by what criteria we can determine the first, based on column values).