How to check Trino version with SQL query? - sql

Is there a SQL query to check the version of Trino? Couldn't find it in the docs

You can use the version function:
SELECT version()

Related

Standard SQL command to get current RDBMS

Is there any standard sql command that can show you the current RDBMS and version?
The reason for this question is that I am using a CMS remotely that use a SQL database, but I don't know which RDBMS is being used, so I thought maybe there is standard SQL command to print it, something similar to SQL server's ##version
This is not a direct answer to the question, but since there is no standard sql query or function to show the RDBMS, I will post the queries/functions/vars used to identify it.
-- SQL SERVER
SELECT ##version;
-- Postgres, mysql, mariadb
SELECT version();
-- Oracle
SELECT * FROM v$version;
-- sqlite
select sqlite_version();
Please pay attention that Mysql and Sqlite will show only the version and will not include engine name in contrast to other RDBMS.

Convert a Recursive CTE in SQL Server to netezza

I have a requirement like i need to convert a recursive CTE in sql server into netezza !
Will netezza even support Recursive CTE ?
Can anyone help me on this ?
Thanks in advance,
Manirathinam.
Recursive CTEs are not supported in Netezza as of version 7.2. If you can tell us what you are trying to accomplish in your particular case, we might be able to offer a workaround/rewrite.

Is there a way to query and find out the version of Vertica installed?

I searched the Vertica documentation for the keywords Version and Version Number.
But I couldn't really get any mention of SQL query to select the version of Vertica installed.
I thought there would be some system table that had some version information but couldn't find any.
Is it not possible to get the version of Vertica installed using an SQL query?
Or is it only possible to access version by logging into the Vertica host and checking some directory?
It can be found here: https://www.vertica.com/docs/latest/HTML/index.htm#Authoring/AdministratorsGuide/Diagnostics/DeterminingYourVersionOfVertica.htm
db=> SELECT VERSION();
VERSION
------------------------------------
Vertica Analytic Database v9.1.0-2
(1 row)
Edit from the comments: hopefully a link to a permanent page, which will not become obsolete when new versions come: https://www.vertica.com/blog/version-vertica-running/
Run below Query:
SELECT VERSION();
Sample Output:
Vertica Analytic Database v9.0.1-9

EclipseLink INSERT..SELECT equivalent

Is there an equivalent to the native Oracle INSERT INTO FROM SELECT functionality?
No. Use a native SQL query to do this.

Usage of oracle function sys connect by path

We have a problem that it seens not supported in oracle 10g what could be the cause?
Post the query - per the 10g documentation:
...[it's] valid only in hierarchical queries.
Supporting asktom link about using SYS_CONNECT_BY_PATH with 10gR2...