AIThis post was created with the assistance of artificial intelligence (AI).

TL;DR

Before you orderOffer from Amazon

Get the latest gadgets delivered free with Prime

  • Fast, free delivery on millions of items
  • Prime Video, Amazon Music and more included
  • Member-only deals all year
Start your free Prime trial Free trial for eligible customers · Cancel anytime
As an affiliate, we earn on qualifying purchases.

A developer publicly shared a project where they implemented a neural network solely using SQL queries. This innovative approach challenges traditional boundaries between databases and machine learning, highlighting new possibilities for data processing.

A developer has publicly shared a project demonstrating the implementation of a neural network entirely within SQL code. This achievement, shared on Show HN, challenges the conventional separation between database management and machine learning, and could influence future data processing workflows.

The developer, who was on a babymoon in Corfu, Greece, during the project’s development, posted the implementation as part of a broader effort to showcase novel uses of SQL for complex computations. The project involves translating neural network operations—such as matrix multiplications and activation functions—into SQL queries. While the full code is publicly available, the developer claims it performs basic neural network tasks within a relational database environment.

According to the post, the implementation leverages advanced SQL features, including recursive queries and user-defined functions, to simulate neural network layers. The developer emphasizes that this is primarily a proof of concept, not a production-ready solution, but it demonstrates the potential for running machine learning models directly within a database system without external libraries or languages.

At a glance
announcementWhen: announced recently, approximately two w…
The developmentA developer announced on Show HN that they have implemented a neural network entirely in SQL, showcasing a novel method of running machine learning models within a database environment.

Implications of Neural Networks in SQL for Data Processing

This development is significant because it blurs the traditional boundary between databases and machine learning. Running neural networks directly in SQL could reduce data movement, improve efficiency for certain tasks, and simplify deployment in environments where integrating external ML frameworks is challenging. It also showcases the versatility of SQL and could inspire new research into database-native machine learning models.

However, experts caution that this approach is currently limited to small models and experimental use cases. The performance and scalability of such implementations remain uncertain, and it is not yet clear whether this method can be practical for large-scale or real-time applications.

Amazon

SQL neural network development kit

As an affiliate, we earn on qualifying purchases.

As an affiliate, we earn on qualifying purchases.

Background on SQL and Machine Learning Integration Efforts

Historically, machine learning tasks have been performed using specialized frameworks like TensorFlow or PyTorch, often outside the database environment. Recent efforts have explored integrating ML directly into databases through extensions or external connectors, but fully implementing neural networks within SQL is rare.

This project follows other experimental attempts to embed ML logic into SQL, such as using SQL for feature engineering or simple models. The developer’s approach is notable because it attempts to replicate the core operations of neural networks—matrix multiplications, nonlinear activations—using only SQL queries and functions.

The announcement comes amid growing interest in data-centric AI, where keeping data within a single system and reducing data transfer is seen as advantageous for efficiency and security.

“Implementing a neural network entirely in SQL is primarily a proof of concept, but it demonstrates that complex computations can be expressed within relational databases.”

— the developer

Amazon

relational database machine learning tools

As an affiliate, we earn on qualifying purchases.

As an affiliate, we earn on qualifying purchases.

Performance and Scalability of SQL-Based Neural Networks Unclear

It is not yet clear how well this approach scales for larger neural networks or real-time applications. The developer has not provided benchmarks or performance metrics, and experts suggest that SQL-based neural networks may be limited to small models or experimental use cases.

Further testing and development are needed to evaluate whether this method can be practical beyond proof-of-concept demonstrations.

Amazon

SQL query optimizer for AI models

As an affiliate, we earn on qualifying purchases.

As an affiliate, we earn on qualifying purchases.

Next Steps for SQL Neural Network Development and Testing

The developer plans to refine the implementation, possibly optimizing query performance and expanding model complexity. They may also release benchmarks or comparative analyses to assess practicality.

Meanwhile, the broader community may explore integrating similar ideas into database systems or developing hybrid approaches that combine SQL with specialized ML frameworks for enhanced performance.

Amazon

database-compatible neural network software

As an affiliate, we earn on qualifying purchases.

As an affiliate, we earn on qualifying purchases.

Key Questions

Can neural networks be effectively run in SQL for real-world applications?

Currently, this approach is experimental and best suited for small models or educational purposes. Its practicality for large-scale or real-time use remains unproven.

What are the main technical challenges of implementing neural networks in SQL?

Key challenges include performance limitations, query complexity, and the difficulty of efficiently handling large matrix operations within a relational database environment.

Does this mean databases will replace ML frameworks?

Not likely in the near term. While this project shows possibilities, specialized ML frameworks will continue to be essential for large, complex models. However, database-native ML could complement existing tools for specific use cases.

Is this implementation publicly available?

Yes, the developer has shared the code on Show HN, allowing others to review and experiment with the approach.

Source: hn

FALL

Fall Picks

As an affiliate, we earn on qualifying purchases.

You May Also Like

How to Safeguard Your Smart Home Privacy (Cameras, Mics & More)

Secure your smart home by safeguarding cameras, mics, and devices—discover essential steps to protect your privacy before it’s too late.

Best Quiet Case Fans + the Airflow Setup That Actually Works

Discover top quiet case fans and the airflow configuration that ensures optimal cooling with minimal noise for high-performance PCs in 2026.

Top AI & Automation Solutions For The Next Decade

An overview of the most influential AI and automation tools set to define the next ten years, based on expert insights and current developments.

Tail-call Optimization In C Is Relatively Recent (2025)

C language now officially supports tail-call optimization as of 2025, marking a significant update after decades of absence. Here’s what it means.