Skip to content

Instantly share code, notes, and snippets.

@Smita81
Smita81 / linkedin.sql
Last active June 22, 2024 14:34
formula1.sql
formula1.sql
CREATE TABLE Driver (
DriverID INT PRIMARY KEY,
Name VARCHAR(100) NOT NULL,
Nationality VARCHAR(50),
DateOfBirth DATE
);
CREATE TABLE Team (
@Smita81
Smita81 / databases-week1-exercises.sql
Last active June 22, 2024 20:23
week1 exercise done
-- 1. What are the names of countries with population greater than 8 million?--
SELECT Name
FROM country
WHERE Population > 8000000;
-- 2. What are the names of countries that have “land” in their names? --
SELECT Name
FROM country
WHERE Name LIKE '%land%';