SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Basic Query
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

indupriyav
Starting Member

India
13 Posts

Posted - 09/30/2013 :  06:53:01  Show Profile  Reply with Quote
Im an Oracle person.I started working in SQL server recently. Dont have prior experience.Just need understanding abilities.

I select data from a SQL table as

select count(*)
from [Myclient].[data].CUST_INV

But when I see the tables under Myclient.data in object explorer, I just see CUST_INV_Current, CUST_INV_Upload etc.

The total no of rows in CUST_INV and CUST_INV_Current is same.

Is there any alias(In oracle it is synonym) being set somewhere. Where can I see it ,to check whether these two tables are same?


indupriyav

webfred
Flowing Fount of Yak Knowledge

Germany
8764 Posts

Posted - 09/30/2013 :  07:07:52  Show Profile  Visit webfred's Homepage  Reply with Quote
Maybe CUST_INV is a view? Have a look in object explorer...


Too old to Rock'n'Roll too young to die.
Go to Top of Page

indupriyav
Starting Member

India
13 Posts

Posted - 09/30/2013 :  07:25:57  Show Profile  Reply with Quote
Yes its a view.Good Catch.Thanks.

indupriyav
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.05 seconds. Powered By: Snitz Forums 2000