English 8, Lesson Five – My Hobbies

My favorite hobbies or things to do after school are reading, Roblox, Netflix, and TikTok.  Basically, bugging my eyes in front of a screen all day.

My friends don’t like TikTok, and sometimes make fun of me for having the app.  If you don’t know what TikTok is, it is an app where you can lip-sync and create stories or have singing accounts.  It is another social media platform where teens mess around.  I have my own account (which I will not be sharing because it’s cringe), and I browse around on it all day.

When I get bored of TikTok, I move on to Netflix.  There are not that many interesting shows to watch anymore, but my top three favorite shows are “Stranger Things”, “The Chilling Adventures of Sabrina” and “The Worst Witch.”  All three are Netflix Originals which is how you know that Netflix will never take them away.  I also used to binge-watch “Agents of S.H.I.E.L.D”, but Netflix deleted the first five seasons so I stopped watching.

Sometimes, I don’t watch Netflix or TikTok.  I play Roblox while watching YouTube!  My favorite games on Roblox are “Royale High”, “Adopt Me”, “Zombie Rush”, “Piggy”, and “Tower of Dread” (it is like “Tower of Hell” but more fun).

If I am not doing any of those (usually means I ran out of electronics time), I read my books!  I have already read almost all the books that I own so I either reread them, or I read my school books, or I read a book I got from the library.  There is this one series called “Keeper of the Lost Cities” by Shannon Messenger, and I am in love with it!  It is addicting to read it.  I keep reading until dinner time!

But, if I am not doing any of those, I’ll be annoying my parents.  Telling them I am bored, or hungry, or just sit in their lap until their legs are numb.

Well, that’s it.  All my “hobbies”.  You just saw what I do every afternoon after school!  Thanks for reading!

Personal Finance 8, Lesson 5 – How I Can Control My Small Spendings

As a 12-year old kid recovering from Covid-19 Lockdown, I don’t spend much of my money.  But I do spend some money.  In this essay I am going to talk about how I can save even more of my money.

I only go out by myself once a week to go meet up with my friends.  I only spend money on dinner (and candy).  I could stop buying candy and only spend my money on dinner.  When dinner time comes I could find places with food that is not very expensive.  But let’s be honest, I’m only eating fast food when I go out with friends.  Usually when I go out I bring $50.  Instead I could only bring $20.  $10 for dinner and $10 for emergencies.

I’m a huge bookworm and books can be quite expensive sometimes.  Instead of buying books I like I can just borrow from the library or read ebook versions.  This will probably save me at least $50-$60.

I only spend money on presents for my parents or friends or meals when I’m out with friends.  Sometimes I buy myself hair ties or jewelry, otherwise my money remains untouched.

English 8, Lesson One – What I Did Over My School Break

Usually when I go on break I get extra electronic time and I just spend it all on Roblox.  But this break I decided to try something new.  I spent my two week school break on reading!

I obviously still played Roblox and watched TV (I’m not that nerdy).  But most of my time was spent reading a new book series my friends recommended to me.  The series is called “Keeper of the Lost Cities” by Shannon Messenger.

The series is about a girl named Sophie who finds out that she is an elf and gets “whisked” away to the elven world.  There are eight books in the series, so far.  In November 2020 a new book comes out, it’s called considered 8.5.  And in 2021 the ninth book is coming out!  During my break I was able to read the first five books.

This series is the best for pre-teens who like adventure, magic, and a little romance 😉    If you are a big fan of Harry Potter you will love this series.

This school break has been the best so far, mainly because I got to read so much.  I highly recommend this series to read over break or whenever you can.  It’s so addicting!

History 7 – Islamic History After the Death of Prophet Muhammad

After the death of Prophet Muhammad, there were several Islamic Dynasties.  In this essay I am going to briefly explain each of these dynasties.

The Rightly Guided Caliphs

The first dynasty after the Prophet, the Ummah (the community) elected four of the closest Companions to the Prophet.  Abu Bakr, Umar, Uthman, and Ali were chosen to be the successors or Caliphs.  They were known as the Rightly Guided Caliphs.  You can think of them as the most able apprentices.  They ruled the Islamic state of Medina and defended it.  Abu Bakr was a caliph for only two years before his death in 634 CE.  He was then succeeded by Umar who created a Council of six senior Companions to elect the next Caliph in 644 CE, which was fitting as he was assassinated that year.  The Council then elected Uthman to be the next Caliph.  Uthman was a Caliph for 12 years before being assassinated as a result of a conspiracy.  The Council then elected Ali to be the next Caliph.  Ali was then assassinated five years later.

All four Caliphs spread the message of Islam and defended Islamic communities, sometimes through war, and expanded the reach of Islam from northern Africa to the Middle East to Persia (modern day Iran).  It was during the reign of Umar that Jerusalem was captured by the Muslims in 638 CE.  For the first time in over 500 years, the Jews were allowed to return to Jerusalem.  Jews had been expelled by the Romans in 70 CE.

The Umayyads

The Umayyad dynasty was founded by Mu’awiyah, a Companion of the Prophet.  After the death of Mu’awiyah, his son was appointed to succeed him, effectively replacing the governance by principle of consultation to a dynastic (monarchy) rule.  The Umayyads lasted for 89 years before being succeeded by the Abbasids.

In 732 CE, the Umayyads were defeated at the Battle of Tours by the Franks in modern day France; this is regarded as a decisive battle.  If the Muslims had won, they would have continued to conquer the rest of Europe.

In that time, the Umayyads were known for their military skills, architecture, and the minting of the earliest silver and gold Islamic coins.  They also introduced Arabic as the main language in Iraq, Syria, Egypt, and Persia.  They had expanded the Islamic empire, in the west from North Africa to modern day Spain and Portugal (then called Al Andalusia), and in the east to modern day Afghanistan and Pakistan.

Umar ibn Abd al-Aziz was the great-grandson of Umar ibn al-Khattab, the second Rightly Guided Caliph.  Umar was one of the best Umayyads and was known as the Fifth Rightly Guided Caliph because of his fairness and kindness.

In 750 CE, the last Umayyad Caliph, Marwan II, was killed by the Abbasids marking the end of the Umayyad dynasty and the start of the Abbasids.

The Abbasids

The Abbasid dynasty took over the Umayyads in 750 AD.  It lasted 508 years.

Under the Abbasid caliph, Abdallah al-Ma’mun, mathematics, medicine, astronomy, algebra, geometry, trigonometry and optics were developed.

Harun al-Rashid ruled for 23 years (786 CE – 809 CE).  Those years were known as the golden age of the Abbasid dynasty.  In his reign he worked to establish political stability and economic success.

The Abbasids had a golden age of learning from 750 CE to 945 CE.  Until the twenty-third Abbasid caliph, al-Mustakfi, was forced to abdicate in favor of the effective ruler of Iraq, Buyid ruler Mu’izz al-Dawla Ahmad.  Mu’izz kept the Abbasids as mere figureheads.

From 945 CE to 1258 CE, the Abbasids struggled to get their power back but never reached the height they once held.  In 1258 CE, they fell to the Mongol invasion lead by Genghis Khan’s grandson Hulegu Khan.  Hulegu then established the Ilkhanid Dynasty that favored Buddhism and Nestorian Christianity for about 40 years.

The Mamluks

The Mamluk dynasty was originated from a Turkish military household.  In 1250 CE, they gained power by taking control of Egypt and Syria from the Ayyubids.  The Mamluks lasted 267 years (1250-1517).

Unlike the Abbasid dynasty, the Mamluks were a warring dynasty.  They never had a golden age of education or learning.

The most notable battle that the Mamluks fought was The Battle of Ayn Jalut (in modern day Palestine) in 1260 CE.  They defeated the Mongols who had wiped out the Abbasid dynasty.  This battle is marked as one of the great turning points in history.  If the Mongols had won they might have continued to conquer all of North Africa and Europe.

In 1517 CE, the Ottoman conquest through Syria and Egypt put an end to Mamluk dynasty.

The Ottomans, the Safavids, and the Mughals

The Ottoman Empire lasted 641 years (1281 CE – 1922 CE).  They emerged from what is modern day Turkey and started to gain power in 1357 CE as they started to expand into Europe.

The Ottomans also created a force within their army called the Janissaries (like the modern day Marines).  These were forcefully-recruited young Christian boys (from the ages of 10 – 12), converted them to Islam, and then trained them for battle.  For some poor families of conquered lands, it was a road out of poverty for their children.

In 1453 CE, the Ottoman Turks conquered Constantinople (modern day Istanbul) in their defeat of the Byzantine Empire.  They continued the expansion of their Empire into Europe.  In 1683 CE, the Ottomans Turks lost to the Holy Roman Empire in The Battle of Vienna.  Since then, they never could regain their power and in 1922 CE, the Ottomans finally collapsed due to the expansion of European powers post-World War I.

