<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Luckshvadhan B</title>
    <description>The latest articles on DEV Community by Luckshvadhan B (@luckshvadhan_359cd41fd39e).</description>
    <link>https://dev.to/luckshvadhan_359cd41fd39e</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3833917%2F67cd3238-f66c-4103-8513-dba33eee8f30.png</url>
      <title>DEV Community: Luckshvadhan B</title>
      <link>https://dev.to/luckshvadhan_359cd41fd39e</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/luckshvadhan_359cd41fd39e"/>
    <language>en</language>
    <item>
      <title>Alter Tables</title>
      <dc:creator>Luckshvadhan B</dc:creator>
      <pubDate>Sat, 28 Mar 2026 18:35:42 +0000</pubDate>
      <link>https://dev.to/luckshvadhan_359cd41fd39e/alter-tables-431c</link>
      <guid>https://dev.to/luckshvadhan_359cd41fd39e/alter-tables-431c</guid>
      <description>&lt;p&gt;1 alter table customers modify email varchar(150) not null&lt;/p&gt;

&lt;p&gt;2 alter table users add unique (username)&lt;/p&gt;

&lt;p&gt;3 alter table products add check (price &amp;gt; 0)&lt;/p&gt;

&lt;p&gt;4 alter table orders alter status set default 'pending'&lt;/p&gt;

&lt;p&gt;5 alter table employees add salary decimal(10,2) not null check (salary &amp;gt; 10000)&lt;/p&gt;

&lt;p&gt;6 alter table employees drop foreign key department_id&lt;br&gt;
alter table employees add foreign key (department_id) references departments(id) on delete cascade&lt;/p&gt;

&lt;p&gt;7 alter table accounts drop check balance&lt;/p&gt;

&lt;p&gt;8 alter table payments add unique (user_id transaction_id)&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Create Tables</title>
      <dc:creator>Luckshvadhan B</dc:creator>
      <pubDate>Sat, 28 Mar 2026 18:13:30 +0000</pubDate>
      <link>https://dev.to/luckshvadhan_359cd41fd39e/create-tables-4n5l</link>
      <guid>https://dev.to/luckshvadhan_359cd41fd39e/create-tables-4n5l</guid>
      <description>&lt;p&gt;1 create table students id int primary key name varchar(100) not null age int check age &amp;gt;= 0&lt;/p&gt;

&lt;p&gt;2 create table employees id int primary key name varchar(100) not null email varchar(150) not null phone_number varchar(20)&lt;/p&gt;

&lt;p&gt;3 create table users id int primary key username varchar(100) unique not null email varchar(150) unique not null&lt;/p&gt;

&lt;p&gt;4 create table products id int primary key name varchar(100) not null price decimal(10,2) check price &amp;gt; 0 stock int check stock &amp;gt;= 0&lt;/p&gt;

&lt;p&gt;5 create table orders id int primary key status varchar(50) default 'pending' created_at timestamp default current_timestamp&lt;/p&gt;

&lt;p&gt;6 create table accounts id int primary key account_number varchar(50)&lt;br&gt;
unique not null balance decimal(10,2) check balance &amp;gt;= 0&lt;/p&gt;

&lt;p&gt;7 create table enrollments student_id int course_id int primary key (student_id, course_id)&lt;/p&gt;

&lt;p&gt;8 create table departments id int primary key name varchar(100) not null&lt;br&gt;
create table employees id int primary key name varchar(100) not null department_id int foreign key (department_id) references departments(id)&lt;/p&gt;

&lt;p&gt;9 create table departments id int primary key name varchar(100) not null&lt;br&gt;
create table employees id int primary key name varchar(100) not null department_id int foreign key (department_id) references departments(id) on delete cascade on update cascade&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Basic Select SQL Queries</title>
      <dc:creator>Luckshvadhan B</dc:creator>
      <pubDate>Wed, 25 Mar 2026 17:17:58 +0000</pubDate>
      <link>https://dev.to/luckshvadhan_359cd41fd39e/basic-select-sql-queries-1l1m</link>
      <guid>https://dev.to/luckshvadhan_359cd41fd39e/basic-select-sql-queries-1l1m</guid>
      <description>&lt;p&gt;Get all details of city with id 1661&lt;br&gt;
Filter CITY table where id equals 1661 and return all columns&lt;/p&gt;

