« first day (1442 days earlier)      last day (2876 days later) » 

8:43 AM
@AdityaVikasDevarapalli Take a look at these 2. 1 & 2
 
9:19 AM
I have to get all customers that have orders and the amount of orders. Customers can have multiple orders. My current sql returns the same customer for each order he has:

"SELECT customers.name FROM sql_05_customers AS customers
INNER JOIN sql_05_orders AS orders ON customers.id = orders.customer_id"

html result:

| customer name | order |
----------------------------------
Tobias | 01 |
Mike | 02 |
Jasmine | 03 |
Tobias | 04 |
 
@Schoening What are you using? SQL Server, MySQL, PostgreSQL?
 
MySQL that comes with xampp
 
Then I'm afraid that I don't know. I'd guess that MySQL has documentation though? Look up something like COUNT and you should be fine then.
 
Thanks :) No worries. COUNT sounds like something I should use haha
 
@Schoening No worries
 

« first day (1442 days earlier)      last day (2876 days later) »