Meanwhile, The Safavid Empire had been established in the east in modern day Iran and Afghanistan.  The Safavid Empire lasted 221 years (1501 CE – 1722 CE).  They were a Turkic dynasty and they were supporters of the arts.  During their time paintings, carpets, textiles, ceramics, and architecture were considered great accomplishments.

Another Muslim Empire at about the same time, the Mughal Empire (descendants of the Mongol invasions), the Mughals lasted 332 years (1526 CE – 1858 CE).  They ruled most of modern day India and Pakistan.

During the height of the Mughal Empire, a man named Shah Jahan ruled.  He loved his wife Mumtaz Mahal more than anything in the world.  When she passed, he built the Taj Mahal as a tomb for her.  When Shan Jahan died he was also buried there.

In 1857 CE, British Indian soldiers revolted against the British rule in India (the Sepoy Uprising).  The British then attacked Delhi and ended the Mughal Empire.

The Start of a New Empire

By 1900 CE, nine European empires and Chinese empires ruled over 80% of the once great Muslim Empires.  Only 20% of the Muslims lived in the remaining Muslim states: the Ottoman Empire, Persia, the Arabian Peninsula, Morocco, and Afghanistan.  During World War 1, the British and the French signed a treaty agreeing to split the lands that the Ottoman Empire once owned.

In 1924 CE, the 600-year old Ottoman dynasty was exiled from Turkey, marking the end of all Muslim Empires.

Conclusion

In this essay, you can see how Islam grew and spread from a small community in the Arabian desert to multiple empires that spread from Spain to Indonesia, and contributed to science, arts and trade.  By the end of World War I, all Muslim empires had disintegrated.  From them emerged, many Muslim majority nations none of which are leading powers in the world.  Indeed, many Muslim majority nations are among the poorest in the world in 2020.   The golden age of Islam is long past.

Muslims now look forward to the Second Coming of Jesus to a world governed by God’s commandments.

English 7 – My Term Paper: A Review of Literature

In 7th Grade English, I learned about three types works of Literature:  Genres, Stories, and Poetry.  In this essay, I am going to talk about what I have learned in each, how they are developed in Fiction and Non-fiction works, and how Voices play a part in each.  Additionally, I will also share a section on Worldviews which is a special kind of non-fiction.

In Literature, there are two categories: fiction and non-fiction.  Fiction is from the author’s imagination, and non-fiction, which is based on actual events and is real.

Genres

Many genres like mystery, history, fantasy, and many more are found in fiction.  The term genre is not very specific as there is quite a bit of overlap.  For example, realistic fictions (going on in the real world) happen in a setting of historical significance.

In fiction, there are also different types of writings like novels, novellas, poetry, and short stories.  Non-fiction can also include short stories and poetry.

Stories

Short stories are quick and simple.  Usually, they contain one or more morals but can also just be for fun.  Novels are longer stories, like Harry Potter or Lord of the Rings.  Then, there are novellas which are stories whose length in between short stories and novels.

Poetry

Poetry is a little more complex.  Usually, people think that poetry has to rhyme, but it does not have to; there just needs to be a certain rhythm to it.  There are many types of poetry or lines of poetry: trimeters, tetrameters, pentameters, hexameters, heptameters, octameters, and many more.  These are made up of metrical feet.

How do feet come into poetry?  In poetry, “foot” means a group of syllable that forms a metrical unit.   English poetry consists of stressed and unstressed syllables.  Unlike classical poetry, it consists of long and short syllables.

As I stated earlier, poetry does not have to rhyme.  But when it does rhyme, there are different types, like masculine and feminine, exact and approximate rhymes, and many more.  Masculine rhymes are rhymes of the finale stressed syllables.  For example, collect and direct.  Feminine rhymes are rhymes between stressed syllables followed by one or more unstressed syllables.  For example, jogging and logging.  Exact rhymes are when words rhyme exactly.  For example, dog and bog.  Approximate rhymes are when words rhyme approximately.  For example, dusk and must.

Construct of a Fictional Work

I learned there are five constructs that make fiction work:  plot, setting, character development, author’s style, and theme.

In the plot, there are five parts: exposition, rising action, climax, falling action, and resolution.

  • The exposition is the beginning. The characters get introduced and we learn the background of some of these characters.
  • The rising action is when the problem arises and when the story begins to come together.
  • The climax is when something important happens, someone dies, the enemy is defeated, etc.
  • The falling action is after the climax, usually when the story is coming to an end.
  • In the resolution, everything is solved, the problem is over and the story is competed.

The second thing that makes fiction work is the setting.  It is comprised of six parts:  the juxtaposition, milieu, tone, mood, visualization, and customs.

  • Juxtaposition is when two objects are placed together for contrast to make it easier for the reader to grasp what is going on.
  • Milieu is the personality of a character. How they would react in a situation, how they talk, or even how they walk.
  • Tone is how the story is told; it could be whimsical or grim or mysterious. It is however the author wants to portray the story.
  • Mood is similar to the tone. It is the atmosphere of the story.
  • Visualization is what the reader sees in his or her mind. The author would put time into describing things so you could understand how the character looks, or how the place around them looks.
  • Finally, customs, is the culture of the people in the story.

The third part of fiction is character development.  It is just like what the name says.  How the character evolves or matures throughout the story.  If you have ever read Harry Potter, you can really see how the character Snape evolved through the series.  There are two types of characters:  the protagonists and the antagonists.  The protagonists are the “good guys” and the antagonists are the “bad guys”.  Back to my example of Snape:  when the series started he was the antagonist, whereas, at the end of the series, he was the protagonist.

The fourth part of fiction is the author’s style.  It is like the tone of the story.  Author’s style is however the author likes to right their books.  They could put in a lot of dialogue or describe every detail.

The fifth, and final, part of fiction is theme.  It is the message, or messages, that the author meant to put into the story.  There is no wrong or right answer since no one can know what the author thinks.  Sometimes the theme can be very obvious, while at other times, it can be more subtle.

Construct of a Non-fictional Work

There are two different types of non-fiction:  biographies and autobiographies.  Biographies are when someone writes a book about another person’s life.  Autobiographies are basically the same, except this time the subject is the one writing the book.

Voices

In Literature, there are two types of voices:  active and passive.

Active voice is when the subject does the action.  Active voice sounds like this:  I ate all of the ice cream.

Passive voice is when the subject is acted upon.  Passive voice sounds like this:  All of the ice cream was eaten by me.

Most authors prefer to use active voice.  It is easier to use and sounds better.

Worldviews

Let’s discuss worldviews now.  A worldview is how the author views the world or what they believe in.  I learned about fifteen different worldviews this year: theism, atheism, rationalism, transcendentalism, naturalism, pragmatism, nihilism, existentialism, postmodernism, deism, materialism, new age pantheism, humanism, hedonism, and socialism.

  • Theism is the belief of a higher entity that made the whole world.
  • Atheism is the exact opposite of theism. It is the belief that there is no god in the universe and that the world just came to be.
  • Rationalism is the belief that logic and reason is the answer for everything.
  • Transcendentalism is the belief that men and women should have knowledge about themselves and the world around them that “transcends” or goes beyond what they can see, hear, taste, touch or feel.
  • Naturalism is the belief that nature is the only explanation for anything.
  • Pragmatism is the belief that any practical ideas or theories are accepted. While unpractical ideas are to be rejected.
  • Nihilism is the belief that nothing in this world is real. Anyone who follows this worldview would feel like he or she have no purpose and they probably will not anything with their life.
  • Existentialism is the belief that everyone’s actions or beliefs is of their free will.
  • Postmodernism is the belief of living by your own rules and nobody else’s. This sounds like a good belief, but if the whole world followed this there would be crime.  If someone thinks that murder is not bad, no one can interfere.
  • Deism is the belief of One Supreme Being.
  • Materialism is the belief that everything is real; matter is the only substance.
  • New age pantheism is the belief that everything is just a part of something bigger.
  • Humanism is the belief that man is the center of everything.
  • Hedonism is the belief that all actions can be measured by how high the pleasure is and how low the pain is.
  • The last worldview, Socialism, is the belief of status quo. If you do not have wealth, you are less than others who do have wealth.

If you read how the author writes, you may be able to tell what worldview they have.

Conclusion

This year has been a very fun year with all the readings and short videos.  I learned many things that I did not know before like the six parts of setting and how there can be different ways how poetry flows.  My favorite part of the year was all the readings.   I specifically like “Little Men” by Louisa May Alcott the most.  I had been meaning to read the book but never got the time.  If 8th Grade English is like this year I can’t wait!

Grade 7 Science: Coding Project 16 – App Impersonator

This project is from the SQL section on Khan Academy.

The objective of this project is to make your own app.

https://www.khanacademy.org/computer-programming/spin-off-of-project-app-impersonator/6188009854681088

CREATE TABLE diary_app (id INTEGER PRIMARY KEY AUTOINCREMENT,
entry_date TEXT,
emotions TEXT,
entry TEXT);

INSERT INTO diary_app VALUES (1, “2020-05-25”, “happy”, “I did a project in coding today!”);
INSERT INTO diary_app VALUES (2, “2020-05-26”, “happy”, “I finished SQL in Khan Academy today!”);
INSERT INTO diary_app VALUES (3, “2020-05-27”, “crappy”, “I had a Math exam today!”);
UPDATE diary_app SET entry = “I did great in Math today!”, emotions = “bored” WHERE id = 3;

DELETE FROM diary_app WHERE id = 3;

SELECT * FROM diary_app;

Grade 7 Science: Coding Project 15 – Famous People

This project is from the SQL section on Khan Academy.

The objective of this project is make your own table from multiple given tables.

https://www.khanacademy.org/computer-programming/spin-off-of-project-famous-people/6507415377690624

 

CREATE TABLE Harry_Potter_Characters (id INTEGER PRIMARY KEY AUTOINCREMENT,
fullname TEXT,
gender TEXT,
skill_id1 INTEGER,
skill_id2 INTEGER,
house_id INTEGER)
;

CREATE TABLE Skill_Sets (id INTEGER PRIMARY KEY AUTOINCREMENT,
skill TEXT,
skill_id INTEGER)
;

CREATE TABLE house (id INTEGER PRIMARY KEY AUTOINCREMENT,
house_name TEXT,
house_id INTEGER)
;

INSERT INTO Harry_Potter_Characters VALUES(1, “Harry Potter”, “Male”, 1,5 ,1);
INSERT INTO Harry_Potter_Characters VALUES(2, “Ron Weasley”, “Male”,1,5,1);
INSERT INTO Harry_Potter_Characters VALUES(3, “Hermione Granger”, “Female”,2,3,1);
INSERT INTO Harry_Potter_Characters VALUES(4, “Ginny Weasley”, “Female”,1,5,1);
INSERT INTO Harry_Potter_Characters VALUES(5, “Neville Longbottom”, “Male”,4,5,1);
INSERT INTO Harry_Potter_Characters VALUES(6, “Luna Lovegood”, “Female”,3,5,4);
INSERT INTO Skill_Sets VALUES(1, “Defense Against the Dark Arts”, 1);
INSERT INTO Skill_Sets VALUES(2, “Spells”, 2);
INSERT INTO Skill_Sets VALUES(3, “Potions”, 3);
INSERT INTO Skill_Sets VALUES(4, “Botany”, 4);
INSERT INTO Skill_Sets VALUES(5, ” “, 5);

INSERT INTO house VALUES (1, “Gryffindor”, 1);
INSERT INTO house VALUES (2, “Slytherin”, 2);
INSERT INTO house VALUES (3, “Hufflepuff”, 3);
INSERT INTO house VALUES (4, “Ravenclaw”, 4);

SELECT Harry_Potter_Characters.fullname, Harry_Potter_Characters.gender, A.skill AS “skill one”, B.skill AS “skill two”, House.house_name
FROM Harry_Potter_Characters
LEFT OUTER JOIN Skill_Sets A
ON Harry_Potter_Characters.skill_id1 = A.skill_id
LEFT OUTER JOIN Skill_Sets B
ON Harry_Potter_Characters.skill_id2 = B.skill_id
LEFT OUTER JOIN house
ON Harry_Potter_Characters.house_id = house.house_id
ORDER BY house.house_name
;

Grade 7 Science: Coding Project 14 – Data Dig

This project is from the SQL section on Khan Academy.

The objective of this project is to make your own table based of a given table.

https://www.khanacademy.org/computer-programming/spin-off-of-project-data-dig/5081659215855616

 

CREATE TABLE marvels (ID INTEGER PRIMARY KEY,
name TEXT,
popularity INTEGER,
alignment TEXT,
gender TEXT,
height_m NUMERIC,
weight_kg NUMERIC,
hometown TEXT,
intelligence INTEGER,
strength INTEGER,
speed INTEGER,
durability INTEGER,
energy_Projection INTEGER,
fighting_Skills INTEGER);