&lt;p&gt;Get all cities from Japan&lt;br&gt;
Filter CITY table where countrycode is JPN and return all columns&lt;/p&gt;

&lt;p&gt;Get all cities from Japan&lt;br&gt;
Same filter using countrycode JPN to retrieve all records&lt;/p&gt;

&lt;p&gt;Get city names not starting with vowels&lt;br&gt;
Use pattern filtering to exclude names starting with A E I O U and remove duplicates&lt;/p&gt;

&lt;p&gt;Get city names not starting with vowels&lt;br&gt;
Apply same condition with distinct to avoid repeated values&lt;/p&gt;

&lt;p&gt;Get city names not starting with vowels&lt;br&gt;
Filter using NOT LIKE patterns and ensure unique results&lt;/p&gt;

&lt;p&gt;Find difference between total and unique city entries&lt;br&gt;
Subtract count of distinct city names from total count&lt;/p&gt;

&lt;p&gt;Get names of Japanese cities&lt;br&gt;
Select only city name where countrycode is JPN&lt;/p&gt;

&lt;p&gt;Get names of Japanese cities&lt;br&gt;
Same filtering on countrycode but return only name column&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Idempotency Situation</title>
      <dc:creator>Luckshvadhan B</dc:creator>
      <pubDate>Wed, 25 Mar 2026 17:11:55 +0000</pubDate>
      <link>https://dev.to/luckshvadhan_359cd41fd39e/idempotency-situation-208n</link>
      <guid>https://dev.to/luckshvadhan_359cd41fd39e/idempotency-situation-208n</guid>
      <description>&lt;p&gt;The problem is&lt;br&gt;
Same transaction may be executed multiple times&lt;br&gt;
This can happen due to network retry or duplicate request&lt;br&gt;
This may lead to wrong balances&lt;/p&gt;

&lt;p&gt;Initial Data&lt;br&gt;
Alice has 1000&lt;br&gt;
Bob has 500&lt;/p&gt;

&lt;p&gt;Normal Transfer&lt;br&gt;
Transfer 200 from Alice to Bob&lt;/p&gt;

&lt;p&gt;After transaction&lt;br&gt;
Alice becomes 800&lt;br&gt;
Bob becomes 700&lt;/p&gt;

&lt;p&gt;Duplicate Execution&lt;br&gt;
Same transfer runs again&lt;/p&gt;

&lt;p&gt;After second execution&lt;br&gt;
Alice becomes 600&lt;br&gt;
Bob becomes 900&lt;/p&gt;

&lt;p&gt;Transaction is applied again&lt;/p&gt;

&lt;p&gt;Database allows repeated execution&lt;br&gt;
It does not know whether request is duplicate&lt;br&gt;
Each execution is treated as a new operation&lt;/p&gt;

&lt;p&gt;Because database only ensures consistency per transaction&lt;br&gt;
It does not track duplicate requests&lt;br&gt;
There is no built in mechanism to stop same transfer again&lt;/p&gt;

&lt;p&gt;Database ensures No partial updates and Valid data state&lt;/p&gt;

&lt;p&gt;Use unique transaction id for each request&lt;br&gt;
Check if transaction already exists before processing&lt;br&gt;
Reject duplicate requests&lt;/p&gt;

&lt;p&gt;Database ensures correctness of each transaction&lt;br&gt;
Application ensures transaction is not repeated&lt;/p&gt;

</description>
      <category>backend</category>
      <category>database</category>
      <category>softwareengineering</category>
      <category>systemdesign</category>
    </item>
    <item>
      <title>Durability</title>
      <dc:creator>Luckshvadhan B</dc:creator>
      <pubDate>Wed, 25 Mar 2026 17:08:52 +0000</pubDate>
      <link>https://dev.to/luckshvadhan_359cd41fd39e/durability-1f2e</link>
      <guid>https://dev.to/luckshvadhan_359cd41fd39e/durability-1f2e</guid>
      <description>&lt;p&gt;The problem&lt;br&gt;
We are transferring money between accounts&lt;br&gt;
After transaction is committed data should not be lost&lt;br&gt;
Even if system crashes data must remain correct&lt;/p&gt;

&lt;p&gt;Initial Data&lt;br&gt;
Alice has 1000&lt;br&gt;
Bob has 500&lt;/p&gt;

&lt;p&gt;Transaction Flow&lt;br&gt;
Transfer 200 from Alice to Bob&lt;/p&gt;

