Skip to content
  • YouTube
  • FaceBook
  • Twitter
  • Instagram

Data Analytics Ireland

Data Analytics and Video Tutorials

  • Home
  • Contact
  • About Us
    • Latest
    • Write for us
    • Learn more information about our website
  • Useful Links
  • Glossary
  • All Categories
  • Faq
  • Livestream
  • Toggle search form
  • how to build a machine learning model machine learning
  • How to count the no of rows and columns in a CSV file CSV
  • How to use wildcards in SQL SQL
  • Python Tutorial: Pandas groupby columns ( video 2) Python
  • How to show percentage differences between files in Python CSV
  • What is Apache Spark and what is it used for? Apache Spark
  • How to add a date when a record is created SQL
  • how to copy/paste special a range of cells with xlwings Python

how to select columns with SQL

Posted on January 22, 2021February 7, 2021 By admin

Estimated reading time: 2 minutes

Building on how to select all records with SQL , you may want to learn how to get specific columns of data from your table.

Using SQLite again , we will now look to select two columns from the table below, namely name and iso_code.

The purpose of completing this, is to allow the user to start to only choose the data they want.

As a database becomes bigger and more complex, so does the ability to retrieve the data.

Furthermore the speed and turnaround time becomes more critical.

What is more if these queries are been used for real time applications:

  • These results need to be precise to what is needed.
  • Additionally the speed of them returning back the records needs to be quick.

Subsequently below is the query run off the above table that we will use:

As you can see it has returned the two columns we asked for, excluding the description column.

To conclude, one thing to note this returns all records, that currently exist on the table for those two columns.

To see a video tutorial on this, watch the full video below:

SQL, SQLite, Working with databases Tags:iso code, select columns, SQL select, SQLite database

Post navigation

Previous Post: how to select all records with SQL
Next Post: select rows with a certain value using SQL

Related Posts

  • What is Apache Spark and what is it used for? Apache Spark
  • How to create a calculated field in Tableau data visualisation
  • What is the difference between CHAR and VARCHAR2 in SQL? SQL
  • What is the difference between DROP and TRUNCATE in SQL? SQL
  • How to Group By in a Select Statement SQL
  • What is a CTE in SQL? SQL

Select your language!

  • हिंदी
  • Español
  • Português
  • Français
  • Italiano
  • Deutsch
  • Deleting table records with SQL SQL
  • How to check if a file is empty Python
  • how to compare two lists in Python Python Lists
  • How to pass multiple lists to a function and compare Python Functions
  • YouTube channel lists – Python working with files Python working with files
  • Free ways to Extract Data from Files Livestream
  • YouTube channel lists – Python DataFrames Python Dataframe
  • What is Data Integrity? SQL

Copyright © 2023 Data Analytics Ireland.

Powered by PressBook Premium theme

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Cookie settingsACCEPT
Privacy & Cookies Policy

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these cookies, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may have an effect on your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.
Non-necessary
Any cookies that may not be particularly necessary for the website to function and is used specifically to collect user personal data via analytics, ads, other embedded contents are termed as non-necessary cookies. It is mandatory to procure user consent prior to running these cookies on your website.
SAVE & ACCEPT