Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lära SQL Select Column | Database & Introduction to Syntax
SQL Tutorial for Beginners
course content

Kursinnehåll

SQL Tutorial for Beginners

SQL Tutorial for Beginners

1. Database & Introduction to Syntax
2. SQL Aggregate Functions
3. Filtering Statements

book
SQL Select Column

You can retrieve not all the data, but only some columns. For this, you should specify column name, for example, singer or title.

This query returns all the data containing in the title column:

1
SELECT title FROM songs
copy

You can also choose two or more columns:

1
SELECT title, singer FROM songs
copy

Now you selected all records from the table, but only title and singer columns.

Uppgift

Swipe to start coding

Select info about album and year for all records from songs.

Lösning

Switch to desktopByt till skrivbordet för praktisk övningFortsätt där du är med ett av alternativen nedan
Var allt tydligt?

Hur kan vi förbättra det?

Tack för dina kommentarer!

Avsnitt 1. Kapitel 3
toggle bottom row

book
SQL Select Column

You can retrieve not all the data, but only some columns. For this, you should specify column name, for example, singer or title.

This query returns all the data containing in the title column:

1
SELECT title FROM songs
copy

You can also choose two or more columns:

1
SELECT title, singer FROM songs
copy

Now you selected all records from the table, but only title and singer columns.

Uppgift

Swipe to start coding

Select info about album and year for all records from songs.

Lösning

Switch to desktopByt till skrivbordet för praktisk övningFortsätt där du är med ett av alternativen nedan
Var allt tydligt?

Hur kan vi förbättra det?

Tack för dina kommentarer!

Avsnitt 1. Kapitel 3
Switch to desktopByt till skrivbordet för praktisk övningFortsätt där du är med ett av alternativen nedan
Vi beklagar att något gick fel. Vad hände?
some-alt