Let’s make a SQLite database of the 17 United Nations Sustainable Development Goals and some social issues.
2 | id INTEGER PRIMARY KEY , |
3 | goal_name TEXT NOT NULL , |
6 | INSERT INTO UNGoals (id, goal_name, explanation) VALUES |
7 | (1, 'No Poverty' , 'End poverty in all its forms everywhere.' ), |
8 | (2, 'Zero Hunger' , 'End hunger, achieve food security and improved nutrition and promote sustainable agriculture.' ), |
9 | (3, 'Good Health and Well-being' , 'Ensure healthy lives and promote well-being for all at all ages.' ), |
10 | (4, 'Quality Education' , 'Ensure inclusive and equitable quality education and promote lifelong learning opportunities for all.' ), |
11 | (5, 'Gender Equality' , 'Achieve gender equality and empower all women and girls.' ), |
12 | (6, 'Clean Water and Sanitation' , 'Ensure availability and sustainable management of water and sanitation for all.' ), |
13 | (7, 'Affordable and Clean Energy' , 'Ensure access to affordable, reliable, sustainable and modern energy for all.' ), |
14 | (8, 'Decent Work and Economic Growth' , 'Promote sustained, inclusive and sustainable economic growth, full and productive employment and decent work for all.' ), |
15 | (9, 'Industry, Innovation and Infrastructure' , 'Build resilient infrastructure, promote inclusive and sustainable industrialization and foster innovation.' ), |
16 | (10, 'Reduced Inequality' , 'Reduce inequality within and among countries.' ), |
17 | (11, 'Sustainable Cities and Communities' , 'Make cities and human settlements inclusive, safe, resilient and sustainable.' ), |
18 | (12, 'Responsible Consumption and Production' , 'Ensure sustainable consumption and production patterns.' ), |
19 | (13, 'Climate Action' , 'Take urgent action to combat climate change and its impacts.' ), |
20 | (14, 'Life Below Water' , 'Conserve and sustainably use the oceans, seas and marine resources for sustainable development.' ), |
21 | (15, 'Life on Land' , 'Protect, restore and promote sustainable use of terrestrial ecosystems, sustainably manage forests, combat desertification, and halt and reverse land degradation and halt biodiversity loss.' ), |
22 | (16, 'Peace, Justice and Strong Institutions' , 'Promote peaceful and inclusive societies for sustainable development, provide access to justice for all and build effective, accountable and inclusive institutions at all levels.' ), |
23 | (17, 'Partnerships for the Goals' , 'Strengthen the means of implementation and revitalize the global partnership for sustainable development.' ); |
25 | CREATE TABLE Social_Issues ( |
26 | id INTEGER PRIMARY KEY , |
27 | name TEXT UNIQUE NOT NULL , |
31 | INSERT INTO Social_Issues ( name , description) VALUES |
32 | ( 'Affordable Housing' , 'Ensuring people have access to safe, affordable living spaces.' ), |
33 | ( 'Employment' , 'Providing job opportunities and workforce development.' ), |
34 | ( 'Food Security' , 'Ensuring access to nutritious food for all.' ), |
35 | ( 'Water Access' , 'Providing reliable clean water supply.' ), |
36 | ( 'Sanitation' , 'Improving hygiene and waste management to prevent disease.' ), |
37 | ( 'Environmental Sustainability' , 'Promoting eco-friendly practices and conservation efforts.' ), |
38 | ( 'Healthcare Access' , 'Ensuring people have access to essential medical services.' ), |
39 | ( 'Education Equity' , 'Providing equal learning opportunities for all individuals.' ), |
40 | ( 'Mental Health Support' , 'Addressing psychological well-being and access to mental health services.' ), |
41 | ( 'Financial Inclusion' , 'Ensuring access to financial services for underserved populations.' ), |
42 | ( 'Digital Divide' , 'Bridging gaps in technology access and digital literacy.' ), |
43 | ( 'Gender Equality' , 'Promoting equal rights and opportunities regardless of gender.' ), |
44 | ( 'Indigenous Rights' , 'Advancing the rights and well-being of Indigenous communities.' ), |
45 | ( 'Climate Change Adaptation' , 'Helping communities adjust to environmental changes.' ), |
46 | ( 'Youth Empowerment' , 'Supporting young people with education, training, and leadership opportunities.' ), |
47 | ( 'Disability Inclusion' , 'Ensuring accessibility and equal opportunities for people with disabilities.' ), |
48 | ( 'Refugee Support' , 'Providing assistance and resources for displaced populations.' ), |
49 | ( 'Civic Engagement' , 'Encouraging participation in social and political processes.' ), |
50 | ( 'Employment Equity' , 'Promoting fair and inclusive work opportunities.' ), |
51 | ( 'Senior Support' , 'Addressing the needs and well-being of elderly populations.' ), |
52 | ( 'Prisoner Reintegration' , 'Helping formerly incarcerated individuals transition back into society.' ), |
53 | ( 'Human Trafficking Prevention' , 'Combating forced labor and exploitation.' ), |
54 | ( 'LGBTQ+ Rights' , 'Advocating for equal rights and protections for LGBTQ+ individuals.' ), |
55 | ( 'Addiction Recovery' , 'Providing support for individuals struggling with substance abuse.' ), |
56 | ( 'Disaster Relief' , 'Providing emergency aid and long-term recovery support for affected communities.' ), |
57 | ( 'Rural Development' , 'Improving infrastructure and opportunities in rural areas.' ), |
58 | ( 'Urban Poverty' , 'Addressing social and economic challenges in low-income urban areas.' ), |
59 | ( 'Fair Trade & Ethical Sourcing' , 'Promoting fair wages and responsible supply chains.' ), |
60 | ( 'Child Protection' , 'Preventing abuse, exploitation, and neglect of children.' ), |
61 | ( 'Access to Justice' , 'Ensuring legal representation and rights protection for marginalized groups.' ); |
68 | CREATE TABLE Goal_Issue_Link ( |
69 | goal_id INTEGER NOT NULL , |
70 | issue_id INTEGER NOT NULL , |
71 | PRIMARY KEY (goal_id, issue_id), |
72 | FOREIGN KEY (goal_id) REFERENCES UNGoals(id), |
73 | FOREIGN KEY (issue_id) REFERENCES Social_Issues(id) |
76 | INSERT INTO Goal_Issue_Link (goal_id, issue_id) VALUES |
82 | INSERT INTO Goal_Issue_Link (goal_id, issue_id) VALUES |
86 | INSERT INTO Goal_Issue_Link (goal_id, issue_id) VALUES |
92 | INSERT INTO Goal_Issue_Link (goal_id, issue_id) VALUES |
97 | INSERT INTO Goal_Issue_Link (goal_id, issue_id) VALUES |
101 | INSERT INTO Goal_Issue_Link (goal_id, issue_id) VALUES |
106 | INSERT INTO Goal_Issue_Link (goal_id, issue_id) VALUES |
110 | INSERT INTO Goal_Issue_Link (goal_id, issue_id) VALUES |
115 | INSERT INTO Goal_Issue_Link (goal_id, issue_id) VALUES |
119 | INSERT INTO Goal_Issue_Link (goal_id, issue_id) VALUES |
125 | INSERT INTO Goal_Issue_Link (goal_id, issue_id) VALUES |
130 | INSERT INTO Goal_Issue_Link (goal_id, issue_id) VALUES |
134 | INSERT INTO Goal_Issue_Link (goal_id, issue_id) VALUES |