Please start any new threads on our new site at http://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

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

 All Forums
 SQL Server 2008 Forums
 Transact-SQL (2008)
 simple * in select
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

mike13
Posting Yak Master

Netherlands
219 Posts

Posted - 12/06/2012 :  18:50:03  Show Profile  Click to see mike13's MSN Messenger address  Reply with Quote
Hi All,

trying to make a view, but statement is not accepted
select (Cost * 2)*1.21 as salesPriceTax from T_sales


thanks a lot

jimf
Flowing Fount of Yak Knowledge

USA
2875 Posts

Posted - 12/06/2012 :  19:32:23  Show Profile  Reply with Quote
What error are you getting? There's nothing wrong with what you've written.

Jim

Everyday I learn something that somebody else already knew
Go to Top of Page

mike13
Posting Yak Master

Netherlands
219 Posts

Posted - 12/06/2012 :  20:00:23  Show Profile  Click to see mike13's MSN Messenger address  Reply with Quote
nothing SQL 2008 just removes the 1.28
Go to Top of Page

jimf
Flowing Fount of Yak Knowledge

USA
2875 Posts

Posted - 12/06/2012 :  20:26:10  Show Profile  Reply with Quote
Could you post the whole query? What do you mean by "SQL 2008 just removes the 1.28"

Jim

Everyday I learn something that somebody else already knew
Go to Top of Page

mike13
Posting Yak Master

Netherlands
219 Posts

Posted - 12/07/2012 :  04:19:40  Show Profile  Click to see mike13's MSN Messenger address  Reply with Quote
sorry, got to work must have been sleeping
Go to Top of Page
  Previous Topic Topic Next 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.02 seconds. Powered By: Snitz Forums 2000