INSERT INTO marvels VALUES(1, “Spider Man”, 1, “Good”, “Male”, 1.78, 75.75, “USA”, 4, 4, 3, 3, 1, 4);
INSERT INTO marvels VALUES(2, “Iron Man”, 20, “Neutral”, “Male”, 1.98, 102.58, “USA”, 6, 6, 5, 6, 6, 4);
INSERT INTO marvels VALUES(3, “Hulk”, 18, “Neutral”, “Male”, 2.44, 635.29, “USA”, 1, 7, 3, 7, 5, 4);
INSERT INTO marvels VALUES(4, “Wolverine”, 3, “Good”, “Male”, 1.6, 88.46, “Canada”, 2, 4, 2, 4, 1, 7);
INSERT INTO marvels VALUES(5, “Thor”, 5, “Good”, “Male”, 1.98, 290.3, “Asgard”, 2, 7, 7, 6, 6, 4);
INSERT INTO marvels VALUES(6, “Green Goblin”, 91, “Bad”, “Male”, 1.93, 174.63, “USA”, 4, 4, 3, 4, 3, 3);
INSERT INTO marvels VALUES(7, “Magneto”, 11, “Neutral”, “Male”, 1.88, 86.18, “Germany”, 6, 3, 5, 4, 6, 4);
INSERT INTO marvels VALUES(8, “Thanos”, 47, “Bad”, “Male”, 2.01, 446.79, “Titan”, 6, 7, 7, 6, 6, 4);
INSERT INTO marvels VALUES(9, “Loki”, 32, “Bad”, “Male”, 1.93, 238.14, “Jotunheim”, 5, 5, 7, 6, 6, 3);
INSERT INTO marvels VALUES(10, “Doctor Doom”, 19, “Bad”, “Male”, 2.01, 188.24, “Latveria”, 6, 4, 5, 6, 6, 4);
INSERT INTO marvels VALUES(11, “Jean Grey”, 8, “Good”, “Female”, 1.68, 52.16, “USA”, 3, 2, 7, 7, 7, 4);
INSERT INTO marvels VALUES(12, “Rogue”, 4, “Good”, “Female”, 1.73, 54.43, “USA”, 7, 7, 7, 7, 7, 7);
INSERT INTO Marvels VALUES(13, “Storm”, 2, “Good”, “Female”, 1.80, 66, “Kenya”, 2, 2, 3, 2, 5, 4);
INSERT INTO Marvels VALUES(14, “Nightcrawler”, 6, “Good”, “Male”, 1.75, 73, “Germany”, 3, 2, 7, 2, 1, 3);
INSERT INTO Marvels VALUES(15, “Gambit”, 7, “Good”, “Male”, 1.88, 81, “EUA”, 2, 2, 2, 2, 2, 4);
INSERT INTO Marvels VALUES(16, “Captain America”, 9, “Good”, “Male”, 1.88, 108, “EUA”, 3, 3, 2, 3, 1, 6);
INSERT INTO Marvels VALUES(17, “Cyclops”, 10, “Good”, “Male”, 1.90, 88, “EUA”, 3, 2, 2, 2, 5, 4);
INSERT INTO Marvels VALUES(18, “Emma Frost”, 12, “Neutral”, “Female”, 1.78, 65, “EUA”, 4, 4, 2, 5, 5, 3);
INSERT INTO Marvels VALUES(19, “Kitty Pryde”, 13, “Good”, “Female”, 1.68, 50, “EUA”, 4, 2, 2, 3, 1, 5);
INSERT INTO Marvels VALUES(20, “Daredevil”, 14, “Good”, “Male”, 1.83, 91, “EUA”, 3, 3, 2, 2, 4, 5);
INSERT INTO Marvels VALUES(21, “Punisher”, 50, “Neutral”, “Male”, 1.85, 91, “EUA”, 3, 3, 2, 2, 1, 6);
INSERT INTO Marvels VALUES(22, “Silver Surfer”, 33, “Good”, “Male”, 1.93, 102, “Zenn-La”, 3, 7, 7, 6, 7, 2);
INSERT INTO Marvels VALUES(23, “Ghost Rider”, 86, “Good”, “Male”, 1.88, 99, “EUA”, 2, 4, 3, 5, 4, 2);
INSERT INTO Marvels VALUES(24, “Venon”, 78, “Neutral”, “Male”, 1.90, 118, “EUA”, 3, 4, 2, 6, 1, 4);
INSERT INTO Marvels VALUES(25, “Juggernaut”, 76, “Neutral”, “Male”, 2.87, 862, “EUA”, 2, 7, 2, 7, 1, 4);
INSERT INTO Marvels VALUES(26, “Professor X”, 58, “Good”, “Male”, 1.83, 86, “EUA”, 5, 2, 2, 2, 5, 3);

