good to know af0815, thx
@paulnewyork
That you refrain from providing a compilable example is one thing, but you keep on updating your post that contained code with your original problem. That means that your actual problem keeps changing/shifting
Not only that, you do not notify us that you did change your (original) snippet.
It is nearly impossible to provide help that way. Your code shows that you are making some basic fundamental and logical errors, and there is no way to address those this way and/or offer any guidance in those matters.
instead of guessing what it is you want, i ask: what is it that you want ? A ready to go for your use case working example is not my virtue. You can hire people to do that for you.
I'm in no means upset or otherwise, but you clearly have no idea how to ask a question properly and/or provide the information required to be able to help. I did see that from your original post, and that is why i responded as nobody else in his/her right mind would. I like a challenge (once in a while) :-)
And to show what i meant, you corrected me:
the correct version:
database | fields
========================================================
sell | price, price, id, name, volume, sold, date, start
table | id, price, volume
buy | check, date, buy_id, price, start, volume
Which is perfectly ok, you'd better :-)
however, in your original posted example you used both price and preis as field inside your sell table.Now i must update my table(s) again to match that. Or in short, you are wasting (my) time.
Don't let that hold you back, but please be informative and whatever you do, never change posted snippets unless specifically mentioning with that changed snippet what/why you did it. It is must more preferable to post a new snippet in a new post. If someone reads this thread afterwards, the whole thread doesn't make any sense any more (wasting more of peoples time). Besides that your actions could shed a wrong light on the person attempting to help you.
With regards to the latter, i personally don't care, because as i said before: i do not speak sql so this whole thing is a learning exercise for me
