devxlogo

Quick Tip for Removing Ambiguity in Database Queries

Quick Tip for Removing Ambiguity in Database Queries

Often, we see ambiguity in accessing database objects as they exist in multiple databases and schemas. One easy way is to fully qualify the database objects, so that there is no place for ambiguity and it provides great readability.

For example:

 SELECT Name, Age from DataStore.Employee.InfoDataStore ??? is the name of the databaseEmployee ??? is the name of the schemaInfo ??? is the name of the table

devx-admin

Share the Post: