SQL like part of SAS and alternatives - sql

The data statement of SAS have a SQL flavour , data is extracted form a table to create a new table. The flavour part comes in where SAS is more powerful, columns can be added and computations can be performed.
Does there exist a language that have a SAS and SQL flavour?

Related

IBM SPSS How to import a Custom SQL Database Query

I am looking to see if the capability is there to have a custom SSMS sql query imported in SPSS (Statistical Package for the Social Sciences). I would want to build syntax that generates this query as my new dataset that I can then continue my scripted analysis. I see the basic query capability of one table from a Sql Server but I would like to create a query that joins to many tables. I anticipate the query to be a bit complex with many joins and perhaps data transformations.
Has anybody had experience or a solution to this situation?
I know I could take the query and make a table of it that SPSS can then connect to but my data changes daily and I would need a job in another application to refresh this table before my SPSS syntax would pull it and I would like to eliminate that first step by just having the query that grabs the data at the beginning of my syntax.
Ultimately I am looking to build out my SPSS syntax and schedule it in the Production Facility to run daily.

In terms of the queries we write, what would be the difference between the queries that we write in sql and spark sql?

We have a python scripts that parses the sql script (select, insert) to get the source and target columns while inserting data from one table to another. Right now we parse only SQL queries. Now when we want some Spark SQL queries to be parsed using the same model, will the structure of the queries change from SQL to Spark SQL?

Single Query that reflect in Different Database Engine like PSQL,Oracle,SQL

Is there any tool or concept that work For the below case,
I have Table named Test in PSQL, SQL, Oracle server.IF I insert or Update or Delete the Data in a Table Test in PSQL, The result should update in the remaining SQL and Oracle. The same case when we do in SQL or Oracle.
Whatever change that happens in any DB Engine that reflects in the remaining Engine also.

Filling tables with data

I have created Relational Model in Oracle SQL Data Modeler with all tables and relations. I would like to generate a DDL to use it in Oracle SQL Developer and work with some SQL queries.
Before generating DDL I would like to fill all the tables with data, so I can put DDL with all data for tables prepared in it.
So, how can fill tables with data in Oracle SQL Data Modeler?
Tables can be filled with data in SQL Oracle Developer, filling it before in Data modeler is not needed.

Modify the dataset format in SAS on a `sql-base` server

Usually I would use proc datasets lib= ; modify to change the format/informats of the columns in a datasets. But when I apply this syntax to a dataset on a sql-based server.
The error shows
ERROR: The HEADER/VARIABLE UPDATE function is not supported by the ODBC engine.
I found some articles that may explain the problem. Here's one. http://support.sas.com/kb/37/015.html
Moreover, whatever dataset I created in the network, the format/informat/length is changed to its 'default' setting. E.g date9. -> datetime 22.3.
But still I don't understand why it happens. Is there something pre-defined in the network and the architecture of the server is not 100% compatible with SAS?
When you modify format, You alter table.
Suppose you have some diferent database (SQL) servers. Example Oracle, MS SQL, MY SQL. All of them have their own dialect on altering table.
When You write modify column; ... you are altering table. But SAS does not which dialect to try. That is why alter table procedure is not supported from datasets procedure.
You can update that table using database server dialect, but it needs to be added from proc sql procedure. Like it was writen in that article
execute( alter table table-name ...specific-Oracle-syntax...)by oracle;
data9. I think You mean date9.. Well it is SAS format. Other database servers, can have or can have not this format. By default they will create database default formats.