&lt;p&gt;Step 1&lt;br&gt;
Start transaction&lt;br&gt;
Step 2&lt;br&gt;
Deduct 200 from Alice&lt;br&gt;
Step 3&lt;br&gt;
Add 200 to Bob&lt;br&gt;
Step 4&lt;br&gt;
Commit transaction&lt;/p&gt;

&lt;p&gt;After Commit&lt;/p&gt;

&lt;p&gt;Alice balance becomes 800&lt;br&gt;
Bob balance becomes 700&lt;br&gt;
Changes are saved in database&lt;br&gt;
After System Restart&lt;br&gt;
Reconnect to database&lt;br&gt;
Check balances again&lt;br&gt;
Alice still has 800&lt;br&gt;
Bob still has 700&lt;/p&gt;

&lt;p&gt;Changes are not lost&lt;/p&gt;

&lt;p&gt;Database follows durability property&lt;br&gt;
Once transaction is committed data is permanently stored&lt;br&gt;
Even if system crashes&lt;br&gt;
Committed data remains&lt;/p&gt;

&lt;p&gt;Failure before commit&lt;/p&gt;

&lt;p&gt;Transaction is not completed&lt;br&gt;
Changes are rolled back&lt;br&gt;
Final state&lt;br&gt;
Alice 1000&lt;br&gt;
Bob 500&lt;/p&gt;

&lt;p&gt;Failure after commit&lt;/p&gt;

&lt;p&gt;Transaction already saved&lt;br&gt;
Data remains unchanged&lt;br&gt;
Final state&lt;br&gt;
Alice 800&lt;br&gt;
Bob 700&lt;/p&gt;

&lt;p&gt;Commit makes data permanent&lt;br&gt;
Database ensures committed data is never lost&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Consistency</title>
      <dc:creator>Luckshvadhan B</dc:creator>
      <pubDate>Wed, 25 Mar 2026 17:06:18 +0000</pubDate>
      <link>https://dev.to/luckshvadhan_359cd41fd39e/consistency-532</link>
      <guid>https://dev.to/luckshvadhan_359cd41fd39e/consistency-532</guid>
      <description>&lt;p&gt;The problem is&lt;br&gt;
We are managing account balances in a system&lt;br&gt;
Balance should never become negative&lt;br&gt;
Invalid operations must be rejected&lt;/p&gt;

&lt;p&gt;Initial Data&lt;br&gt;
Alice has 1000&lt;br&gt;
Bob has 500&lt;/p&gt;

&lt;p&gt;Database Rule&lt;br&gt;
Balance has a constraint balance greater than or equal to 0&lt;br&gt;
This ensures invalid values are not allowed&lt;/p&gt;

&lt;p&gt;Valid Operation&lt;br&gt;
Deduct 200 from Alice&lt;/p&gt;

&lt;p&gt;After update&lt;br&gt;
Alice balance becomes 800&lt;/p&gt;

&lt;p&gt;This works because balance is still valid&lt;/p&gt;

&lt;p&gt;Error Case 1&lt;br&gt;
Trying to deduct more than available balance&lt;br&gt;
Deduct 1200 from Alice&lt;/p&gt;

&lt;p&gt;Database throws error&lt;br&gt;
Check constraint fails&lt;/p&gt;

&lt;p&gt;Final state&lt;br&gt;
Alice still has 1000&lt;br&gt;
No change happens&lt;/p&gt;

&lt;p&gt;Error Case 2&lt;br&gt;
Directly setting balance to negative&lt;br&gt;
Update balance to minus 100&lt;/p&gt;

&lt;p&gt;Database rejects the update&lt;br&gt;
Constraint violation occurs&lt;/p&gt;

&lt;p&gt;Final state&lt;br&gt;
Balance remains unchanged&lt;/p&gt;

&lt;p&gt;Because&lt;br&gt;
Database enforces rules using constraints&lt;br&gt;
It does not allow invalid data to be stored&lt;/p&gt;

&lt;p&gt;Even if query is correct syntactically&lt;br&gt;
It will fail if it breaks defined rules&lt;/p&gt;

&lt;p&gt;Database handles structural rules like&lt;br&gt;
Balance should not be negative&lt;/p&gt;

&lt;p&gt;But logical rules like&lt;br&gt;
Checking enough balance before transfer&lt;br&gt;
Should be handled in application or transaction logic&lt;/p&gt;

