Learn SQL

Learn SQL explains everything you need to learn interms of SQL.

Customers table:

customer_idfirst_namelast_namebirth_datephoneaddresscitystatepoints
1BabaraMacCaffrey28-03-1986781-932-97540 Sage TerraceWalthamMA2273
2InesBrushfield13-04-1986804-427-945614187 Commercial TrailHamptonVA947
3FreddiBoagey07-02-1985719-724-7869251 Springs JunctionColorado SpringsCO2967
4AmburRoseburgh14-04-1974407-231-801730 Arapahoe TerraceOrlandoFL457
5ClemmieBetchley07-11-1973 5 Spohn CircleArlingtonTX3675
6ElkaTwiddell04-09-1991312-480-84987 Manley DriveChicagoIL3073
7IleneDowson30-08-1964615-641-475950 Lillian CrossingNashvilleTN1672
8ThacherNaseby17-07-1993941-527-3977538 Mosinee CenterSarasotaFL205
9RomolaRumgay23-05-1992559-181-37443520 Ohio TrailVisaliaCA1486
10LevyMynett13-10-1969404-246-337068 Lawn AvenueAtlantaGA796

Orders Table:

order_idcustomer_idorder_datestatuscommentsshipped_dateshipper_id
1630-01-20191   
2702-08-20182 03-08-20184
3801-12-20171   
4222-01-20171   
5525-08-20172 26-08-20173
61018-11-20181Aliquam erat volutpat. In congue.  
7222-09-20182 23-09-20184
8508-06-20181Mauris enim leo, rhoncus sed, vestibulum sit amet, cursus id, turpis.  
91005-07-20172Nulla mollis molestie lorem. Quisque ut erat.06-07-20171
10622-04-20182 23-04-20182

JOINS

Join clause is used to combine two or more tables, based on a relatable column between them