I have Data which indicates month of Order date and month of Shipment date. I want to convert the records which will show, in each month, what is the count of orders and in same month what is the count of shipments
Because I am a beginner to SQL I could not try any way but this is the expected table.
I want to make this happen with Select statement. Please refer the image for the data by clicking here Data with expected result
2
Answers
Your question text is a bit unspecific but it’s tagged "mysql" – so I assume this is what you use.
Something like this would work (please replace with exact column/table names):
Looks like there is a lack of additional information in your question, but maybe you would need something like this