Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Assignment 03

Due Sep 19, 2024

  1. Execute the four scrips in ../examples that create four example databases.

  1. Explore the contents of the databases.

  2. Update the university database to populate at least 1000 students and populate

  3. Write the following queries

  • (University) Show the names all students from Texas

  • (Sales) Show all products with the buy price exceeding $100.00

  • (Nations) Show all countries that are bigger than 1/2 million square km.

import datajoint as dj
schema = dj.Schema('university')
schema.spawn_missing_classes()
dj.Diagram(schema)
Loading...
Student() & 'sex="F"' & "date_of_birth < '2000-01-01'"
Loading...
%%sql

SELECT * FROM `unversity`.`student` WHERE home_state="TX"
UsageError: Cell magic `%%sql` not found.