SELECT gender, AVG(height_m)
FROM marvels GROUP BY gender;

SELECT gender, COUNT(*)
FROM marvels GROUP BY gender;

SELECT gender, MIN(height_m)
FROM marvels GROUP BY gender;

SELECT gender, MAX(height_m)
FROM marvels GROUP BY gender;

SELECT gender,
COUNT(*),
MAX(height_m),
MIN(height_m),
AVG(height_m)
FROM marvels
GROUP BY gender;
SELECT * FROM marvels;
SELECT alignment, COUNT(*) FROM marvels
GROUP BY alignment;

SELECT name FROM marvels
WHERE alignment = “Good”;

SELECT * FROM marvels ORDER BY name;

SELECT MIN(popularity) FROM marvels;
SELECT MAX(popularity) FROM marvels;
SELECT * FROM marvels WHERE popularity <= 50 AND gender = “Male”
ORDER BY popularity;

SELECT * FROM marvels WHERE height_m = 1.6 AND popularity <= 46;
SELECT name, fighting_skills, gender,
CASE
WHEN intelligence >= 1 AND intelligence < 3 THEN “Dumb”
WHEN intelligence >= 3 AND intelligence < 5 THEN “Average”
WHEN intelligence >= 5 AND intelligence <= 7 THEN “Smart”
ELSE “Missing”

END “Brainpower”
FROM marvels
GROUP BY name;

Grade 7 Science: Coding Project 13 – Design a Store Database

This project is from the SQL section in Khan Academy.

The objective of this project is to design a store’s database.

https://www.khanacademy.org/computer-programming/spin-off-of-project-design-a-store-database/4839932328558592

 

CREATE TABLE Sophia_Candy_Store(id INTEGER PRIMARY KEY, name TEXT, price INTEGER, weight INTEGER, aisle TEXT);

INSERT INTO Sophia_Candy_Store VALUES(1, “M&M”, 1, 10, “Chocolate Aisle”);
INSERT INTO Sophia_Candy_Store VALUES(2, “Hershey”, 2, 50, “Chocolate Aisle”);
INSERT INTO Sophia_Candy_Store VALUES(3, “Almond Joy”, 1, 10, “Chocolate Aisle”);
INSERT INTO Sophia_Candy_Store VALUES(4, “Reese’s Pieces”, 3, 30, “Chocolate Aisle”);
INSERT INTO Sophia_Candy_Store VALUES(5, “Bounty”, 2, 70, “Chocolate Aisle”);
INSERT INTO Sophia_Candy_Store VALUES(6, “Werthers”, 5, 100, “Hard Candy Aisle”);
INSERT INTO Sophia_Candy_Store VALUES(7, “Altoids”, 3, 200, “Hard Candy Aisle”);
INSERT INTO Sophia_Candy_Store VALUES(8, “Jolly Ranchers”, 6, 300, “Hard Candy Aisle”);
INSERT INTO Sophia_Candy_Store VALUES(9, “Runts”, 2, 100, “Hard Candy Aisle”);
INSERT INTO Sophia_Candy_Store VALUES(10, “Giant Jawbreakers”, 5, 300, “Hard Candy Aisle”);
INSERT INTO Sophia_Candy_Store VALUES(11, “Jelly Beans”, 2, 200, “Chewy Candy Aisle”);
INSERT INTO Sophia_Candy_Store VALUES(12, “Mentos”, 5, 100, “Chewy Candy Aisle”);
INSERT INTO Sophia_Candy_Store VALUES(13, “Atomic Fireballs”, 6, 300, “Chewy Candy Aisle”);
INSERT INTO Sophia_Candy_Store VALUES(14, “Skittles”, 4, 100, “Chewy Candy Aisle”);
INSERT INTO Sophia_Candy_Store VALUES(15, “Starburst”, 5, 200, “Chewy Candy Aisle”);
SELECT * FROM Sophia_Candy_Store;

SELECT * FROM Sophia_Candy_Store GROUP BY name;

Design a site like this with WordPress.com
Get started