FlareStart
HomeNewsHow ToSources
FlareStart

Where developers start their day. All the tech news & tutorials that matter, in one place.

Quick Links

  • Home
  • News
  • Tutorials
  • Sources
  • Privacy Policy

Connect

© 2026 FlareStart. All rights reserved.

Back to articles
DB-TASK-001
How-ToMachine Learning

DB-TASK-001

via Dev.to BeginnersMohammed Azim J3h ago

I was practicing some SELECT queries in the dvdrental database to understand sorting, alias, unique values and ordering. I tried different queries and below are the ones I used and why I used them. First I tried to retrieve film titles and rental rate but I renamed the column names so it looks better while reading. SELECT title AS "Movie Title" , rental_rate AS "Rate" FROM film ; I used this because alias makes output more readable instead of database column names. Then I listed customer names and emails with alias. SELECT first_name AS "First Name" , last_name AS "Last Name" , email FROM customer ; I used this to see customer contact details in a proper format. Then I sorted films by rental rate descending and if same rate then by title. SELECT title , rental_rate FROM film ORDER BY rental_rate DESC , title ASC ; I used this to see costly rental movies first and sort same price movies alphabetically. Then I sorted actor names. SELECT first_name , last_name FROM actor ORDER BY last_nam

Continue reading on Dev.to Beginners

Opens in a new tab

Read Full Article
5 views

Related Articles

Save $100 On Our Favorite Soundbar and Subwoofer Combo
How-To

Save $100 On Our Favorite Soundbar and Subwoofer Combo

Wired • 3h ago

Sony's new theater system lets you upgrade your TV setup gradually - how it works
How-To

Sony's new theater system lets you upgrade your TV setup gradually - how it works

ZDNet • 4h ago

How to delete your personal info from the internet (while saving money)
How-To

How to delete your personal info from the internet (while saving money)

ZDNet • 5h ago

Here Is What Programming Taught Me About Growth
How-To

Here Is What Programming Taught Me About Growth

Medium Programming • 6h ago

I Did Everything “Right” in Programming — Here Is What Actually Mattered
How-To

I Did Everything “Right” in Programming — Here Is What Actually Mattered

Medium Programming • 6h ago

Discover More Articles