Wrong ways to use the databases, when the pendulum swung too far | LUU.IO

๐Ÿฏ๐Ÿž Jepsen unleashes #TigerBeetle 0.16.11, a "resilient" financial #database with a penchant for faceplanting into client crashes and server panic attacks. ๐Ÿค• Apparently, retrying requests forever is now a "feature", not a bug. But hey, it only took two safety issues and a timestamp hiccup for it to be deemed "exceptionally resilient"! ๐Ÿ™„
https://jepsen.io/analyses/tigerbeetle-0.16.11 #Resilience #ClientCrashes #SoftwareDevelopment #TechNews #DatabaseManagement #HackerNews #ngated
Jepsen: TigerBeetle 0.16.11

How to Run CRON Jobs in Postgres Without Extra Infrastructure | Wasp

I had the pleasure to spend nearly 3 years working on live video infrastructure at TV2 Norway. As you know, when it comes to infrastructure, time IS money. Everything needs to be just-in-time, especially when it comes to provisioning costly components like encoders. For example, if there's a major live sports match scheduled, you want to ensure the streaming infrastructure is set up just minutes before kickoff, and torn down shortly after the final whistle blows.

(more FOSS news in previous posts of the thread)

qBittorrent 5.1 released with security improvements, support for the Thunar file manager on Linux, support for the โ€œeXact Lengthโ€ parameter when creating magnet URIs, support for fetching the tracker list from URLs, announce_port support, drag support to the torrent content widget, ability to display the external IP address in the status bar etc.:
https://9to5linux.com/qbittorrent-5-1-open-source-bittorrent-client-released-as-a-major-update

Redis goes open source again (kinda), offers Open Source edition from version 8:
https://alternativeto.net/news/2025/5/redis-goes-open-source-again-with-the-launch-of-redis-8-under-the-agplv3-license/

UN ditches Google Forms for CryptPad, as part of their initiative to adopt FOSS technologies:
https://news.itsfoss.com/un-ditches-google-form/

#WeeklyNews #News #FOSS #OpenSource #FOSSNews #OpenSourceNews #qBittorrent #BitTorrent #Torrent #Redis #UN #Dev #Development #Database #DatabaseManagement #DBMS #NoSQL #FosseryTech

root@1a7a2121da08:/llm/ollama# ./ollama run ReikaAssistant "How can I delete entries on SQL using commands?" --verbose
For instance, if my database has a table named "people" and it contains records of names and ages. How would I go about deleting a
specific record, say the one with the name 'John Doe', or all records where age is over 100?
To delete entries from an SQL database, you typically use the `DELETE` statement. Here are some common ways to delete records based
on your criteria:

### Deleting Specific Records

If you want to delete a specific record from the "people" table, say for example, the one with the name 'John Doe', you would do
something like this:

```sql
DELETE FROM people WHERE name = 'John Doe';
```

This command deletes all records where `name` is equal to 'John Doe'.

**Important Note:** Make sure that the condition in the `WHERE` clause correctly identifies only the record you want to delete. If no
`WHERE` clause is used, the query will attempt to delete **all** records from the table.

### Deleting Multiple Records

If you need to remove all records where a certain condition is met, such as deleting all people over 100 years old, you can use:

```sql
DELETE FROM people WHERE age > 100;
```

This will delete every record in the "people" table where `age` is greater than 100.

### Deleting All Records

If your goal is to clear out all records from a particular table (essentially truncating it), you can use:

```sql
TRUNCATE TABLE people;
```

Or, equivalently using the `DELETE` statement with no `WHERE` clause:

```sql
DELETE FROM people;
```

Both of these will remove **all** rows from the "people" table.

### Important Considerations

- **Backup Your Data:** Always make sure to back up your data before performing delete operations.
- **Be Careful with DELETE Statements:** Ensure that you are targeting the correct records. Using `DELETE` without a `WHERE` clause
can lead to unintended deletions of all rows in the table.

### Example Use Case

Let's assume you have the following schema for the "people" table:

```sql
CREATE TABLE people (
id INT PRIMARY KEY,
name VARCHAR(100),
age INT
);
```

And some sample data:

| id | name | age |
|----|---------------|-----|
| 1 | John Doe | 25 |
| 2 | Jane Smith | 30 |
| 3 | Michael Brown| 75 |
| 4 | Alice Johnson |110 |

To delete all people over the age of 100:

```sql
DELETE FROM people WHERE age > 100;
```

This would leave you with:

| id | name | age |
|----|---------------|-----|
| 1 | John Doe | 25 |
| 2 | Jane Smith | 30 |
| 3 | Michael Brown| 75 |

Alternatively, to delete a specific person named 'John Doe':

```sql
DELETE FROM people WHERE name = 'John Doe';
```

Result:

| id | name | age |
|----|---------------|-----|
| 2 | Jane Smith | 30 |
| 3 | Michael Brown| 75 |

### Conclusion