&lt;p&gt;Constraints act as a safety layer&lt;br&gt;
They prevent invalid data from entering database&lt;/p&gt;

</description>
      <category>backend</category>
      <category>beginners</category>
      <category>database</category>
      <category>sql</category>
    </item>
    <item>
      <title>Atomicity</title>
      <dc:creator>Luckshvadhan B</dc:creator>
      <pubDate>Wed, 25 Mar 2026 17:03:06 +0000</pubDate>
      <link>https://dev.to/luckshvadhan_359cd41fd39e/atomicity-13k7</link>
      <guid>https://dev.to/luckshvadhan_359cd41fd39e/atomicity-13k7</guid>
      <description>&lt;p&gt;The problem&lt;br&gt;
We are transferring money between two users&lt;br&gt;
If something fails in between it can cause wrong balance or money loss&lt;br&gt;
So both debit and credit must happen together or not happen at all&lt;/p&gt;

&lt;p&gt;Initial Data&lt;br&gt;
Alice has 1000&lt;br&gt;
Bob has 500&lt;/p&gt;

&lt;p&gt;Transaction Logic&lt;br&gt;
Step 1&lt;br&gt;
Start transaction&lt;br&gt;
Step 2&lt;br&gt;
Deduct amount from sender&lt;br&gt;
Step 3&lt;br&gt;
Add amount to receiver&lt;br&gt;
Step 4&lt;br&gt;
Commit transaction&lt;/p&gt;

&lt;p&gt;If any step fails rollback everything&lt;/p&gt;

&lt;p&gt;Normal Flow&lt;br&gt;
Transfer 200 from Alice to Bob&lt;/p&gt;

&lt;p&gt;After transaction&lt;br&gt;
Alice balance becomes 800&lt;br&gt;
Bob balance becomes 700&lt;/p&gt;

&lt;p&gt;Both updates happen successfully&lt;/p&gt;

&lt;p&gt;Error Case 1&lt;br&gt;
Debit happens but credit fails&lt;br&gt;
Transaction is not committed&lt;br&gt;
Database rolls back&lt;/p&gt;

&lt;p&gt;Final state&lt;/p&gt;

&lt;p&gt;Alice still has 1000&lt;br&gt;
Bob still has 500&lt;br&gt;
No partial update happens&lt;/p&gt;

&lt;p&gt;Error Case 2&lt;br&gt;
Query fails after debit step&lt;br&gt;
Transaction stops&lt;br&gt;
Rollback is triggered&lt;/p&gt;

&lt;p&gt;Final state&lt;/p&gt;

&lt;p&gt;Alice balance is unchanged&lt;br&gt;
Bob balance is unchanged&lt;/p&gt;

&lt;p&gt;BECAUSE:&lt;br&gt;
Database follows ACID properties&lt;br&gt;
Transaction ensures all operations succeed together&lt;br&gt;
If any step fails entire transaction is cancelled&lt;/p&gt;

&lt;p&gt;There is no situation where&lt;br&gt;
Alice loses money and Bob does not receive it&lt;br&gt;
Either both balances update&lt;br&gt;
Or nothing changes&lt;/p&gt;

&lt;p&gt;If transactions are not used data inconsistency will happen&lt;br&gt;
Improper handling can still cause issues in high concurrency systems&lt;br&gt;
Transaction acts like a safety system&lt;br&gt;
It guarantees consistency in money transfer&lt;br&gt;
This is critical for systems like payment apps&lt;/p&gt;

</description>
      <category>backend</category>
      <category>beginners</category>
      <category>database</category>
      <category>softwareengineering</category>
    </item>
    <item>
      <title>Users, Roles, Groups</title>
      <dc:creator>Luckshvadhan B</dc:creator>
      <pubDate>Wed, 25 Mar 2026 16:59:14 +0000</pubDate>
      <link>https://dev.to/luckshvadhan_359cd41fd39e/users-roles-groups-aoh</link>
      <guid>https://dev.to/luckshvadhan_359cd41fd39e/users-roles-groups-aoh</guid>
      <description>&lt;p&gt;Create a report_user role with read access only on film table&lt;br&gt;
Create a login role and grant SELECT permission only on film table&lt;/p&gt;

&lt;p&gt;Fix permission denied when accessing customer table&lt;br&gt;
Grant SELECT permission on customer table to report_user&lt;/p&gt;

