Better HN
topnewbestaskshowjobs
Log inSign up

some_user54

3 karma · joined Jun 18, 2018 (8y ago) · 5 submissions

Submissions

comment 7y ago · link · parent

There is no need for ranting, if you need to reuse expression from select you could simply use `LATERAL JOIN` or `CROSS APPLY`: https://blog.jooq.org/2014/01/06/the-sql-languages-most-miss... Please check comment section of this blog

2.

Oracle Database 18c XE now available(blogs.oracle.com ↗)

3 points · by some_user54 · 8y ago · discuss

comment 8y ago · link · parent

If you want to trully know how thing works I suggest great blog:

http://sommarskog.se/error_handling/Part1.html http://sommarskog.se/error_handling/Part2.html http://sommarskog.se/error_handling/Part3.html

More than 100 pages of technical knowledge.

And presentation: http://www.sommarskog.se/present/WhenThingsGoWrong%20(SQLSat...

comment 8y ago · link · parent

Is it correct that SQL Server does not support IDENTITY(slide 29)?

IDENTITY property is supported from as far as I can remember: https://docs.microsoft.com/en-us/sql/t-sql/statements/create...

Second approach is DEFAULT with sequence.

CREATE SEQUENCE seq; CREATE TABLE tab(i INT DEFAULT NEXT VALUE FOR seq, b VARCHAR(100))

comment 8y ago · link · parent

"Patterns. Finally, let’s assume that we want to continuously detect whether the temperature has changed more than 20% within any five-minute period. This query is impossible to do efficiently with standard SQL."

This is completely untrue. SQL is more than capable of pattern detection. For example Oracle MATCH_RECOGNIZE clause: https://docs.oracle.com/database/121/DWHSG/pattern.htm#DWHSG...

But to make thing clear, we need to move on from SQL-89 mindset. SQL is really powerful Turing complete language. Row pattern recognition is part of SQL standard (ISO/IEC TR 19075-5:2016) https://modern-sql.com/blog/2017-06/whats-new-in-sql-2016