Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

"R.O" in SQL

jael91407431
Level 3
Level 3

Can any one explain what the "R.O" mean when we generate a SQL expression:

ro.png

...and does Adobe Campaign generate the "R.O" be default in every SQL interpretation.

Thank you.

1 Accepted Solution
shrawans3153003
Correct answer by
Employee
Employee

As mentioned above "R0" is the alias which is generated automatically. As query is done here for Recipient table(NmsRecipient R0)  so it "R0".  if you query from Delivery table (NmsDelivery D0) it is "D0" and for broad log it is (NmsBroadLogRcp) "B0".

Yes it is is best practice to use alias and most of RDBMS recommends this.

You can find several articles on internet to know the benefits of using alias's .

SQL Aliases

View solution in original post

3 Replies
james_icf
Level 3
Level 3

It is the alias. You see "FROM NmsRecipient R0" in the second line. The system is creating an alias for the table, NmsRecipient. It is a best practice to alias data sources but also helps to clarify a field name that may exist in multiple data sources being queried. It is the same as saying NmsRecipient.FirstName, NmsRecipient.LastName, etc...

I do believe that ACM will always alias tables. it would not always be R0. Especially when there are more than 1 table involved.

jael91407431
Level 3
Level 3

Thank you so much for the reply. In addition, what does "RO" stand for?

And is it best practice of RDMS to use "RO" as an alias?

shrawans3153003
Correct answer by
Employee
Employee

As mentioned above "R0" is the alias which is generated automatically. As query is done here for Recipient table(NmsRecipient R0)  so it "R0".  if you query from Delivery table (NmsDelivery D0) it is "D0" and for broad log it is (NmsBroadLogRcp) "B0".

Yes it is is best practice to use alias and most of RDBMS recommends this.

You can find several articles on internet to know the benefits of using alias's .

SQL Aliases

View solution in original post