Why aliasing not work in this query in Oracle Database? [closed] - sql

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 months ago.
Improve this question
enter image description here
In the above query why aliasing does not work properly and it gives error?
enter image description here
When i remove the as keyword it works fine but why?

The AS is only recommended for columns. To give an alias to a table you never use AS.

Related

remove junk characters in timestamp in BQ table [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 6 months ago.
Improve this question
Experts im getting junk characters in my timestamp, while to load in bq it failed. i tried regexp with following format
REGEXP_REPLACE(str,'[^[a-z,A-Z,0-9]]*',' ').it behave weird
as is :2022-06-28T06^%^3A55^%^3A01.452Z
expected:2022-06-28T06:55:01.452Z
Please help me on this
Thanks in advance
I think this will work for you sample in bq select REGEXP_REPLACE('2022-06-28T06^%^3A55^%^3A01.452Z',"[\D\W]{3}[\d\w]{2}",':')

Is any possible to split string in Informix db 11.70? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
I was searching already a while and still i am not sure there is any function to split string in Informix db 11.70? Should I write my own function to make my task real or I missed something?
I think you are looking for SUBSTR function,
please refer to this page list of string manipulation functions:
https://www.ibm.com/support/knowledgecenter/SSGU8G_14.1.0/com.ibm.sqls.doc/ids_sqs_0258.htm#ids_sqs_0258

Comparing Two SP's Performance SQL Server [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 5 years ago.
Improve this question
there is any simple way to know which one of two SQL Store procedure works better?
Click the Include Actual Execution Plan before running both sp (on the same run) and check the percentages

SQL Query - How to find a field with two or more same characters in it [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I'm using SQL Server DB and I would like to write query which will look for a fields with two or more slashes in it, lets say we have these rows:
1. abc/def/g
2. abcd/efg
3. a/b/c/d/e/f/g
So it should return 1st and 3rd row! What is the easiest way to do so?
Thanks in advance!

how to direct the out put of a SQL query to pane instead of a text file [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
What is the setting for out putting the query result to pane, instead of text file. I set output to text file a long time ago. But I forgot how to turn it back. Please advise.
Thanksa
I'm not sure any further comment is needed.
If you are not using SSMS then push your particular data management tool's equivalent button.