SQL Daily
@sqldaily
Daily Oracle SQL tips from the Oracle Developer Advocates for SQL
你可能會喜歡
Want to learn a new skill in 2024? Make it #SQL! Oracle Dev Gym has a series of FREE classes to help you do this Start with Databases for Developers: Foundations Join at devgym.oracle.com/pls/apex/dg/cl…
Aggregate functions in #SQL report totals across many rows Common ones are COUNT, SUM, AVG, MAX, MIN Baraa Khatib Salkini explains how these work and how to use them to answer questions like How many orders are there? What's their total sales value? youtube.com/watch?v=AsuPVZ…
youtube.com
YouTube
SQL Aggregate Functions | COUNT, SUM, AVG, MAX, MIN | #SQL Course 21
AI agents can help you build schemas and create test data Chris Hoina shares an example prompt to store data about cars, trucks, motorcycles and their manufacturers Then shows you how to use it with SQLcl MCP Server and Cline to make the tables blogs.oracle.com/database/promp…
The wait is (nearly) over! Oracle AI Database 26ai EE for Linux x86-64 will be released on premises in the next RU (23.26.1), due January 2026 Read full details at blogs.oracle.com/database/oracl…
Mouhamadou Diaw examines the differences between functions & procedures in PL/SQL Functions Return a value Can be called in #SQL - DML must be in an autonomous transaction Procedures Use OUT parameters to return values Can't be called in SQL directly mouhamadoudiaw.wordpress.com/2025/11/15/ove…
Tracking changes to values over time is a common requirement For example, recording price fluctuations for goods Alexey Makhotkin steps through designing tables to store these changes, proposing template tables with Anchor Value Valid from/to dates kb.databasedesignbook.com/posts/historiz…
Change the partitioning method for an Oracle table with: ALTER TABLE ... MODIFY PARTITION BY ... This can change The partition method (RANGE/LIST/HASH) The partition columns Add/remove subpartitioning Add the ONLINE clause to allow writes to continue while changing
Like #SQL? Like puzzles? Try #SQuizL A free, daily guess-the-SQL statement quiz You have up to six attempts to complete the statement on the top left using the fragments below There's a new statement to guess at every day at midnight UTC Play now at devgym.oracle.com/pls/apex/f?p=1…
You can run in-database AI inference on Oracle Active Data Guard @ludodba shows you how to do this to find images with semantic search Loading an ONNX model & pictures Creating PL/SQL to generate embeddings Running this proc and searches on the standby blogs.oracle.com/maa/onnx-on-ac…
When tuning #SQL, focus on the estimates for how many rows each operation will return If these are off by an order of magnitude or more, there's a good chance a different plan is faster @TanelPoder has built scripts to show misestimates in Oracle plans tanelpoder.com/posts/xb-sql-s…
Oracle AI Database 23.26.0 developer features include QUALIFY clause GraphQL Table Function for SQL SQL Objects and Collections in MLE JavaScript PL/SQL RESETTABLE clause to avoid ORA-04068: existing state of packages has been discarded @GeraldVenzl geraldonit.com/whats-new-for-…
Define schema-only accounts in Oracle AI Database with CREATE USER ... NO AUTHENTICATION => you can't connect as this user To run scripts as-if you're a schema-only account, use a proxy user ALTER USER schema_only GRANT CONNECT THROUGH proxy CONN proxy[schema_only]/<pwd>
Want to find the Nth highest value in a table? e.g. the 3rd highest salary/department? Number the values with DENSE_RANK () OVER ( PARTITION BY ... ORDER BY ... DESC ) Then filter where the output of this is 3 @RebellionRider demos youtube.com/watch?v=Pg4ox7…
youtube.com
YouTube
What's The BEST Way to Find the 3rd HIGHEST Salary in SQL?
How do the data types of join columns affect query performance? Dani Schnider compares using Hashes as CHAR(32) and RAW(16) Sequences as NUMBER And finds in Oracle #SQL NUMBER is faster than RAW RAW is faster than CHAR danischnider.wordpress.com/2018/12/11/dat…
Triggered by traumatic DML errors? Mike Smithers shows how to recover in Oracle AI Database when you accidentally remove data with FLASHBACK TABLE ... TO BEFORE DROP => restore a dropped table TIMESTAMP => revert to a point in time mikesmithers.wordpress.com/2025/10/15/fix…
In PL/SQL EXCEPTION WHEN OTHERS THEN Catches all errors Filling your code with this without reraising the error hides unexpected issues So the compiler raises PLW-6009 to warn you If you reraise in custom logging procedures use PRAGMA SUPPRESSES_WARNING_6009 To skip this
Get free access to Oracle AI Database at freesql.com This browser-based tool enables you to run and share #SQL statements Even better, you can now connect to your schema from clients on your machine using SQL*Net So you can run SQL from your favourite IDE
Oracle Virtual Private Database enables you to transparently add WHERE clauses to restrict what users can see See what was added with DBMS_UTILITY.EXPAND_SQL_TEXT But this may expose sensitive values! @connor_mc_d shows how to hide them with contexts connor-mcdonald.com/2025/10/15/sec…
Want to find the fastest-growing tables or LOBs in Oracle AI Database? @viniciusdba has built a script that analyzes AWR data to show The 20 segments with the largest total size increases A breakdown of the increase per month for each Get it at github.com/vinidba/dba_sc…
Poorly written #SQL can lead to slow, hard-to-maintain queries Jordan Goodman covers common anti-patterns you should avoid, including Case expressions instead of tables Functions on indexed columns Overusing DISTINCT to “fix” duplicates datamethods.substack.com/p/sql-anti-pat…
Macros in Oracle #SQL enable you to define expression templates as text At parse time the database merges these with the parent query, replacing parameters with the actual values passed Macros come in two types Scalar - use in SELECT, WHERE, ORDER BY, etc. Table - use in FROM
United States 趨勢
- 1. #SmackDown 12.6K posts
- 2. Mark Pope 1,498 posts
- 3. #ROHFinalBattle 5,338 posts
- 4. Jimmy Rogers 1,189 posts
- 5. Iowa State 12.1K posts
- 6. FIFA 469K posts
- 7. Gonzaga 3,179 posts
- 8. Matt Campbell 13.7K posts
- 9. Terror Twins 1,426 posts
- 10. Celtics 19.2K posts
- 11. Ciampa N/A
- 12. Ilja 2,076 posts
- 13. Michael Annett 1,430 posts
- 14. Carmelo Hayes 1,329 posts
- 15. Deonna N/A
- 16. Jordan Walsh 3,852 posts
- 17. #JingleBellJohn N/A
- 18. Troy 12.5K posts
- 19. Wayne Knight N/A
- 20. Zags N/A
你可能會喜歡
-
Ask TOM for Database/SQL
@OracleAskTOM -
Chris Saxon
@ChrisRSaxon -
Oracle APEX
@OracleAPEX -
Connor on SQL and Database
@connor_mc_d -
Franck Pachot
@FranckPachot -
SQL.ProductManager.Oracle.Databases
@thatjeffsmith -
Mike Dietrich
@MikeDietrichDE -
Jonathan Lewis
@JLOracle -
Oren Nakdimon
@DBoriented -
Maria Colgan
@SQLMaria -
Roel 😎
@RoelH -
Tanel Poder 🇺🇦
@TanelPoder -
Modern SQL
@ModernSQL -
krisrice 🏒🍺📷
@krisrice -
Tim Hall ∞🐵+∞⌨️
@oraclebase
Something went wrong.
Something went wrong.