HelpContactFor teachers and institutes
>_StemPy Lab
Mock TestsClasses

>_StemPy Lab

Learn. Solve. Code the solutions. Test yourself.

Live examsFree mock exams, timed and rankedEveryone starts together, and your score and rank come the moment it ends.See the exams →
Live examsInternational live exams are comingTell us which exam you want first. Timed practice papers are open now.See what is coming →

Learn

  • Physics
  • Chemistry
  • Mathematics
  • Biology
  • Python Programming
  • Statistics & Data Science
  • Computer Science
  • Space Science and Astronomy
  • Earth and Environmental Science
  • Classes
  • Groups

Practice

  • Problems
  • Quizzes
  • Mock Tests
  • Prepare for an Exam
  • Question Sets
  • Exams
  • Certificates
  • Python Labs
  • AI Practice Generator
  • Student-Created Tests

Community

  • Discussions
  • Resources
  • Notes
  • Glossary
  • Blog

Account

  • Log in
© 2026 senLearn. All rights reserved.HelpFor SchoolsAboutContactPrivacy PolicyTerms of UseRefund Policy
  1. Quizzes
  2. /Which of these scripts is written correctly?
Computer ScienceHardHigh School (9–10)Algorithms, Programming and Logic › Databases and SQLIGCSE
StemPy LabCreated by StemPy Lab

Which of these scripts is written correctly?

Log in to save
← All Quizzes
← The table Parcels has the fields ParcelID and Kg, and these 5 records: (X1, 11), (X2, 7), (X3, 15), (X4, 9), (X5, 21). A courier wants the light parcels, lightest first, and runs SELECT ParcelID, Kg FROM Parcels WHERE Kg < 15 ORDER BY Kg ASC;. Which output does she get?What does COUNT(*) give in the output of a query? →
More onAlgorithms, Programming and Logic › Databases and SQL

Discussion (0)

Log in to join the discussion.

Loading…

More questions on this topic

  1. The table Bikes has the fields Bike, Gears and Basket, and these 4 records: (B1, 3, TRUE), (B2…Hard
  2. A script should count the red and the blue cars: SELECT COUNT(*) FROM Cars WHERE Colour = 'Red' OR…Hard
  3. Which condition finds the people aged from 13 to 19, including both ends?Medium
  4. A table Bookings has the fields BookingID, Day and Seats. Which script gives the total number of…Medium
  5. The table Crates has the fields Crate, Fruit, Kg and Shed, and these 4 records: (K1, Mango, 12…Medium
All questions on this topic →

Problems on this topic

  1. A restaurant stores its staff in a table Staff…Hard
  2. A town library stores its readers in a table Readers…Medium
  3. A gym stores its members in a table Gym…Easy
  4. A school garden club records each plot in a table Plots: the water it needs each day in litres, its…Hard
All problems on this topic →