&lt;p&gt;Allow report_user to see only selected columns from customer&lt;br&gt;
Revoke full access and grant SELECT only on customer_id first_name last_name columns&lt;/p&gt;

&lt;p&gt;Create support_user with limited permissions&lt;br&gt;
Grant SELECT on customer and UPDATE only on email column and do not give DELETE permission&lt;/p&gt;

&lt;p&gt;Remove SELECT access on film from report_user&lt;br&gt;
Revoke SELECT permission on film table from report_user&lt;/p&gt;

&lt;p&gt;Create readonly_group with read access on all tables&lt;br&gt;
Create role and grant SELECT permission on all tables in the database&lt;/p&gt;

&lt;p&gt;Add analyst users to readonly_group&lt;br&gt;
Create analyst1 and analyst2 and assign them to readonly_group&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Filter Assignments</title>
      <dc:creator>Luckshvadhan B</dc:creator>
      <pubDate>Wed, 25 Mar 2026 16:57:19 +0000</pubDate>
      <link>https://dev.to/luckshvadhan_359cd41fd39e/filter-assignments-1a4j</link>
      <guid>https://dev.to/luckshvadhan_359cd41fd39e/filter-assignments-1a4j</guid>
      <description>&lt;p&gt;Get movies with rental rate greater than 3&lt;br&gt;
Filter films where rental_rate is greater than 3&lt;/p&gt;

&lt;p&gt;Get movies with rental rate greater than 3 and replacement cost less than 20&lt;br&gt;
Apply two conditions using AND on rental_rate and replacement_cost&lt;/p&gt;

&lt;p&gt;Get movies rated PG or rental rate 0.99&lt;br&gt;
Use OR condition between rating and rental_rate&lt;/p&gt;

&lt;p&gt;Get first 10 movies sorted by rental rate descending&lt;br&gt;
Order by rental_rate in descending order and limit to 10&lt;/p&gt;

&lt;p&gt;Skip first 5 and get next 3 movies by rental rate ascending&lt;br&gt;
Use offset 5 and limit 3 after sorting by rental_rate ascending&lt;/p&gt;

&lt;p&gt;Skip first 5 and get next 3 movies by rental rate ascending&lt;br&gt;
Same as above using offset and limit with ascending order&lt;/p&gt;

&lt;p&gt;Get movies with rental duration between 3 and 7&lt;br&gt;
Use between condition on rental_duration&lt;/p&gt;

&lt;p&gt;Get movies where title starts with A and ends with e&lt;br&gt;
Use pattern matching with LIKE for starting A and ending e&lt;/p&gt;

&lt;p&gt;Find customers without email&lt;br&gt;
Filter where email is NULL&lt;/p&gt;

&lt;p&gt;Get movies from 2006 with rate 2.99 or 3.99 and title starts with S limit 5&lt;br&gt;
Apply multiple conditions with AND and OR and limit results to 5&lt;/p&gt;

&lt;p&gt;Get 10 customers after skipping 20 sorted by last name&lt;br&gt;
Sort by last_name and use offset 20 and limit 10&lt;/p&gt;

&lt;p&gt;Get top 5 movies by replacement cost skipping highest&lt;br&gt;
Order by replacement_cost descending skip first then limit 5&lt;/p&gt;

&lt;p&gt;Find rentals between two dates&lt;br&gt;
Use between on rental_date from given start to end date&lt;/p&gt;

&lt;p&gt;Get actors whose last name contains man&lt;br&gt;
Use LIKE with pattern containing man&lt;/p&gt;

&lt;p&gt;Find movies where special features is NULL&lt;br&gt;
Filter rows where special_features is NULL&lt;/p&gt;

&lt;p&gt;Find movies with rental duration more than 7&lt;br&gt;
Use greater than condition on rental_duration&lt;/p&gt;

&lt;p&gt;Get first 10 movies with rate 2.99 or 4.99 rating R and title contains L&lt;br&gt;
Combine multiple conditions and limit to 10&lt;/p&gt;

&lt;p&gt;Find movies starting with A or B and ending with s&lt;br&gt;
Use LIKE with OR for starting letters and ending pattern&lt;/p&gt;

