Process Overview
A relational database organizes data into tables with rows and columns. Each table stores related information, and tables can connect using keys. This flowchart shows how data is stored, linked, and retrieved step-by-step.
Jump into concepts and practice - no test required
A relational database organizes data into tables with rows and columns. Each table stores related information, and tables can connect using keys. This flowchart shows how data is stored, linked, and retrieved step-by-step.
Table: Students +-----------+---------+-----+ | StudentID | Name | Age | +-----------+---------+-----+ | 1 | Alice | 20 | | 2 | Bob | 22 | +-----------+---------+-----+ Table: Grades +---------+-----------+-------+ | GradeID | StudentID | Score | +---------+-----------+-------+ | 101 | 1 | 85 | | 102 | 2 | 90 | +---------+-----------+-------+
Students with columns ID, Name, and Age, what will this SQL query return?SELECT Name FROM Students WHERE Age > 20;
Name column only, so the output will be student names.Age > 20 filters rows to only those students older than 20.INSERT INTO Students (ID, Name Age) VALUES (1, 'Alice', 22);
ID, Name Age without a comma between Name and Age.Orders(OrderID, CustomerID, Amount) and Customers(CustomerID, Name). Which SQL query correctly lists all orders with the customer names?CustomerID, so join must use this key.Orders.CustomerID = Customers.CustomerID, which is correct. Others join on wrong columns.