Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Apprendre Challenge: Find All Countries With Their IDs | Section
SQL Fundamentals
Section 1. Chapitre 8
single

single

bookChallenge: Find All Countries With Their IDs

Glissez pour afficher le menu

Note
Definition

In most databases, the id column acts as a unique identifier, often referred to as a primary key, for each record. By selecting both the id and name columns, you can view the unique identifier linked to each country. This is crucial for associating records or when you need to reference specific entries in the database.

Tâche

Swipe to start coding

Write an SQL query to get all the country name values and their id values.

Please make sure to get the columns in the exact order (name, id)

Solution

Switch to desktopPassez à un bureau pour une pratique réelleContinuez d'où vous êtes en utilisant l'une des options ci-dessous
Tout était clair ?

Comment pouvons-nous l'améliorer ?

Merci pour vos commentaires !

Section 1. Chapitre 8
single

single

Demandez à l'IA

expand

Demandez à l'IA

ChatGPT

Posez n'importe quelle question ou essayez l'une des questions suggérées pour commencer notre discussion

some-alt