Now that it's live, don't forget to accept your certification badge on Credly today! Learn more here.
We are currently experiencing an issue with Email verification at this time and working towards a solution. Should you encounter this issue, please click on the "Send Verification Button" a second time and the request should go through. If the issue still persists for you, please email support@alteryx.com for assistance.

Alteryx Designer Discussions

Find answers, ask questions, and share expertise about Alteryx Designer.
SOLVED

"." in sql?

becki
8 - Asteroid

I have a question about SQL inputs in alteryx, just trying to clean up other people's workflows.  

 

1.  is there a reason to have (or not have) double quotes around the parts of an SQL statement like:

 select * where "MSS"."DEPTA"."TABLE1" vs without the double quotes?

 

(I'm sure I'll find more)

 

thanks

 

becki kain

 

4 REPLIES 4
MarqueeCrew
19 - Altair
19 - Altair

@becki,

 

Putting double-quotes around an identifier in Oracle causes Oracle to treat the identifier as case sensitive rather than using the default of case-insensitivity. If you create a table (or a column) with double-quotes around the name, you must always refer to the identifier with double quotes and by correctly specifying the case (with the exception of all upper case identifiers, where double-quotes are meaningless).  Under the covers, Oracle is always doing case-sensitive identifier matching. But it always casts identifiers that are not double-quoted to upper case before doing the matching. If you put double-quotes around an identifier, Oracle skips the casting to upper case.

 

https://stackoverflow.com/questions/563090/what-exactly-do-quotation-marks-around-the-table-name-do

 

Cheers,

 

Mark

Alteryx ACE & Top Community Contributor

Chaos reigns within. Repent, reflect and reboot. Order shall return.
Please Subscribe to my youTube channel.
becki
8 - Asteroid

but if everything is all upper case, there is no point, correct?

MarqueeCrew
19 - Altair
19 - Altair

TRUe

Alteryx ACE & Top Community Contributor

Chaos reigns within. Repent, reflect and reboot. Order shall return.
Please Subscribe to my youTube channel.
becki
8 - Asteroid

the other bizarre thing i found was:

 

select * from tablename tablename1

 

it appears alteryx just ignores the "tablename1".  no idea how long or who put that in!

Labels