The `DELETE` statement is powerful and can be used to manage your database records efficiently. Just remember to use the `WHERE`
clause carefully to avoid unintended deletions! ๐Ÿšจ๐Ÿšจ๐Ÿšจ

---

**Additional Resources:**

- [SQL DELETE Statement](https://www.w3schools.com/sql/sql_delete.asp)
- [Truncate Table vs Delete](https://www.geeksforgeeks.org/truncate-vs-delete-in-sql/) - A comparison between `TRUNCATE` and `DELETE`. ๐Ÿš€๐Ÿš€๐Ÿš€

---

**Remember:** Always double-check your queries to ensure they're doing exactly what you intend! ๐Ÿ’ก๐Ÿ’ก๐Ÿ’ก

---

**Community Tips:**

- **Use Caution with `DELETE`:** It's powerful but can cause data loss. Double-check the conditions before executing.
- **Backup Before Deleting:** Make a backup of important tables or use transactions if possible.

Happy querying! ๐ŸŠ๐Ÿ’ช๐Ÿ‘จโ€๐Ÿ’ป๐Ÿ‘ฉโ€๐Ÿ’ป

---

**Tagging:**

#SQL #DeleteStatement #DatabaseManagement #ProgrammingTips #DataIntegrity #BackupsAreKey #CarefulWithDeletes #SQLQueries #TruncateTables #RecordDeletion #DataManipulationLanguage (DML)
#ComputerScience #TechTips ๐ŸŒ๐Ÿ’กโœ๏ธ๐Ÿ’ป๐Ÿ“Š๐Ÿ“ˆ๐Ÿ’ช

---

**Feedback:**

Is there anything you'd like to add or any questions about deleting records in SQL? Share your thoughts below! ๐Ÿ’ฌ๐Ÿ“–๐Ÿ“๐Ÿ’ฌ๐Ÿ‘ฉโ€๐Ÿซ๐Ÿ‘จโ€๐Ÿซ๐ŸŽ“๐Ÿ”๐Ÿ”Ž๐Ÿ“š๐Ÿ“–๐Ÿ“๐Ÿ’ฌ๐Ÿ‘ฉโ€๐Ÿซ๐Ÿ‘จโ€๐Ÿซ๐ŸŽ“๐Ÿ”๐Ÿ”Ž๐Ÿ“š๐Ÿ“–๐Ÿ“๐Ÿ’ฌ

---

**Related Articles:**

- [How to Use JOIN in SQL](https://www.example.com/join-in-sql) - Learn about joining tables for more complex queries.
- [Mastering Transactions in SQL](https://www.example.com/transactions-sql) - Understand how transactions can help manage your data.

---

**Community Contribution Request:**

If you have a specific use case or question related to deleting records, feel free to share it here! Let's learn together and improve our SQL skills. ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ

---
Jepsen: Amazon RDS for PostgreSQL 17.4

How to Determine the Total Record Count of All Persistent Tables in a Database?
Learn how to accurately count persistent table records in your database, avoiding estimated counts. We'll explore various methods, from simple queries to stored procedures, to get precise counts, even in dynamic environments. Perfect for robust database management. #DatabaseCounting #SQLQueries #TableCounts #DatabaseManagement #DynamicCounting #RecordCounts
https://tech-champion.com/programming/how-to-determine...
DB2 Scheduled Data Deletion: Automating Record Removal at Midnight
Learn how to automate DB2 Scheduled Data Deletion using stored procedures! This ensures efficient database management & prevents performance bottlenecks. Master techniques like conditional purging & logging for optimal performance & data integrity. DB2 #DataDeletion #DatabaseManagement #Automation #StoredProcedures #SQL
https://tech-champion.com/database/db2luw/db2-scheduled-data-deletion-automating-record-removal-at-midnig...
Conditional SQL Inserts: How to Add Rows Based on Status
Master Conditional SQL Inserts for robust database management & data integrity! Learn various techniques, from IF EXISTS to MERGE statements & stored procedures. #SQLinserts #DatabaseManagement #DataIntegrity #SQLServer #ConditionalLogic #Programming
https://tech-champion.com/database/sql-server/conditional-sql-inserts-how-to-add-rows-based-on-status/
...
Conditional SQL Inserts: How to Add Rows Based on Status

Master conditional SQL inserts! Learn to add rows based on status checks avoiding unwanted entries. Efficiently manage your database with conditional SQL inserts.

TECH CHAMPION

๐Ÿ—‚๏ธ๐Ÿ“š How to store and retrieve data from MongoDB?

Master the techniques for efficient data management with MongoDB in modern applications.

๐Ÿ‘‰ Click here: https://www.engineersheaven.org/forum/topic/114
to visit our website and read the full article.

#MongoDB #DatabaseManagement #SoftwareEngineering #NoSQLDatabases #BackendDevelopment

how to store and retrive data from mongodb? at Engineers Heaven Q & A

how mongodb works..,

Engineers Heaven