&lt;p&gt;Find movies containing Man Men or Woman&lt;br&gt;
Use multiple LIKE conditions combined with OR&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Select Queries from DVD Rental database</title>
      <dc:creator>Luckshvadhan B</dc:creator>
      <pubDate>Wed, 25 Mar 2026 16:55:27 +0000</pubDate>
      <link>https://dev.to/luckshvadhan_359cd41fd39e/select-queries-from-dvd-rental-database-4h7m</link>
      <guid>https://dev.to/luckshvadhan_359cd41fd39e/select-queries-from-dvd-rental-database-4h7m</guid>
      <description>&lt;p&gt;Retrieve film titles and rental rates&lt;br&gt;
Select title and rental_rate and rename them as Movie Title and Rate using aliases&lt;/p&gt;

&lt;p&gt;List customer names and email&lt;br&gt;
Select first_name last_name and email and rename names as First Name and Last Name&lt;/p&gt;

&lt;p&gt;Sort films by rental rate descending then title&lt;br&gt;
Order films by rental_rate in descending order and use title as secondary ascending sort&lt;/p&gt;

&lt;p&gt;Sort actor names by last then first name&lt;br&gt;
Order actors first by last_name then by first_name&lt;/p&gt;

&lt;p&gt;Get unique replacement costs&lt;br&gt;
Use distinct on replacement_cost to remove duplicates&lt;/p&gt;

&lt;p&gt;List film title and duration&lt;br&gt;
Select title and length and rename length as Duration min&lt;/p&gt;

&lt;p&gt;Get customer names with active status&lt;br&gt;
Select first_name last_name and active and rename active as Is Active&lt;/p&gt;

&lt;p&gt;List film categories alphabetically&lt;br&gt;
Select category names and sort them in ascending order&lt;/p&gt;

&lt;p&gt;List films by length descending&lt;br&gt;
Select title and length and sort by length in descending order&lt;/p&gt;

&lt;p&gt;Sort actor names by first name descending&lt;br&gt;
Order actors by first_name in descending order&lt;/p&gt;

&lt;p&gt;Get unique film ratings&lt;br&gt;
Use distinct on rating column to list unique values&lt;/p&gt;

&lt;p&gt;Get unique rental durations&lt;br&gt;
Use distinct on rental_duration to remove duplicates&lt;/p&gt;

&lt;p&gt;Get first unique customer by active status&lt;br&gt;
Select customer_id and active remove duplicates and order by customer_id&lt;/p&gt;

&lt;p&gt;Get earliest rental date for each customer&lt;br&gt;
Group by customer_id and get minimum rental_date then sort by customer_id&lt;/p&gt;

&lt;p&gt;Get 10 shortest films&lt;br&gt;
Order films by length ascending and limit results to 10&lt;/p&gt;

&lt;p&gt;Get top 5 customers by highest id&lt;br&gt;
Order customers by customer_id descending and limit to 5&lt;/p&gt;

&lt;p&gt;Get unique store ids&lt;br&gt;
Use distinct on store_id from inventory&lt;/p&gt;

&lt;p&gt;Get unique replacement cost sorted&lt;br&gt;
Use distinct on replacement_cost and sort in ascending order&lt;/p&gt;

&lt;p&gt;Get first rental date per store&lt;br&gt;
Group by store_id and get minimum rental_date then sort by store_id&lt;/p&gt;

&lt;p&gt;Get unique film ratings sorted&lt;br&gt;
Use distinct on rating and sort alphabetically&lt;/p&gt;

&lt;p&gt;Sort films by rating and length&lt;br&gt;
Order by rating ascending and length descending&lt;/p&gt;

&lt;p&gt;Sort actors by last asc and first desc&lt;br&gt;
Order by last_name ascending and first_name descending&lt;/p&gt;

&lt;p&gt;Sort films by cost and rental rate&lt;br&gt;
Order by replacement_cost ascending and rental_rate descending&lt;/p&gt;

&lt;p&gt;Sort customers by last asc and first desc&lt;br&gt;
Order by last_name ascending and first_name descending&lt;/p&gt;

&lt;p&gt;Sort rentals by customer and date&lt;br&gt;
Order by customer_id ascending and rental_date descending&lt;/p&gt;

&lt;p&gt;Sort films by duration and title&lt;br&gt;
Order by rental_duration ascending and title descending&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Setup a DNS hosted zone in Route53 in AWS</title>
      <dc:creator>Luckshvadhan B</dc:creator>
      <pubDate>Wed, 25 Mar 2026 16:48:36 +0000</pubDate>
      <link>https://dev.to/luckshvadhan_359cd41fd39e/setup-a-dns-hosted-zone-in-route53-in-aws-3cn2</link>
      <guid>https://dev.to/luckshvadhan_359cd41fd39e/setup-a-dns-hosted-zone-in-route53-in-aws-3cn2</guid>
      <description>&lt;p&gt;Route53 is a DNS service provided by AWS&lt;br&gt;
It helps map domain names to IP addresses&lt;/p&gt;

&lt;p&gt;Steps to setup hosted zone&lt;br&gt;
Step 1&lt;br&gt;
Login to AWS console&lt;br&gt;
Step 2&lt;br&gt;
Go to Route53 service&lt;br&gt;
Step 3&lt;br&gt;
Click Hosted Zones&lt;br&gt;
Step 4&lt;br&gt;
Click Create Hosted Zone&lt;br&gt;
Step 5&lt;br&gt;
Enter your domain name&lt;br&gt;
Step 6&lt;br&gt;
Select Public Hosted Zone&lt;br&gt;
Step 7&lt;br&gt;
Click Create&lt;br&gt;
Step 8&lt;br&gt;
Note the Name Servers provided&lt;br&gt;
Step 9&lt;br&gt;
Go to your domain registrar&lt;br&gt;
Step 10&lt;br&gt;
Update the domain with these Name Servers&lt;br&gt;
Step 11&lt;br&gt;
Wait for DNS propagation&lt;/p&gt;

&lt;p&gt;Now your domain is connected to Route53&lt;br&gt;
You can create records like A record to point to your server&lt;/p&gt;

&lt;p&gt;DNS changes may take time to reflect&lt;br&gt;
Wrong name server configuration will break domain resolution&lt;/p&gt;

</description>
    </item>
    <item>
      <title>EC2 instance and run a webserver and access it from outside</title>
      <dc:creator>Luckshvadhan B</dc:creator>
      <pubDate>Wed, 25 Mar 2026 16:47:01 +0000</pubDate>
      <link>https://dev.to/luckshvadhan_359cd41fd39e/ec2-instance-and-run-a-webserver-and-access-it-from-outside-4oik</link>
      <guid>https://dev.to/luckshvadhan_359cd41fd39e/ec2-instance-and-run-a-webserver-and-access-it-from-outside-4oik</guid>
      <description>&lt;p&gt;EC2 is a virtual server provided by AWS&lt;br&gt;
It allows you to run applications on the cloud&lt;/p&gt;

&lt;p&gt;Steps to create EC2 instance&lt;br&gt;
Step 1&lt;br&gt;
Login to AWS console&lt;br&gt;
Step 2&lt;br&gt;
Go to EC2 dashboard&lt;br&gt;
Step 3&lt;br&gt;
Click Launch Instance&lt;br&gt;
Step 4&lt;br&gt;
Choose an OS like Amazon Linux&lt;br&gt;
Step 5&lt;br&gt;
Select instance type like t2 micro&lt;br&gt;
Step 6&lt;br&gt;
Create or select a key pair&lt;br&gt;
Step 7&lt;br&gt;
Allow HTTP and SSH in security group&lt;br&gt;
Step 8&lt;br&gt;
Launch the instance&lt;/p&gt;

&lt;p&gt;Running a web server on an EC2 instance involves connecting to the instance using SSH and installing a web server like Apache&lt;br&gt;
First update the system using sudo yum update -y&lt;br&gt;
Then install the server using sudo yum install httpd -y&lt;br&gt;
After installation start the service using sudo systemctl start httpd&lt;br&gt;
Enable it to run on boot using sudo systemctl enable httpd&lt;br&gt;
Create a simple page by adding content&lt;br&gt;
If the security group allows HTTP traffic you can access the web server using the public IP of the instance in a browser&lt;/p&gt;

&lt;p&gt;To access from outside&lt;/p&gt;

&lt;p&gt;Copy the public IP of the instance&lt;/p&gt;

&lt;p&gt;Open browser and enter&lt;br&gt;
&lt;a href="http://your-public-ip" rel="noopener noreferrer"&gt;http://your-public-ip&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;You will see the web page&lt;/p&gt;

&lt;p&gt;Make sure port 80 is open in security group&lt;br&gt;
Without this the page will not load&lt;/p&gt;

</description>
      <category>aws</category>
      <category>beginners</category>
      <category>linux</category>
      <category>tutorial</category>
    </item>
  </channel>
</rss>
