MySQL group 2 different requests from one table? -


I have a table where I have position 1 and status 2 fields I select from a different location and position On 1 basis, in the second option, I select from the other tables based on the position 2, how can I group it into a request?

Get the first position 1 and get all the additional details 2 status and all the additional details

In this way?

  Select from myTableInner on MyOtherTableX (myTable.Position1 = MyOtherTableX.Position1) Select Union * FROM Join MyTable INNER MyOtherTableY ON (myTable.Position2 = MyOtherTableY.Position2)    

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -