Submitted by: Srinath M S(srinath_ms@yahoo.com)

Monday Apr 16th 2018 by Srinath M S

Language: SQL, Expertise: Intermediate - Learn why it's helpful to fully qualify database objects so that there is no place for ambiguity.

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.Info
DataStore ??? is the name of the database
Employee ??? is the name of the schema
Info ??? is the name of the table
Mobile Site | Full Site
Copyright 2018 © QuinStreet Inc. All Rights Reserved